diff --git a/app/migration.go b/app/migration.go deleted file mode 100644 index 6664dc1f..00000000 --- a/app/migration.go +++ /dev/null @@ -1,185 +0,0 @@ -package app - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - nftmngrKeeper "github.com/thesixnetwork/sixnft/x/nftmngr/keeper" - nftmngrtypes "github.com/thesixnetwork/sixnft/x/nftmngr/types" -) - -// for proposal v3.1.1 to v3.1.3 -func (app *App) MigrationFromV1ToV2Handlers(ctx sdk.Context) { - - // get all NFTSchema - nftSchemasV1 := app.NftmngrKeeper.GetAllNFTSchemaV1(ctx) - - for _, nftSchemaV1 := range nftSchemasV1 { - // migrate list of system actioners to new map - for _, systemActioner := range nftSchemaV1.SystemActioners { - // set system actioner to new map - app.NftmngrKeeper.SetActionExecutor(ctx, nftmngrtypes.ActionExecutor{ - NftSchemaCode: nftSchemaV1.Code, - ExecutorAddress: systemActioner, - Creator: nftSchemaV1.Owner, - }) - - val, found := app.NftmngrKeeper.GetExecutorOfSchema(ctx, nftSchemaV1.Code) - if !found { - val = nftmngrtypes.ExecutorOfSchema{ - NftSchemaCode: nftSchemaV1.Code, - ExecutorAddress: []string{}, - } - } - - // set executorOfSchema - val.ExecutorAddress = append(val.ExecutorAddress, systemActioner) - - app.NftmngrKeeper.SetExecutorOfSchema(ctx, nftmngrtypes.ExecutorOfSchema{ - NftSchemaCode: nftSchemaV1.Code, - ExecutorAddress: val.ExecutorAddress, - }) - } - - // migrate schema to new schema - app.NftmngrKeeper.SetNFTSchema(ctx, nftmngrtypes.NFTSchema{ - Code: nftSchemaV1.Code, - Name: nftSchemaV1.Name, - Owner: nftSchemaV1.Owner, - Description: nftSchemaV1.Name, - OriginData: nftSchemaV1.OriginData, - OnchainData: &nftmngrtypes.OnChainData{ - NftAttributes: nftSchemaV1.OnchainData.NftAttributes, - TokenAttributes: nftSchemaV1.OnchainData.TokenAttributes, - Actions: nftSchemaV1.OnchainData.Actions, - Status: nftSchemaV1.OnchainData.Status, - }, - IsVerified: nftSchemaV1.IsVerified, - MintAuthorization: nftSchemaV1.MintAuthorization, - }) - - // migrate NFT attributes to new schema attributes - for _, nftAttribute := range nftSchemaV1.OnchainData.NftAttributes { - schemaAttibuteConverted, _ := nftmngrKeeper.ConvertDefaultMintValueToSchemaAttributeValue(nftAttribute.DefaultMintValue) - app.NftmngrKeeper.SetSchemaAttribute(ctx, nftmngrtypes.SchemaAttribute{ - NftSchemaCode: nftSchemaV1.Code, - Name: nftAttribute.Name, - DataType: nftAttribute.DataType, - CurrentValue: schemaAttibuteConverted, - Creator: nftSchemaV1.Owner, - }) - - } - - // migrate NFT actions to new schema actions - for i, nftAction := range nftSchemaV1.OnchainData.Actions { - app.NftmngrKeeper.SetActionOfSchema(ctx, nftmngrtypes.ActionOfSchema{ - NftSchemaCode: nftSchemaV1.Code, - Name: nftAction.Name, - Index: uint64(i), - }) - } - } - -} - -// for proposal v3.1.2-b to v3.1.2-c -func (app *App) RollbackFromV2toV1(ctx sdk.Context) { - - // get all NFTSchema - nftSchemasV2 := app.NftmngrKeeper.GetAllNFTSchema(ctx) - - for _, nftSchemaV2 := range nftSchemasV2 { - - nft_attributes_from_schema_attribute := []*nftmngrtypes.AttributeDefinition{} - - attribute_of_schema, found := app.NftmngrKeeper.GetAttributeOfSchema(ctx, nftSchemaV2.Code) - if !found { - continue - } - - for i, attribute := range attribute_of_schema.SchemaAttributes { - schemaAttribute, _ := nftmngrKeeper.ConvertSchemaAttributeToNftAttributeDefinition(attribute, i) - nft_attributes_from_schema_attribute = append(nft_attributes_from_schema_attribute, schemaAttribute) - } - - originOutput, nftOutput, tokenOutput := MergeAllAttributesAndAlterOrderIndex(nftSchemaV2.OriginData.OriginAttributes, nft_attributes_from_schema_attribute ,nftSchemaV2.OnchainData.TokenAttributes) - - // migrate schema to new schema - // parse schema_input to NFTSchema - schema := nftmngrtypes.NFTSchema{ - Code: nftSchemaV2.Code, - Name: nftSchemaV2.Name, - Owner: nftSchemaV2.Owner, - Description: nftSchemaV2.Description, - OriginData: &nftmngrtypes.OriginData{ - OriginChain: nftSchemaV2.OriginData.OriginChain, - OriginContractAddress: nftSchemaV2.OriginData.OriginContractAddress, - OriginBaseUri: nftSchemaV2.OriginData.OriginBaseUri, - AttributeOverriding: nftSchemaV2.OriginData.AttributeOverriding, - MetadataFormat: nftSchemaV2.OriginData.MetadataFormat, - OriginAttributes: originOutput, - UriRetrievalMethod: nftSchemaV2.OriginData.UriRetrievalMethod, - }, - OnchainData: &nftmngrtypes.OnChainData{ - TokenAttributes: tokenOutput, - NftAttributes: nftOutput, - Actions: nftSchemaV2.OnchainData.Actions, - Status: nftSchemaV2.OnchainData.Status, - }, - IsVerified: nftSchemaV2.IsVerified, - MintAuthorization: nftSchemaV2.MintAuthorization, - } - - - for _, schemaDefaultMintAttribute := range schema.OnchainData.NftAttributes { - schmaAttributeValue, _ := nftmngrKeeper.ConvertDefaultMintValueToSchemaAttributeValue(schemaDefaultMintAttribute.DefaultMintValue) - - app.NftmngrKeeper.SetSchemaAttribute(ctx, nftmngrtypes.SchemaAttribute{ - NftSchemaCode: schema.Code, - Name: schemaDefaultMintAttribute.Name, - DataType: schemaDefaultMintAttribute.DataType, - CurrentValue: schmaAttributeValue, - Creator: schema.Owner, - }) - } - - app.NftmngrKeeper.SetNFTSchema(ctx, schema) - - } - -} - - - -func MergeAllAttributesAndAlterOrderIndex(originAttributes []*nftmngrtypes.AttributeDefinition, nftAttribute []*nftmngrtypes.AttributeDefinition, tokenAttribute []*nftmngrtypes.AttributeDefinition) (originAttributeWithIndex []*nftmngrtypes.AttributeDefinition, nftAttributeWithIndex []*nftmngrtypes.AttributeDefinition, tokenAttributeWithIndex []*nftmngrtypes.AttributeDefinition) { - orignOutput := make([]*nftmngrtypes.AttributeDefinition, 0) - nftOutput := make([]*nftmngrtypes.AttributeDefinition, 0) - tokenOutput := make([]*nftmngrtypes.AttributeDefinition, 0) - // var index uint64 = 0 - // for _, attribute := range append(originAttributes, onchainTokenAttribute...) { - // attribute.Index = index - // mergedAttributes = append(mergedAttributes, attribute) - // index++ - // } - - var index uint64 = 0 - for _, attribute := range originAttributes { - attribute.Index = index - orignOutput = append(orignOutput, attribute) - index++ - } - for _, attribute := range nftAttribute { - attribute.Index = index - nftOutput = append(nftOutput, attribute) - index++ - } - - for _, attribute := range tokenAttribute { - attribute.Index = index - tokenOutput = append(tokenOutput, attribute) - index++ - } - - - return orignOutput, nftOutput, tokenOutput -} \ No newline at end of file diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 46956986..4013c484 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -13031,6 +13031,18 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -13512,6 +13524,18 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: |- QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method. @@ -13993,6 +14017,18 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -14606,6 +14642,210 @@ paths: + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + tags: + - Query + /cosmos/staking/v1beta1/validator_approval: + get: + summary: Validators queries all validators that match the given status. + operationId: CosmosStakingV1Beta1ValidatorApproval + responses: + '200': + description: A successful response. + schema: + type: object + properties: + validator_approval: + type: object + properties: + approver_address: + type: string + enabled: + type: boolean + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON ==== @@ -14834,6 +15074,18 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -15313,6 +15565,18 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean title: >- QueryValidatorResponse is response type for the Query/Validator RPC method @@ -16694,88 +16958,92 @@ paths: type: boolean tags: - Query - /cosmos/tx/v1beta1/simulate: - post: - summary: Simulate simulates executing a transaction for estimating gas usage. - operationId: CosmosTxV1Beta1Simulate + '/cosmos/staking/v2beta1/delegations/{delegator_addr}': + get: + summary: >- + DelegatorDelegations queries all delegations of a given delegator + address. + operationId: CosmosStakingV2Beta1DelegatorDelegations responses: '200': description: A successful response. schema: type: object properties: - gas_info: - description: gas_info is the information about gas used in the simulation. - type: object - properties: - gas_wanted: - type: string - format: uint64 - description: >- - GasWanted is the maximum units of work we allow this tx to - perform. - gas_used: - type: string - format: uint64 - description: GasUsed is the amount of gas actually consumed. - result: - description: result is the result of the simulation. - type: object - properties: - data: - type: string - format: byte - description: >- - Data is any data returned from message or handler - execution. It MUST be + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of + the delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of + the validator. + shares: + type: string + description: shares define the delegation shares received. + description: >- + Delegation represents the bond with tokens held by an + account. It is - length prefixed in order to separate data from multiple - message executions. - log: - type: string - description: >- - Log contains the log information from message or handler - execution. - events: - type: array - items: + owned by one delegator, and is associated with the + voting power of one + + validator. + balance: type: object properties: - type: + denom: + type: string + amount: type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - format: byte - value: - type: string - format: byte - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. description: >- - Event allows application developers to attach additional - information to + Coin defines a token with a denomination and an amount. - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. - Later, transactions may be queried using these events. - description: >- - Events contains a slice of Event objects that were emitted - during message + NOTE: The amount field is an Int which implements the + custom method - or handler execution. + signatures required by gogoproto. + description: >- + DelegationResponse is equivalent to Delegation except that + it contains a + + balance in addition to shares which is more suitable for + client responses. + description: >- + delegation_responses defines all the delegations' info of a + delegator. + pagination: + description: pagination defines the pagination in the response. + 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: |- - SimulateResponse is the response type for the - Service.SimulateRPC method. + QueryDelegatorDelegationsResponse is response type for the + Query/DelegatorDelegations RPC method. default: description: An unexpected error response. schema: @@ -16962,25 +17230,218 @@ paths: "value": "1.212s" } parameters: - - name: body - description: |- - SimulateRequest is the request type for the Service.Simulate - RPC method. - in: body + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path required: true - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' + 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: - - Service - /cosmos/tx/v1beta1/txs: + - Query + '/cosmos/staking/v2beta1/delegators/{delegator_addr}/redelegations': get: - summary: GetTxsEvent fetches txs by event. - operationId: CosmosTxV1Beta1GetTxsEvent + summary: Redelegations queries redelegations of given address. + operationId: CosmosStakingV2Beta1Redelegations responses: '200': description: A successful response. schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' + type: object + properties: + redelegation_responses: + type: array + items: + type: object + properties: + redelegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of + the delegator. + validator_src_address: + type: string + description: >- + validator_src_address is the validator redelegation + source operator address. + validator_dst_address: + type: string + description: >- + validator_dst_address is the validator redelegation + destination operator address. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the + redelegation took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for + redelegation completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance + when redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of + destination-validator shares created by + redelegation. + description: >- + RedelegationEntry defines a redelegation object + with relevant metadata. + description: |- + entries are the redelegation entries. + + redelegation entries + description: >- + Redelegation contains the list of a particular + delegator's redelegating bonds + + from a particular source validator to a particular + destination validator. + entries: + type: array + items: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the + redelegation took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for + redelegation completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance + when redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of + destination-validator shares created by + redelegation. + description: >- + RedelegationEntry defines a redelegation object + with relevant metadata. + balance: + type: string + description: >- + RedelegationEntryResponse is equivalent to a + RedelegationEntry except that it + + contains a balance in addition to shares which is more + suitable for client + + responses. + description: >- + RedelegationResponse is equivalent to a Redelegation except + that its entries + + contain a balance in addition to shares which is more + suitable for client + + responses. + pagination: + description: pagination defines the pagination in the response. + 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: >- + QueryRedelegationsResponse is response type for the + Query/Redelegations RPC + + method. default: description: An unexpected error response. schema: @@ -17167,14 +17628,21 @@ paths: "value": "1.212s" } parameters: - - name: events - description: events is the list of transaction event type. + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: src_validator_addr + description: src_validator_addr defines the validator address to redelegate from. in: query required: false - type: array - items: - type: string - collectionFormat: multi + type: string + - name: dst_validator_addr + description: dst_validator_addr defines the validator address to redelegate to. + in: query + required: false + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -17231,319 +17699,178 @@ paths: in: query required: false type: boolean - - name: order_by - description: |2- - - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. - - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - - ORDER_BY_DESC: ORDER_BY_DESC defines descending order - in: query - required: false - type: string - enum: - - ORDER_BY_UNSPECIFIED - - ORDER_BY_ASC - - ORDER_BY_DESC - default: ORDER_BY_UNSPECIFIED tags: - - Service - post: - summary: BroadcastTx broadcast transaction. - operationId: CosmosTxV1Beta1BroadcastTx + - Query + '/cosmos/staking/v2beta1/delegators/{delegator_addr}/unbonding_delegations': + get: + summary: >- + DelegatorUnbondingDelegations queries all unbonding delegations of a + given + + delegator address. + operationId: CosmosStakingV2Beta1DelegatorUnbondingDelegations responses: '200': description: A successful response. schema: type: object properties: - tx_response: - description: tx_response is the queried TxResponses. + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding + took place. + completion_time: + type: string + format: date-time + description: >- + completion_time is the unix time for unbonding + completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially + scheduled to receive at completion. + balance: + type: string + description: >- + balance defines the tokens to receive at + completion. + description: >- + UnbondingDelegationEntry defines an unbonding object + with relevant metadata. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries + description: >- + UnbondingDelegation stores all of a single delegator's + unbonding bonds + + for a single validator in an time-ordered list. + pagination: + description: pagination defines the pagination in the response. type: object properties: - height: - type: string - format: int64 - title: The block height - txhash: - type: string - description: The transaction hash. - codespace: - type: string - title: Namespace for the Code - code: - type: integer - format: int64 - description: Response code. - data: + next_key: type: string - description: 'Result bytes, if any.' - raw_log: + format: byte + title: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently + total: type: string - description: >- - The output of the application's logger (raw string). May - be + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - non-deterministic. - logs: - type: array - items: - type: object - properties: - msg_index: - type: integer - format: int64 - log: - type: string - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - description: >- - Attribute defines an attribute wrapper where - the key and value are + was set, its value is undefined otherwise + description: >- + QueryUnbondingDelegatorDelegationsResponse is response type for + the - strings instead of raw bytes. - description: >- - StringEvent defines en Event object wrapper where - all the attributes + Query/UnbondingDelegatorDelegations RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - contain key/value pairs that are strings instead - of raw bytes. - description: >- - Events contains a slice of Event objects that were - emitted during some + protocol buffer message. This string must contain at + least - execution. - description: >- - ABCIMessageLog defines a structure containing an indexed - tx ABCI message log. - description: >- - The output of the application's logger (typed). May be - non-deterministic. - info: - type: string - description: Additional information. May be non-deterministic. - gas_wanted: - type: string - format: int64 - description: Amount of gas requested for transaction. - gas_used: - type: string - format: int64 - description: Amount of gas consumed by transaction. - tx: - description: The request transaction bytes. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + one "/" character. The last segment of the URL's path + must represent - protocol buffer message. This string must contain at - least + the fully qualified name of the type (as in - one "/" character. The last segment of the URL's path - must represent + `path/google.protobuf.Duration`). The name should be in + a canonical form - the fully qualified name of the type (as in + (e.g., leading "." is not accepted). - `path/google.protobuf.Duration`). The name should be - in a canonical form - (e.g., leading "." is not accepted). + In practice, teams usually precompile into the binary + all types that they + expect it to use in the context of Any. However, for + URLs which use the - In practice, teams usually precompile into the binary - all types that they + scheme `http`, `https`, or no scheme, one can optionally + set up a type - expect it to use in the context of Any. However, for - URLs which use the + server that maps type URLs to message definitions as + follows: - scheme `http`, `https`, or no scheme, one can - optionally set up a type - server that maps type URLs to message definitions as - follows: + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - * If no scheme is provided, `https` is assumed. + Note: this functionality is not currently available in + the official - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + protobuf release, and it is not used for type URLs + beginning with - Note: this functionality is not currently available in - the official + type.googleapis.com. - protobuf release, and it is not used for type URLs - beginning with - type.googleapis.com. + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - timestamp: - type: string - description: >- - Time of the previous block. For heights > 1, it's the - weighted median of - - the timestamps of the valid votes in the block.LastCommit. - For height == 1, - - it's genesis time. - events: - type: array - items: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - format: byte - value: - type: string - format: byte - index: - type: boolean - title: nondeterministic - description: >- - EventAttribute is a single key-value pair, - associated with an event. - description: >- - Event allows application developers to attach additional - information to - - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. - - Later, transactions may be queried using these events. - description: >- - Events defines all the events emitted by processing a - transaction. Note, - - these events include those emitted by processing all the - messages and those - - emitted from the ante handler. Whereas Logs contains the - events, with - - additional metadata, emitted only by processing the - messages. - - - Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: |- - BroadcastTxResponse is the response type for the - Service.BroadcastTx method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values @@ -17651,57 +17978,317 @@ paths: "value": "1.212s" } parameters: - - name: body + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + 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: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest + offset is a numeric offset that can be used when key is unavailable. - RPC method. - in: body - required: true - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - mode: - type: string - enum: - - BROADCAST_MODE_UNSPECIFIED - - BROADCAST_MODE_BLOCK - - BROADCAST_MODE_SYNC - - BROADCAST_MODE_ASYNC - default: BROADCAST_MODE_UNSPECIFIED - description: >- - BroadcastMode specifies the broadcast mode for the - TxService.Broadcast RPC method. + It is less efficient than using key. Only one of offset or key + should - - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for - the tx to be committed in a block. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - immediately. - description: >- - BroadcastTxRequest is the request type for the - Service.BroadcastTxRequest + 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. - RPC method. + 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: - - Service - '/cosmos/tx/v1beta1/txs/block/{height}': + - Query + '/cosmos/staking/v2beta1/delegators/{delegator_addr}/validators': get: - summary: GetBlockWithTxs fetches a block with decoded txs. - description: 'Since: cosmos-sdk 0.45.2' - operationId: CosmosTxV1Beta1GetBlockWithTxs + summary: |- + DelegatorValidators queries all validators info for given delegator + address. + operationId: CosmosStakingV2Beta1DelegatorValidators responses: '200': description: A successful response. schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' + type: object + properties: + validators: + type: array + items: + type: object + properties: + operator_address: + type: string + description: >- + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed + from bonded status or not. + status: + description: >- + status is the validator status + (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: >- + tokens define the delegated tokens (incl. + self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: >- + description defines the description terms for the + validator. + type: object + properties: + moniker: + type: string + description: >- + moniker defines a human-readable name for the + validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. + UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for + security contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at + which this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for + the validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission + rates to be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to + delegators, as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate + which validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily + increase of the validator commission, as a + fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared + minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean + description: >- + Validator defines a validator, together with the total + amount of the + + Validator's bond shares and their exchange rate to coins. + Slashing results in + + a decrease in the exchange rate, allowing correct + calculation of future + + undelegations without iterating over delegators. When coins + are delegated to + + this validator, the validator is credited with a delegation + whose number of + + bond shares is based on the amount of coins delegated + divided by the current + + exchange rate. Voting power can be calculated as total + bonded shares + + multiplied by exchange rate. + description: validators defines the the validators' info of a delegator. + pagination: + description: pagination defines the pagination in the response. + 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: |- + QueryDelegatorValidatorsResponse is response type for the + Query/DelegatorValidators RPC method. default: description: An unexpected error response. schema: @@ -17888,12 +18475,11 @@ paths: "value": "1.212s" } parameters: - - name: height - description: height is the height of the block to query. + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. in: path required: true type: string - format: int64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -17951,228 +18537,211 @@ paths: required: false type: boolean tags: - - Service - '/cosmos/tx/v1beta1/txs/{hash}': + - Query + '/cosmos/staking/v2beta1/delegators/{delegator_addr}/validators/{validator_addr}': get: - summary: GetTx fetches a tx by hash. - operationId: CosmosTxV1Beta1GetTx + summary: |- + DelegatorValidator queries validator info for given delegator validator + pair. + operationId: CosmosStakingV2Beta1DelegatorValidator responses: '200': description: A successful response. - schema: - $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' - default: - description: An unexpected error response. schema: type: object properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use + validator: + description: validator defines the the validator info. + type: object + properties: + operator_address: + type: string + description: >- + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + protocol buffer message. This string must contain at + least - methods only use the fully qualified type name after the - last '/' + one "/" character. The last segment of the URL's path + must represent - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + the fully qualified name of the type (as in - name "y.z". + `path/google.protobuf.Duration`). The name should be + in a canonical form + (e.g., leading "." is not accepted). - JSON + In practice, teams usually precompile into the binary + all types that they - ==== + expect it to use in the context of Any. However, for + URLs which use the - The JSON representation of an `Any` value uses the regular + scheme `http`, `https`, or no scheme, one can + optionally set up a type - representation of the deserialized, embedded message, with - an + server that maps type URLs to message definitions as + follows: - additional field `@type` which contains the type URL. - Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + * If no scheme is provided, `https` is assumed. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - If the embedded message type is well-known and has a custom - JSON + Note: this functionality is not currently available in + the official - representation, that representation will be embedded adding - a field + protobuf release, and it is not used for type URLs + beginning with - `value` which holds the custom JSON in addition to the - `@type` + type.googleapis.com. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: hash - description: 'hash is the tx hash to query, encoded as a hex string.' - in: path - required: true - type: string - tags: - - Service - '/cosmos/upgrade/v1beta1/applied_plan/{name}': - get: - summary: AppliedPlan queries a previously applied upgrade plan by its name. - operationId: CosmosUpgradeV1Beta1AppliedPlan - responses: - '200': - description: A successful response. - schema: - type: object - properties: - height: - type: string - format: int64 - description: height is the block height at which the plan was applied. - description: >- - QueryAppliedPlanResponse is the response type for the - Query/AppliedPlan RPC + Schemes other than `http`, `https` (or the empty + scheme) might be - method. + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from + bonded status or not. + status: + description: >- + status is the validator status + (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: >- + tokens define the delegated tokens (incl. + self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: >- + description defines the description terms for the + validator. + type: object + properties: + moniker: + type: string + description: >- + moniker defines a human-readable name for the + validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. + UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for + security contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at + which this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates + to be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, + as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase + of the validator commission, as a fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared + minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean + description: |- + QueryDelegatorValidatorResponse response type for the + Query/DelegatorValidator RPC method. default: description: An unexpected error response. schema: @@ -18359,145 +18928,338 @@ paths: "value": "1.212s" } parameters: - - name: name - description: name is the name of the applied plan to query for. + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + - name: validator_addr + description: validator_addr defines the validator address to query for. in: path required: true type: string tags: - Query - /cosmos/upgrade/v1beta1/current_plan: + '/cosmos/staking/v2beta1/historical_info/{height}': get: - summary: CurrentPlan queries the current upgrade plan. - operationId: CosmosUpgradeV1Beta1CurrentPlan + summary: HistoricalInfo queries the historical info for given height. + operationId: CosmosStakingV2Beta1HistoricalInfo responses: '200': description: A successful response. schema: type: object properties: - plan: - description: plan is the current upgrade plan. + hist: + description: hist defines the historical info at the given height. type: object properties: - name: - type: string - description: >- - Sets the name for the upgrade. This name will be used by - the upgraded + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - version of the software to apply any special "on-upgrade" - commands during + including all blockchain data structures and the rules + of the application's - the first BeginBlock method after the upgrade is applied. - It is also used + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + title: prev block info + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + valset: + type: array + items: + type: object + properties: + operator_address: + type: string + description: >- + operator_address defines the address of the + validator's operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - to detect whether a software version can handle a given - upgrade. If no + protocol buffer message. This string must + contain at least - upgrade handler with this name has been set in the - software, it will be + one "/" character. The last segment of the URL's + path must represent - assumed that the software is out-of-date when the upgrade - Time or Height is + the fully qualified name of the type (as in - reached and the software will exit. - time: - type: string - format: date-time - description: >- - Deprecated: Time based upgrades have been deprecated. Time - based upgrade logic + `path/google.protobuf.Duration`). The name + should be in a canonical form - has been removed from the SDK. + (e.g., leading "." is not accepted). - If this field is not empty, an error will be thrown. - height: - type: string - format: int64 - description: |- - The height at which the upgrade must be performed. - Only used if Time is not set. - info: - type: string - title: >- - Any application specific upgrade info to be included - on-chain - such as a git commit that validators could automatically - upgrade to - upgraded_client_state: - description: >- - Deprecated: UpgradedClientState field has been deprecated. - IBC upgrade logic has been + In practice, teams usually precompile into the + binary all types that they - moved to the IBC module in the sub module 02-client. + expect it to use in the context of Any. However, + for URLs which use the - If this field is not empty, an error will be thrown. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent + scheme `http`, `https`, or no scheme, one can + optionally set up a type - the fully qualified name of the type (as in + server that maps type URLs to message + definitions as follows: - `path/google.protobuf.Duration`). The name should be - in a canonical form - (e.g., leading "." is not accepted). + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup + results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - In practice, teams usually precompile into the binary - all types that they + Note: this functionality is not currently + available in the official - expect it to use in the context of Any. However, for - URLs which use the + protobuf release, and it is not used for type + URLs beginning with - scheme `http`, `https`, or no scheme, one can - optionally set up a type + type.googleapis.com. - server that maps type URLs to message definitions as - follows: + Schemes other than `http`, `https` (or the empty + scheme) might be - * If no scheme is provided, `https` is assumed. + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed + from bonded status or not. + status: + description: >- + status is the validator status + (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: >- + tokens define the delegated tokens (incl. + self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: >- + description defines the description terms for the + validator. + type: object + properties: + moniker: + type: string + description: >- + moniker defines a human-readable name for the + validator. + identity: + type: string + description: >- + identity defines an optional identity signature + (ex. UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for + security contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height + at which this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time + for the validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission + rates to be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to + delegators, as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate + which validator can ever charge, as a + fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily + increase of the validator commission, as a + fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate + was changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared + minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean + description: >- + Validator defines a validator, together with the total + amount of the - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Validator's bond shares and their exchange rate to + coins. Slashing results in - Note: this functionality is not currently available in - the official + a decrease in the exchange rate, allowing correct + calculation of future - protobuf release, and it is not used for type URLs - beginning with + undelegations without iterating over delegators. When + coins are delegated to - type.googleapis.com. + this validator, the validator is credited with a + delegation whose number of + bond shares is based on the amount of coins delegated + divided by the current - Schemes other than `http`, `https` (or the empty - scheme) might be + exchange rate. Voting power can be calculated as total + bonded shares - used with implementation specific semantics. - additionalProperties: {} + multiplied by exchange rate. description: >- - QueryCurrentPlanResponse is the response type for the - Query/CurrentPlan RPC + QueryHistoricalInfoResponse is response type for the + Query/HistoricalInfo RPC method. default: @@ -18685,46 +19447,54 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: height + description: height defines at which height to query the historical info. + in: path + required: true + type: string + format: int64 tags: - Query - /cosmos/upgrade/v1beta1/module_versions: + /cosmos/staking/v2beta1/params: get: - summary: ModuleVersions queries the list of module versions from state. - description: 'Since: cosmos-sdk 0.43' - operationId: CosmosUpgradeV1Beta1ModuleVersions + summary: Parameters queries the staking parameters. + operationId: CosmosStakingV2Beta1Params responses: '200': description: A successful response. schema: type: object properties: - module_versions: - type: array - items: - type: object - properties: - name: - type: string - title: name of the app module - version: - type: string - format: uint64 - title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 - description: >- - module_versions is a list of module names with their consensus - versions. + params: + description: params holds all the parameters of this module. + type: object + properties: + unbonding_time: + type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 + description: >- + max_entries is the max entries for either unbonding + delegation or redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: >- + historical_entries is the number of historical entries to + persist. + bond_denom: + type: string + description: bond_denom defines the bondable coin denomination. description: >- - QueryModuleVersionsResponse is the response type for the - Query/ModuleVersions - - RPC method. - - - Since: cosmos-sdk 0.43 + QueryParamsResponse is response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -18910,47 +19680,27 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: module_name - description: |- - module_name is a field to query a specific module - consensus version from state. Leaving this empty will - fetch the full list of module versions from state - in: query - required: false - type: string tags: - Query - '/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}': + /cosmos/staking/v2beta1/pool: get: - summary: >- - UpgradedConsensusState queries the consensus state that will serve - - as a trusted kernel for the next version of this chain. It will only be - - stored at the last height of this chain. - - UpgradedConsensusState RPC not supported with legacy querier - - This rpc is deprecated now that IBC has its own replacement - - (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) - operationId: CosmosUpgradeV1Beta1UpgradedConsensusState + summary: Pool queries the pool info. + operationId: CosmosStakingV2Beta1Pool responses: '200': description: A successful response. schema: type: object properties: - upgraded_consensus_state: - type: string - format: byte - title: 'Since: cosmos-sdk 0.43' - description: >- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState - - RPC method. + pool: + description: pool defines the pool info. + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + description: QueryPoolResponse is response type for the Query/Pool RPC method. default: description: An unexpected error response. schema: @@ -19136,124 +19886,25 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: last_height - description: |- - last height of the current chain must be sent in request - as this is the height under which next consensus state is stored - in: path - required: true - type: string - format: int64 - tags: - - Query - /ibc/apps/interchain_accounts/controller/v1/params: - get: - summary: Params queries all parameters of the ICA controller submodule. - operationId: IbcApplicationsInterchainAccountsControllerV1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - controller_enabled: - type: boolean - description: >- - controller_enabled enables or disables the controller - submodule. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} tags: - Query - /ibc/apps/interchain_accounts/host/v1/params: + /cosmos/staking/v2beta1/validator_approval: get: - summary: Params queries all parameters of the ICA host submodule. - operationId: IbcApplicationsInterchainAccountsHostV1Params + summary: Validators queries all validators that match the given status. + operationId: CosmosStakingV2Beta1ValidatorApproval responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. + validator_approval: type: object properties: - host_enabled: + approver_address: + type: string + enabled: type: boolean - description: host_enabled enables or disables the host submodule. - allow_messages: - type: array - items: - type: string - description: >- - allow_messages defines a list of sdk message typeURLs - allowed to be executed on a host chain. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - '/ibc/apps/transfer/v1/denom_hashes/{trace}': - get: - summary: DenomHash queries a denomination hash information. - operationId: IbcApplicationsTransferV1DenomHash - responses: - '200': - description: A successful response. - schema: - type: object - properties: - hash: - type: string - description: hash (in hex format) of the denomination trace information. - description: >- - QueryDenomHashResponse is the response type for the - Query/DenomHash RPC - - method. default: description: An unexpected error response. schema: @@ -19439,45 +20090,233 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: trace - description: 'The denomination trace ([port_id]/[channel_id])+/[denom]' - in: path - required: true - type: string tags: - Query - /ibc/apps/transfer/v1/denom_traces: + /cosmos/staking/v2beta1/validators: get: - summary: DenomTraces queries all denomination traces. - operationId: IbcApplicationsTransferV1DenomTraces + summary: Validators queries all validators that match the given status. + operationId: CosmosStakingV2Beta1Validators responses: '200': description: A successful response. schema: type: object properties: - denom_traces: + validators: type: array items: type: object properties: - path: + operator_address: type: string description: >- - path defines the chain of port/channel identifiers used - for tracing the + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - source of the fungible token. - base_denom: + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's + path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the + binary all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available + in the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed + from bonded status or not. + status: + description: >- + status is the validator status + (bonded/unbonding/unbonded). type: string - description: base denomination of the relayed fungible token. + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: >- + tokens define the delegated tokens (incl. + self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: >- + description defines the description terms for the + validator. + type: object + properties: + moniker: + type: string + description: >- + moniker defines a human-readable name for the + validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. + UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for + security contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at + which this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for + the validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission + rates to be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to + delegators, as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate + which validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily + increase of the validator commission, as a + fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared + minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- - DenomTrace contains the base denomination for ICS20 fungible - tokens and the + Validator defines a validator, together with the total + amount of the - source tracing information path. - description: denom_traces returns all denominations trace information. + Validator's bond shares and their exchange rate to coins. + Slashing results in + + a decrease in the exchange rate, allowing correct + calculation of future + + undelegations without iterating over delegators. When coins + are delegated to + + this validator, the validator is credited with a delegation + whose number of + + bond shares is based on the amount of coins delegated + divided by the current + + exchange rate. Voting power can be calculated as total + bonded shares + + multiplied by exchange rate. + description: validators contains all the queried validators. pagination: description: pagination defines the pagination in the response. type: object @@ -19496,11 +20335,9 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - description: >- - QueryConnectionsResponse is the response type for the - Query/DenomTraces RPC - - method. + title: >- + QueryValidatorsResponse is response type for the Query/Validators + RPC method default: description: An unexpected error response. schema: @@ -19687,6 +20524,11 @@ paths: "value": "1.212s" } parameters: + - name: status + description: status enables to query for validators matching a given status. + in: query + required: false + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -19733,265 +20575,220 @@ paths: 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 - '/ibc/apps/transfer/v1/denom_traces/{hash}': + '/cosmos/staking/v2beta1/validators/{validator_addr}': get: - summary: DenomTrace queries a denomination trace information. - operationId: IbcApplicationsTransferV1DenomTrace + summary: Validator queries validator info for given validator address. + operationId: CosmosStakingV2Beta1Validator responses: '200': description: A successful response. schema: type: object properties: - denom_trace: - description: >- - denom_trace returns the requested denomination trace - information. + validator: + description: validator defines the the validator info. type: object properties: - path: + operator_address: type: string description: >- - path defines the chain of port/channel identifiers used - for tracing the - - source of the fungible token. - base_denom: - type: string - description: base denomination of the relayed fungible token. - description: >- - QueryDenomTraceResponse is the response type for the - Query/DenomTrace RPC - - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - * If no scheme is provided, `https` is assumed. + protocol buffer message. This string must contain at + least - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + one "/" character. The last segment of the URL's path + must represent - Note: this functionality is not currently available in - the official + the fully qualified name of the type (as in - protobuf release, and it is not used for type URLs - beginning with + `path/google.protobuf.Duration`). The name should be + in a canonical form - type.googleapis.com. + (e.g., leading "." is not accepted). - Schemes other than `http`, `https` (or the empty scheme) - might be + In practice, teams usually precompile into the binary + all types that they - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + expect it to use in the context of Any. However, for + URLs which use the - URL that describes the type of the serialized message. + scheme `http`, `https`, or no scheme, one can + optionally set up a type + server that maps type URLs to message definitions as + follows: - Protobuf library provides support to pack/unpack Any values - in the form - of utility functions or additional generated methods of the - Any type. + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Example 1: Pack and unpack a message in C++. + Note: this functionality is not currently available in + the official - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + protobuf release, and it is not used for type URLs + beginning with - Example 2: Pack and unpack a message in Java. + type.googleapis.com. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. + Schemes other than `http`, `https` (or the empty + scheme) might be - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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: hash - description: >- - hash (in hex format) or denom (full denom with ibc prefix) of the - denomination trace information. - in: path - required: true - type: string - tags: - - Query - /ibc/apps/transfer/v1/params: - get: - summary: Params queries all parameters of the ibc-transfer module. - operationId: IbcApplicationsTransferV1Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - send_enabled: + used with implementation specific semantics. + additionalProperties: {} + jailed: type: boolean description: >- - send_enabled enables or disables all cross-chain token - transfers from this - - chain. - receive_enabled: - type: boolean + jailed defined whether the validator has been jailed from + bonded status or not. + status: description: >- - receive_enabled enables or disables all cross-chain token - transfers to this - - chain. - description: >- - QueryParamsResponse is the response type for the Query/Params RPC - method. + status is the validator status + (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: >- + tokens define the delegated tokens (incl. + self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: >- + description defines the description terms for the + validator. + type: object + properties: + moniker: + type: string + description: >- + moniker defines a human-readable name for the + validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. + UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for + security contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at + which this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates + to be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, + as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase + of the validator commission, as a fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared + minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean + title: >- + QueryValidatorResponse is response type for the Query/Validator + RPC method default: description: An unexpected error response. schema: @@ -20177,100 +20974,76 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string tags: - Query - /ibc/core/channel/v1/channels: + '/cosmos/staking/v2beta1/validators/{validator_addr}/delegations': get: - summary: Channels queries all the IBC channels of a chain. - operationId: IbcCoreChannelV1Channels + summary: ValidatorDelegations queries delegate info for given validator. + operationId: CosmosStakingV2Beta1ValidatorDelegations responses: '200': description: A successful response. schema: type: object properties: - channels: + delegation_responses: type: array items: type: object properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED + delegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of + the delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of + the validator. + shares: + type: string + description: shares define the delegation shares received. description: >- - State defines if a channel is in one of the following - states: + Delegation represents the bond with tokens held by an + account. It is - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + owned by one delegator, and is associated with the + voting power of one - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: >- - - ORDER_NONE_UNSPECIFIED: zero-value for channel - ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end + validator. + balance: type: object properties: - port_id: + denom: type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: + amount: type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on + description: >- + Coin defines a token with a denomination and an amount. - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier + + NOTE: The amount field is an Int which implements the + custom method + + signatures required by gogoproto. description: >- - IdentifiedChannel defines a channel with additional port and - channel + DelegationResponse is equivalent to Delegation except that + it contains a - identifier fields. - description: list of stored channels of the chain. + balance in addition to shares which is more suitable for + client responses. pagination: - title: pagination response + description: pagination defines the pagination in the response. type: object properties: next_key: @@ -20287,48 +21060,9 @@ paths: 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; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryChannelsResponse is the response type for the Query/Channels - RPC method. + title: |- + QueryValidatorDelegationsResponse is response type for the + Query/ValidatorDelegations RPC method default: description: An unexpected error response. schema: @@ -20515,6 +21249,11 @@ paths: "value": "1.212s" } parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -20561,142 +21300,85 @@ paths: 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 - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}': + '/cosmos/staking/v2beta1/validators/{validator_addr}/delegations/{delegator_addr}': get: - summary: Channel queries an IBC Channel. - operationId: IbcCoreChannelV1Channel + summary: Delegation queries delegate info for given validator delegator pair. + operationId: CosmosStakingV2Beta1Delegation responses: '200': description: A successful response. schema: type: object properties: - channel: - title: channel associated with the request identifiers + delegation_response: + description: >- + delegation_responses defines the delegation info of a + delegation. type: object properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED + delegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + shares: + type: string + description: shares define the delegation shares received. description: >- - State defines if a channel is in one of the following - states: + Delegation represents the bond with tokens held by an + account. It is - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + owned by one delegator, and is associated with the voting + power of one - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: |- - - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end + validator. + balance: type: object properties: - port_id: + denom: type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: + amount: type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on + description: >- + Coin defines a token with a denomination and an amount. - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - description: >- - Channel defines pipeline for exactly-once packet delivery - between specific - modules on separate blockchains, which has at least one end - capable of + NOTE: The amount field is an Int which implements the + custom method - sending packets and one end capable of receiving packets. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - description: >- - QueryChannelResponse is the response type for the Query/Channel - RPC method. - - Besides the Channel end, it includes a proof and the height from - which the - - proof was retrieved. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + signatures required by gogoproto. + description: >- + QueryDelegationResponse is response type for the Query/Delegation + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: type: string details: type: array @@ -20874,254 +21556,368 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier + - name: validator_addr + description: validator_addr defines the validator address to query for. in: path required: true type: string - - name: port_id - description: port unique identifier + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. in: path required: true type: string tags: - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state': + '/cosmos/staking/v2beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation': get: - summary: >- - ChannelClientState queries for the client state for the channel - associated - - with the provided channel identifiers. - operationId: IbcCoreChannelV1ChannelClientState + summary: |- + UnbondingDelegation queries unbonding info for given validator delegator + pair. + operationId: CosmosStakingV2Beta1UnbondingDelegation responses: '200': description: A successful response. schema: type: object properties: - identified_client_state: - title: client state associated with the channel + unbond: + description: unbond defines the unbonding information of a delegation. type: object properties: - client_id: + delegator_address: type: string - title: client identifier - client_state: - title: client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding + took place. + completion_time: + type: string + format: date-time + description: >- + completion_time is the unix time for unbonding + completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially + scheduled to receive at completion. + balance: + type: string + description: balance defines the tokens to receive at completion. + description: >- + UnbondingDelegationEntry defines an unbonding object + with relevant metadata. + description: |- + entries are the unbonding delegation entries. - protocol buffer message. This string must contain at - least + unbonding delegation entries + description: >- + QueryDelegationResponse is response type for the + Query/UnbondingDelegation - one "/" character. The last segment of the URL's path - must represent + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - the fully qualified name of the type (as in + protocol buffer message. This string must contain at + least - `path/google.protobuf.Duration`). The name should be - in a canonical form + one "/" character. The last segment of the URL's path + must represent - (e.g., leading "." is not accepted). + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - In practice, teams usually precompile into the binary - all types that they + (e.g., leading "." is not accepted). - expect it to use in the context of Any. However, for - URLs which use the - scheme `http`, `https`, or no scheme, one can - optionally set up a type + In practice, teams usually precompile into the binary + all types that they - server that maps type URLs to message definitions as - follows: + expect it to use in the context of Any. However, for + URLs which use the + scheme `http`, `https`, or no scheme, one can optionally + set up a type - * If no scheme is provided, `https` is assumed. + server that maps type URLs to message definitions as + follows: - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in - the official + * If no scheme is provided, `https` is assumed. - protobuf release, and it is not used for type URLs - beginning with + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - type.googleapis.com. + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - Schemes other than `http`, `https` (or the empty - scheme) might be + type.googleapis.com. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - URL that describes the type of the serialized message. + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Protobuf library provides support to pack/unpack Any - values in the form + URL that describes the type of the serialized message. - of utility functions or additional generated methods of - the Any type. + Protobuf library provides support to pack/unpack Any values + in the form - Example 1: Pack and unpack a message in C++. + of utility functions or additional generated methods of the + Any type. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any = Any.pack(foo); + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + } - Example 3: Pack and unpack a message in Python. + Example 2: Pack and unpack a message in Java. - foo = Foo(...) - any = Any() - any.Pack(foo) + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a - custom JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded - adding a field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - IdentifiedClientState defines a client state with an - additional client + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: validator_addr + description: validator_addr defines the validator address to query for. + in: path + required: true + type: string + - name: delegator_addr + description: delegator_addr defines the delegator address to query for. + in: path + required: true + type: string + tags: + - Query + '/cosmos/staking/v2beta1/validators/{validator_addr}/unbonding_delegations': + get: + summary: >- + ValidatorUnbondingDelegations queries unbonding delegations of a + validator. + operationId: CosmosStakingV2Beta1ValidatorUnbondingDelegations + responses: + '200': + description: A successful response. + schema: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding + took place. + completion_time: + type: string + format: date-time + description: >- + completion_time is the unix time for unbonding + completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially + scheduled to receive at completion. + balance: + type: string + description: >- + balance defines the tokens to receive at + completion. + description: >- + UnbondingDelegationEntry defines an unbonding object + with relevant metadata. + description: |- + entries are the unbonding delegation entries. - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + unbonding delegation entries + description: >- + UnbondingDelegation stores all of a single delegator's + unbonding bonds + + for a single validator in an time-ordered list. + pagination: + description: pagination defines the pagination in the response. type: object properties: - revision_number: + next_key: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + 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: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that + title: >- + total is total number of results available if + PageRequest.count_total - height continues to be monitonically increasing even as the - RevisionHeight + was set, its value is undefined otherwise + description: >- + QueryValidatorUnbondingDelegationsResponse is response type for + the - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method + Query/ValidatorUnbondingDelegations RPC method. default: description: An unexpected error response. schema: @@ -21308,239 +22104,117 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier + - name: validator_addr + description: validator_addr defines the validator address to query for. in: path required: true type: string - - name: port_id - description: port unique identifier - in: path - required: true + - 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 - tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}': - get: - summary: |- - ChannelConsensusState queries for the consensus state for the channel - associated with the provided channel identifiers. - operationId: IbcCoreChannelV1ChannelConsensusState - responses: - '200': - description: A successful response. - schema: - type: object - properties: - consensus_state: - title: consensus state associated with the channel - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - additional field `@type` which contains the type URL. Example: + It is less efficient than using key. Only one of offset or key + should - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + 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 - If the embedded message type is well-known and has a custom - JSON + a count of the total number of items available for pagination in + UIs. - representation, that representation will be embedded adding a - field + count_total is only respected when offset is used. It is ignored + when key - `value` which holds the custom JSON in addition to the `@type` + 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. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - client_id: - type: string - title: client ID associated with the consensus state - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /cosmos/staking/v2beta1/whitelistdelegator: + get: + summary: Queries a list of DelegatorWhitelistdelegator items. + operationId: CosmosStakingV2Beta1WhitelistdelegatorAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + whitelist_delegator: + type: array + items: + type: object + properties: + validator_address: + type: string + delegator_address: + type: array + items: + type: string + pagination: type: object properties: - revision_number: + next_key: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + 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: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine + title: >- + total is total number of results available if + PageRequest.count_total - breaking changes In these cases, the RevisionNumber is - incremented so that + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - height continues to be monitonically increasing even as the - RevisionHeight + corresponding request message has used PageRequest. - gets reset - title: |- - QueryChannelClientStateResponse is the Response type for the - Query/QueryChannelClientState RPC method + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } default: description: An unexpected error response. schema: @@ -21727,82 +22401,83 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true + - 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 - - name: revision_number - description: revision number of the consensus state - in: path - required: true + 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: revision_height - description: revision height of the consensus state - in: path - required: true + - 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 - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence': + '/cosmos/staking/v2beta1/whitelistdelegator/{validator}': get: - summary: >- - NextSequenceReceive returns the next receive sequence for a given - channel. - operationId: IbcCoreChannelV1NextSequenceReceive + summary: Queries a DelegatorWhitelistdelegator by index. + operationId: CosmosStakingV2Beta1Whitelistdelegator responses: '200': description: A successful response. schema: type: object properties: - next_sequence_receive: - type: string - format: uint64 - title: next sequence receive number - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + whitelist_delegator: type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + validator_address: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: |- - QuerySequenceResponse is the request type for the - Query/QueryNextSequenceReceiveResponse RPC method + delegator_address: + type: array + items: + type: string default: description: An unexpected error response. schema: @@ -21989,428 +22664,94 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier + - name: validator in: path required: true type: string tags: - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements': - get: - summary: >- - PacketAcknowledgements returns all the packet acknowledgements - associated - - with a channel. - operationId: IbcCoreChannelV1PacketAcknowledgements + /cosmos/tx/v1beta1/simulate: + post: + summary: Simulate simulates executing a transaction for estimating gas usage. + operationId: CosmosTxV1Beta1Simulate responses: '200': description: A successful response. schema: type: object properties: - acknowledgements: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response + gas_info: + description: gas_info is the information about gas used in the simulation. type: object properties: - next_key: + gas_wanted: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + description: >- + GasWanted is the maximum units of work we allow this tx to + perform. + gas_used: 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; - } - height: - title: query block height + description: GasUsed is the amount of gas actually consumed. + result: + description: result is the result of the simulation. type: object properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + data: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight + format: byte + description: >- + Data is any data returned from message or handler + execution. It MUST be - gets reset - title: |- - QueryPacketAcknowledgemetsResponse is the request type for the - Query/QueryPacketAcknowledgements RPC method - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - 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 - - is set. - in: query - required: false - type: boolean - - name: packet_commitment_sequences - description: list of packet sequences - in: query - required: false - type: array - items: - type: string - format: uint64 - collectionFormat: multi - tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}': - get: - summary: PacketAcknowledgement queries a stored packet acknowledgement hash. - operationId: IbcCoreChannelV1PacketAcknowledgement - responses: - '200': - description: A successful response. - schema: - type: object - properties: - acknowledgement: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + length prefixed in order to separate data from multiple + message executions. + log: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight + description: >- + Log contains the log information from message or handler + execution. + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + format: byte + value: + type: string + format: byte + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value pair, + associated with an event. + description: >- + Event allows application developers to attach additional + information to - gets reset - title: >- - QueryPacketAcknowledgementResponse defines the client query - response for a + ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx + and ResponseDeliverTx. - packet which also includes a proof and the height from which the + Later, transactions may be queried using these events. + description: >- + Events contains a slice of Event objects that were emitted + during message - proof was retrieved + or handler execution. + description: |- + SimulateResponse is the response type for the + Service.SimulateRPC method. default: description: An unexpected error response. schema: @@ -22597,125 +22938,25 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence - in: path + - name: body + description: |- + SimulateRequest is the request type for the Service.Simulate + RPC method. + in: body required: true - type: string - format: uint64 + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.SimulateRequest' tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments': + - Service + /cosmos/tx/v1beta1/txs: get: - summary: |- - PacketCommitments returns all the packet commitments hashes associated - with a channel. - operationId: IbcCoreChannelV1PacketCommitments + summary: GetTxsEvent fetches txs by event. + operationId: CosmosTxV1Beta1GetTxsEvent responses: '200': description: A successful response. schema: - type: object - properties: - commitments: - type: array - items: - type: object - properties: - port_id: - type: string - description: channel port identifier. - channel_id: - type: string - description: channel unique identifier. - sequence: - type: string - format: uint64 - description: packet sequence. - data: - type: string - format: byte - description: embedded data that represents packet state. - description: >- - PacketState defines the generic type necessary to retrieve - and store - - packet commitments, acknowledgements, and receipts. - - Caller is responsible for knowing the context necessary to - interpret this - - state as a commitment, acknowledgement, or a receipt. - pagination: - title: pagination response - 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; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: |- - QueryPacketCommitmentsResponse is the request type for the - Query/QueryPacketCommitments RPC method + $ref: '#/definitions/cosmos.tx.v1beta1.GetTxsEventResponse' default: description: An unexpected error response. schema: @@ -22902,16 +23143,14 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string + - name: events + description: events is the list of transaction event type. + in: query + required: false + type: array + items: + type: string + collectionFormat: multi - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -22958,60 +23197,250 @@ paths: in: query required: false type: boolean - tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks': - get: - summary: >- - UnreceivedAcks returns all the unreceived IBC acknowledgements - associated + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. - with a channel and sequences. - operationId: IbcCoreChannelV1UnreceivedAcks - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived acknowledgement sequences - height: - title: query block height + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: order_by + description: |2- + - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order + - ORDER_BY_DESC: ORDER_BY_DESC defines descending order + in: query + required: false + type: string + enum: + - ORDER_BY_UNSPECIFIED + - ORDER_BY_ASC + - ORDER_BY_DESC + default: ORDER_BY_UNSPECIFIED + tags: + - Service + post: + summary: BroadcastTx broadcast transaction. + operationId: CosmosTxV1Beta1BroadcastTx + responses: + '200': + description: A successful response. + schema: + type: object + properties: + tx_response: + description: tx_response is the queried TxResponses. type: object properties: - revision_number: + height: type: string - format: uint64 - title: the revision that the client is currently on - revision_height: + format: int64 + title: The block height + txhash: type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + description: The transaction hash. + codespace: + type: string + title: Namespace for the Code + code: + type: integer + format: int64 + description: Response code. + data: + type: string + description: 'Result bytes, if any.' + raw_log: + type: string + description: >- + The output of the application's logger (raw string). May + be - RevisionNumber the same. However some consensus algorithms may - choose to + non-deterministic. + logs: + type: array + items: + type: object + properties: + msg_index: + type: integer + format: int64 + log: + type: string + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + description: >- + Attribute defines an attribute wrapper where + the key and value are - reset the height in certain conditions e.g. hard forks, - state-machine + strings instead of raw bytes. + description: >- + StringEvent defines en Event object wrapper where + all the attributes - breaking changes In these cases, the RevisionNumber is - incremented so that + contain key/value pairs that are strings instead + of raw bytes. + description: >- + Events contains a slice of Event objects that were + emitted during some - height continues to be monitonically increasing even as the - RevisionHeight + execution. + description: >- + ABCIMessageLog defines a structure containing an indexed + tx ABCI message log. + description: >- + The output of the application's logger (typed). May be + non-deterministic. + info: + type: string + description: Additional information. May be non-deterministic. + gas_wanted: + type: string + format: int64 + description: Amount of gas requested for transaction. + gas_used: + type: string + format: int64 + description: Amount of gas consumed by transaction. + tx: + description: The request transaction bytes. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - gets reset - title: |- - QueryUnreceivedAcksResponse is the response type for the - Query/UnreceivedAcks RPC method + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be + in a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + timestamp: + type: string + description: >- + Time of the previous block. For heights > 1, it's the + weighted median of + + the timestamps of the valid votes in the block.LastCommit. + For height == 1, + + it's genesis time. + events: + type: array + items: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + format: byte + value: + type: string + format: byte + index: + type: boolean + title: nondeterministic + description: >- + EventAttribute is a single key-value pair, + associated with an event. + description: >- + Event allows application developers to attach additional + information to + + ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx + and ResponseDeliverTx. + + Later, transactions may be queried using these events. + description: >- + Events defines all the events emitted by processing a + transaction. Note, + + these events include those emitted by processing all the + messages and those + + emitted from the ante handler. Whereas Logs contains the + events, with + + additional metadata, emitted only by processing the + messages. + + + Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 + description: |- + BroadcastTxResponse is the response type for the + Service.BroadcastTx method. default: description: An unexpected error response. schema: @@ -23198,80 +23627,57 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: packet_ack_sequences - description: list of acknowledgement sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 - tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets': - get: - summary: >- - UnreceivedPackets returns all the unreceived IBC packets associated with - a + - name: body + description: >- + BroadcastTxRequest is the request type for the + Service.BroadcastTxRequest - channel and sequences. - operationId: IbcCoreChannelV1UnreceivedPackets - responses: - '200': - description: A successful response. + RPC method. + in: body + required: true schema: type: object properties: - sequences: - type: array - items: - type: string - format: uint64 - title: list of unreceived packet sequences - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision + tx_bytes: + type: string + format: byte + description: tx_bytes is the raw transaction. + mode: + type: string + enum: + - BROADCAST_MODE_UNSPECIFIED + - BROADCAST_MODE_BLOCK + - BROADCAST_MODE_SYNC + - BROADCAST_MODE_ASYNC + default: BROADCAST_MODE_UNSPECIFIED description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that + BroadcastMode specifies the broadcast mode for the + TxService.Broadcast RPC method. - height continues to be monitonically increasing even as the - RevisionHeight + - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering + - BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + the tx to be committed in a block. + - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + a CheckTx execution response only. + - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + immediately. + description: >- + BroadcastTxRequest is the request type for the + Service.BroadcastTxRequest - gets reset - title: |- - QueryUnreceivedPacketsResponse is the response type for the - Query/UnreceivedPacketCommitments RPC method + RPC method. + tags: + - Service + '/cosmos/tx/v1beta1/txs/block/{height}': + get: + summary: GetBlockWithTxs fetches a block with decoded txs. + description: 'Since: cosmos-sdk 0.45.2' + operationId: CosmosTxV1Beta1GetBlockWithTxs + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.GetBlockWithTxsResponse' default: description: An unexpected error response. schema: @@ -23458,83 +23864,79 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier + - name: height + description: height is the height of the block to query. in: path required: true type: string - - name: port_id - description: port unique identifier - in: path - required: true + format: int64 + - 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 - - name: packet_commitment_sequences - description: list of packet sequences - in: path - required: true - type: array - items: - type: string - format: uint64 - collectionFormat: csv - minItems: 1 - tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}': - get: - summary: PacketCommitment queries a stored packet commitment hash. - operationId: IbcCoreChannelV1PacketCommitment - responses: - '200': - description: A successful response. - schema: - type: object - properties: - commitment: - type: string - format: byte - title: packet associated with the request fields - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + format: byte + - name: pagination.offset + description: >- + offset is a numeric offset that can be used when key is unavailable. - RevisionNumber the same. However some consensus algorithms may - choose to + It is less efficient than using key. Only one of offset or key + should - reset the height in certain conditions e.g. hard forks, - state-machine + 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. - breaking changes In these cases, the RevisionNumber is - incremented so that + 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 - height continues to be monitonically increasing even as the - RevisionHeight + a count of the total number of items available for pagination in + UIs. - gets reset - title: >- - QueryPacketCommitmentResponse defines the client query response - for a packet + count_total is only respected when offset is used. It is ignored + when key - which also includes a proof and the height from which the proof - was + 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. - retrieved + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Service + '/cosmos/tx/v1beta1/txs/{hash}': + get: + summary: GetTx fetches a tx by hash. + operationId: CosmosTxV1Beta1GetTx + responses: + '200': + description: A successful response. + schema: + $ref: '#/definitions/cosmos.tx.v1beta1.GetTxResponse' default: description: An unexpected error response. schema: @@ -23721,82 +24123,32 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence + - name: hash + description: 'hash is the tx hash to query, encoded as a hex string.' in: path required: true type: string - format: uint64 tags: - - Query - '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}': + - Service + '/cosmos/upgrade/v1beta1/applied_plan/{name}': get: - summary: >- - PacketReceipt queries if a given packet sequence has been received on - the - - queried chain - operationId: IbcCoreChannelV1PacketReceipt + summary: AppliedPlan queries a previously applied upgrade plan by its name. + operationId: CosmosUpgradeV1Beta1AppliedPlan responses: '200': description: A successful response. schema: type: object properties: - received: - type: boolean - title: success flag for if receipt exists - proof: + height: type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping - - RevisionNumber the same. However some consensus algorithms may - choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that - - height continues to be monitonically increasing even as the - RevisionHeight - - gets reset - title: >- - QueryPacketReceiptResponse defines the client query response for a - packet - - receipt which also includes a proof, and the height from which the - proof was + format: int64 + description: height is the block height at which the plan was applied. + description: >- + QueryAppliedPlanResponse is the response type for the + Query/AppliedPlan RPC - retrieved + method. default: description: An unexpected error response. schema: @@ -23983,176 +24335,147 @@ paths: "value": "1.212s" } parameters: - - name: channel_id - description: channel unique identifier - in: path - required: true - type: string - - name: port_id - description: port unique identifier - in: path - required: true - type: string - - name: sequence - description: packet sequence + - name: name + description: name is the name of the applied plan to query for. in: path required: true type: string - format: uint64 tags: - Query - '/ibc/core/channel/v1/connections/{connection}/channels': + /cosmos/upgrade/v1beta1/current_plan: get: - summary: |- - ConnectionChannels queries all the channels associated with a connection - end. - operationId: IbcCoreChannelV1ConnectionChannels + summary: CurrentPlan queries the current upgrade plan. + operationId: CosmosUpgradeV1Beta1CurrentPlan responses: '200': description: A successful response. schema: type: object properties: - channels: - type: array - items: - type: object - properties: - state: - title: current state of the channel end - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - - STATE_CLOSED - default: STATE_UNINITIALIZED_UNSPECIFIED - description: >- - State defines if a channel is in one of the following - states: + plan: + description: plan is the current upgrade plan. + type: object + properties: + name: + type: string + description: >- + Sets the name for the upgrade. This name will be used by + the upgraded - CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + version of the software to apply any special "on-upgrade" + commands during - - STATE_UNINITIALIZED_UNSPECIFIED: Default State - - STATE_INIT: A channel has just started the opening handshake. - - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. - - STATE_OPEN: A channel has completed the handshake. Open channels are - ready to send and receive packets. - - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive - packets. - ordering: - title: whether the channel is ordered or unordered - type: string - enum: - - ORDER_NONE_UNSPECIFIED - - ORDER_UNORDERED - - ORDER_ORDERED - default: ORDER_NONE_UNSPECIFIED - description: >- - - ORDER_NONE_UNSPECIFIED: zero-value for channel - ordering - - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in - which they were sent. - - ORDER_ORDERED: packets are delivered exactly in the order which they were sent - counterparty: - title: counterparty channel end - type: object - properties: - port_id: - type: string - description: >- - port on the counterparty chain which owns the other - end of the channel. - channel_id: - type: string - title: channel end on the counterparty chain - connection_hops: - type: array - items: - type: string - title: >- - list of connection identifiers, in order, along which - packets sent on + the first BeginBlock method after the upgrade is applied. + It is also used - this channel will travel - version: - type: string - title: >- - opaque channel version, which is agreed upon during the - handshake - port_id: - type: string - title: port identifier - channel_id: - type: string - title: channel identifier - description: >- - IdentifiedChannel defines a channel with additional port and - channel + to detect whether a software version can handle a given + upgrade. If no - identifier fields. - description: list of channels associated with a connection. - pagination: - title: pagination response - type: object - properties: - next_key: + upgrade handler with this name has been set in the + software, it will be + + assumed that the software is out-of-date when the upgrade + Time or Height is + + reached and the software will exit. + time: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: date-time + description: >- + Deprecated: Time based upgrades have been deprecated. Time + based upgrade logic + + has been removed from the SDK. + + If this field is not empty, an error will be thrown. + height: + type: string + format: int64 + description: |- + The height at which the upgrade must be performed. + Only used if Time is not set. + info: type: string - format: uint64 title: >- - total is total number of results available if - PageRequest.count_total + Any application specific upgrade info to be included + on-chain - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + such as a git commit that validators could automatically + upgrade to + upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. + IBC upgrade logic has been - corresponding request message has used PageRequest. + moved to the IBC module in the sub module 02-client. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - height: - title: query block height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + If this field is not empty, an error will be thrown. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - RevisionNumber the same. However some consensus algorithms may - choose to + protocol buffer message. This string must contain at + least - reset the height in certain conditions e.g. hard forks, - state-machine + one "/" character. The last segment of the URL's path + must represent - breaking changes In these cases, the RevisionNumber is - incremented so that + the fully qualified name of the type (as in - height continues to be monitonically increasing even as the - RevisionHeight + `path/google.protobuf.Duration`). The name should be + in a canonical form - gets reset - title: |- - QueryConnectionChannelsResponse is the Response type for the - Query/QueryConnectionChannels RPC method + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can + optionally set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryCurrentPlanResponse is the response type for the + Query/CurrentPlan RPC + + method. default: description: An unexpected error response. schema: @@ -24338,86 +24661,46 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: connection - description: connection unique identifier - 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 - - is set. - in: query - required: false - type: boolean tags: - Query - /ibc/client/v1/params: + /cosmos/upgrade/v1beta1/module_versions: get: - summary: ClientParams queries all parameters of the ibc client. - operationId: IbcCoreClientV1ClientParams + summary: ModuleVersions queries the list of module versions from state. + description: 'Since: cosmos-sdk 0.43' + operationId: CosmosUpgradeV1Beta1ModuleVersions responses: '200': description: A successful response. schema: type: object properties: - params: - description: params defines the parameters of the module. - type: object - properties: - allowed_clients: - type: array - items: + module_versions: + type: array + items: + type: object + properties: + name: type: string - description: >- - allowed_clients defines the list of allowed client state - types. + title: name of the app module + version: + type: string + format: uint64 + title: consensus version of the app module + description: |- + ModuleVersion specifies a module and its consensus version. + + Since: cosmos-sdk 0.43 + description: >- + module_versions is a list of module names with their consensus + versions. description: >- - QueryClientParamsResponse is the response type for the - Query/ClientParams RPC + QueryModuleVersionsResponse is the response type for the + Query/ModuleVersions - method. + RPC method. + + + Since: cosmos-sdk 0.43 default: description: An unexpected error response. schema: @@ -24603,239 +24886,348 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: module_name + description: |- + module_name is a field to query a specific module + consensus version from state. Leaving this empty will + fetch the full list of module versions from state + in: query + required: false + type: string tags: - Query - /ibc/core/client/v1/client_states: + '/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}': get: - summary: ClientStates queries all the IBC light clients of a chain. - operationId: IbcCoreClientV1ClientStates + summary: >- + UpgradedConsensusState queries the consensus state that will serve + + as a trusted kernel for the next version of this chain. It will only be + + stored at the last height of this chain. + + UpgradedConsensusState RPC not supported with legacy querier + + This rpc is deprecated now that IBC has its own replacement + + (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) + operationId: CosmosUpgradeV1Beta1UpgradedConsensusState responses: '200': description: A successful response. schema: type: object properties: - client_states: + upgraded_consensus_state: + type: string + format: byte + title: 'Since: cosmos-sdk 0.43' + description: >- + QueryUpgradedConsensusStateResponse is the response type for the + Query/UpgradedConsensusState + + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - client_id: + '@type': type: string - title: client identifier - client_state: - title: client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's - path must represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the - binary all types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can - optionally set up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - protobuf release, and it is not used for type URLs - beginning with + Note: this functionality is not currently available in + the official - type.googleapis.com. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Schemes other than `http`, `https` (or the empty - scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Schemes other than `http`, `https` (or the empty scheme) + might be - URL that describes the type of the serialized message. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any - values in the form - of utility functions or additional generated methods of - the Any type. + Protobuf library provides support to pack/unpack Any values + in the form + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Example 1: Pack and unpack a message in C++. - Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Example 2: Pack and unpack a message in Java. - Example 3: Pack and unpack a message in Python. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Example 3: Pack and unpack a message in Python. - Example 4: Pack and unpack a message in Go + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 4: Pack and unpack a message in Go - The pack methods provided by protobuf library will by - default use + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + The pack methods provided by protobuf library will by + default use - methods only use the fully qualified type name after the - last '/' + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + methods only use the fully qualified type name after the + last '/' - name "y.z". + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + name "y.z". - JSON - ==== + JSON - The JSON representation of an `Any` value uses the - regular + ==== - representation of the deserialized, embedded message, - with an + The JSON representation of an `Any` value uses the regular - additional field `@type` which contains the type URL. - Example: + representation of the deserialized, embedded message, with + an - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + additional field `@type` which contains the type URL. + Example: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - If the embedded message type is well-known and has a - custom JSON + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation, that representation will be embedded - adding a field + If the embedded message type is well-known and has a custom + JSON - `value` which holds the custom JSON in addition to the - `@type` + representation, that representation will be embedded adding + a field - field. Example (for message - [google.protobuf.Duration][]): + `value` which holds the custom JSON in addition to the + `@type` - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - IdentifiedClientState defines a client state with an - additional client + field. Example (for message [google.protobuf.Duration][]): - identifier field. - description: list of stored ClientStates of the chain. - pagination: - title: pagination response + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: last_height + description: |- + last height of the current chain must be sent in request + as this is the height under which next consensus state is stored + in: path + required: true + type: string + format: int64 + tags: + - Query + /ibc/apps/interchain_accounts/controller/v1/params: + get: + summary: Params queries all parameters of the ICA controller submodule. + operationId: IbcApplicationsInterchainAccountsControllerV1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. 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; - } + controller_enabled: + type: boolean + description: >- + controller_enabled enables or disables the controller + submodule. description: >- - QueryClientStatesResponse is the response type for the - Query/ClientStates RPC + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /ibc/apps/interchain_accounts/host/v1/params: + get: + summary: Params queries all parameters of the ICA host submodule. + operationId: IbcApplicationsInterchainAccountsHostV1Params + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + host_enabled: + type: boolean + description: host_enabled enables or disables the host submodule. + allow_messages: + type: array + items: + type: string + description: >- + allow_messages defines a list of sdk message typeURLs + allowed to be executed on a host chain. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + '/ibc/apps/transfer/v1/denom_hashes/{trace}': + get: + summary: DenomHash queries a denomination hash information. + operationId: IbcApplicationsTransferV1DenomHash + responses: + '200': + description: A successful response. + schema: + type: object + properties: + hash: + type: string + description: hash (in hex format) of the denomination trace information. + description: >- + QueryDenomHashResponse is the response type for the + Query/DenomHash RPC method. default: @@ -25024,275 +25416,332 @@ paths: "value": "1.212s" } 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 + - name: trace + description: 'The denomination trace ([port_id]/[channel_id])+/[denom]' + in: path + required: true 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 tags: - Query - '/ibc/core/client/v1/client_states/{client_id}': + /ibc/apps/transfer/v1/denom_traces: get: - summary: ClientState queries an IBC light client. - operationId: IbcCoreClientV1ClientState + summary: DenomTraces queries all denomination traces. + operationId: IbcApplicationsTransferV1DenomTraces responses: '200': description: A successful response. schema: type: object properties: - client_state: - title: client state associated with the request identifier + denom_traces: + type: array + items: + type: object + properties: + path: + type: string + description: >- + path defines the chain of port/channel identifiers used + for tracing the + + source of the fungible token. + base_denom: + type: string + description: base denomination of the relayed fungible token. + description: >- + DenomTrace contains the base denomination for ICS20 fungible + tokens and the + + source tracing information path. + description: denom_traces returns all denominations trace information. + pagination: + description: pagination defines the pagination in the response. type: object properties: - '@type': + next_key: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + 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 - protocol buffer message. This string must contain at least + was set, its value is undefined otherwise + description: >- + QueryConnectionsResponse is the response type for the + Query/DenomTraces RPC - one "/" character. The last segment of the URL's path must - represent + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - the fully qualified name of the type (as in + protocol buffer message. This string must contain at + least - `path/google.protobuf.Duration`). The name should be in a - canonical form + one "/" character. The last segment of the URL's path + must represent - (e.g., leading "." is not accepted). + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - In practice, teams usually precompile into the binary all - types that they + (e.g., leading "." is not accepted). - expect it to use in the context of Any. However, for URLs - which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + In practice, teams usually precompile into the binary + all types that they - server that maps type URLs to message definitions as - follows: + expect it to use in the context of Any. However, for + URLs which use the + scheme `http`, `https`, or no scheme, one can optionally + set up a type - * If no scheme is provided, `https` is assumed. + server that maps type URLs to message definitions as + follows: - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + * If no scheme is provided, `https` is assumed. - protobuf release, and it is not used for type URLs - beginning with + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - type.googleapis.com. + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - Schemes other than `http`, `https` (or the empty scheme) - might be + type.googleapis.com. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - URL that describes the type of the serialized message. + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Protobuf library provides support to pack/unpack Any values in - the form + URL that describes the type of the serialized message. - of utility functions or additional generated methods of the - Any type. + Protobuf library provides support to pack/unpack Any values + in the form - Example 1: Pack and unpack a message in C++. + of utility functions or additional generated methods of the + Any type. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision - description: >- - Normally the RevisionHeight is incremented at each height - while keeping + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + 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. - RevisionNumber the same. However some consensus algorithms may - choose to + It is less efficient than using key. Only one of offset or key + should - reset the height in certain conditions e.g. hard forks, - state-machine + 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. - breaking changes In these cases, the RevisionNumber is - incremented so that + 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 - height continues to be monitonically increasing even as the - RevisionHeight + a count of the total number of items available for pagination in + UIs. - gets reset - description: >- - QueryClientStateResponse is the response type for the - Query/ClientState RPC + count_total is only respected when offset is used. It is ignored + when key - method. Besides the client state, it includes a proof and the - height from + is set. + in: query + required: false + type: boolean + tags: + - Query + '/ibc/apps/transfer/v1/denom_traces/{hash}': + get: + summary: DenomTrace queries a denomination trace information. + operationId: IbcApplicationsTransferV1DenomTrace + responses: + '200': + description: A successful response. + schema: + type: object + properties: + denom_trace: + description: >- + denom_trace returns the requested denomination trace + information. + type: object + properties: + path: + type: string + description: >- + path defines the chain of port/channel identifiers used + for tracing the - which the proof was retrieved. + source of the fungible token. + base_denom: + type: string + description: base denomination of the relayed fungible token. + description: >- + QueryDenomTraceResponse is the response type for the + Query/DenomTrace RPC + + method. default: description: An unexpected error response. schema: @@ -25479,30 +25928,46 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client state unique identifier + - name: hash + description: >- + hash (in hex format) or denom (full denom with ibc prefix) of the + denomination trace information. in: path required: true type: string tags: - Query - '/ibc/core/client/v1/client_status/{client_id}': + /ibc/apps/transfer/v1/params: get: - summary: Status queries the status of an IBC client. - operationId: IbcCoreClientV1ClientStatus + summary: Params queries all parameters of the ibc-transfer module. + operationId: IbcApplicationsTransferV1Params responses: '200': description: A successful response. schema: type: object properties: - status: - type: string - description: >- - QueryClientStatusResponse is the response type for the - Query/ClientStatus RPC + params: + description: params defines the parameters of the module. + type: object + properties: + send_enabled: + type: boolean + description: >- + send_enabled enables or disables all cross-chain token + transfers from this - method. It returns the current status of the IBC client. + chain. + receive_enabled: + type: boolean + description: >- + receive_enabled enables or disables all cross-chain token + transfers to this + + chain. + description: >- + QueryParamsResponse is the response type for the Query/Params RPC + method. default: description: An unexpected error response. schema: @@ -25688,296 +26153,181 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: client_id - description: client unique identifier - in: path - required: true - type: string tags: - Query - '/ibc/core/client/v1/consensus_states/{client_id}': + /ibc/core/channel/v1/channels: get: - summary: |- - ConsensusStates queries all the consensus state associated with a given - client. - operationId: IbcCoreClientV1ConsensusStates + summary: Channels queries all the IBC channels of a chain. + operationId: IbcCoreChannelV1Channels responses: '200': description: A successful response. schema: type: object properties: - consensus_states: + channels: type: array items: type: object properties: - height: - title: consensus state height - type: object - properties: - revision_number: - type: string - format: uint64 - title: the revision that the client is currently on - revision_height: - type: string - format: uint64 - title: the height within the given revision + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED description: >- - Normally the RevisionHeight is incremented at each - height while keeping - - RevisionNumber the same. However some consensus - algorithms may choose to - - reset the height in certain conditions e.g. hard forks, - state-machine - - breaking changes In these cases, the RevisionNumber is - incremented so that + State defines if a channel is in one of the following + states: - height continues to be monitonically increasing even as - the RevisionHeight + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - gets reset - consensus_state: - title: consensus state + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: >- + - ORDER_NONE_UNSPECIFIED: zero-value for channel + ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end type: object properties: - '@type': + port_id: type: string description: >- - A URL/resource name that uniquely identifies the - type of the serialized - - protocol buffer message. This string must contain at - least + port on the counterparty chain which owns the other + end of the channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on - one "/" character. The last segment of the URL's - path must represent + this channel will travel + version: + type: string + title: >- + opaque channel version, which is agreed upon during the + handshake + port_id: + type: string + title: port identifier + channel_id: + type: string + title: channel identifier + description: >- + IdentifiedChannel defines a channel with additional port and + channel - the fully qualified name of the type (as in + identifier fields. + description: list of stored channels of the chain. + pagination: + title: pagination response + 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 - `path/google.protobuf.Duration`). The name should be - in a canonical form + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - (e.g., leading "." is not accepted). + corresponding request message has used PageRequest. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - In practice, teams usually precompile into the - binary all types that they + RevisionNumber the same. However some consensus algorithms may + choose to - expect it to use in the context of Any. However, for - URLs which use the + reset the height in certain conditions e.g. hard forks, + state-machine - scheme `http`, `https`, or no scheme, one can - optionally set up a type + breaking changes In these cases, the RevisionNumber is + incremented so that - server that maps type URLs to message definitions as - follows: + height continues to be monitonically increasing even as the + RevisionHeight + gets reset + description: >- + QueryChannelsResponse is the response type for the Query/Channels + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available - in the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty - scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any - values in the form - - of utility functions or additional generated methods of - the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and - the unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will - yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the - regular - - representation of the deserialized, embedded message, - with an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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" - } - description: >- - ConsensusStateWithHeight defines a consensus state with an - additional height - - field. - title: consensus states associated with the identifier - pagination: - title: pagination response - 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; - } - title: |- - QueryConsensusStatesResponse is the response type for the - Query/ConsensusStates RPC method - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least one "/" character. The last segment of the URL's path must represent @@ -26141,11 +26491,6 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier - in: path - required: true - type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -26194,192 +26539,90 @@ paths: type: boolean tags: - Query - '/ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}': + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}': get: - summary: >- - ConsensusState queries a consensus state associated with a client state - at - - a given height. - operationId: IbcCoreClientV1ConsensusState + summary: Channel queries an IBC Channel. + operationId: IbcCoreChannelV1Channel responses: '200': description: A successful response. schema: type: object properties: - consensus_state: - title: >- - consensus state associated with the client identifier at the - given height + channel: + title: channel associated with the request identifiers type: object properties: - '@type': + state: + title: current state of the channel end type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. + State defines if a channel is in one of the following + states: + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. - Schemes other than `http`, `https` (or the empty scheme) - might be + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: |- + - ORDER_NONE_UNSPECIFIED: zero-value for channel ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end + type: object + properties: + port_id: + type: string + description: >- + port on the counterparty chain which owns the other + end of the channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on - used with implementation specific semantics. - additionalProperties: {} + this channel will travel + version: + type: string + title: >- + opaque channel version, which is agreed upon during the + handshake description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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` + Channel defines pipeline for exactly-once packet delivery + between specific - field. Example (for message [google.protobuf.Duration][]): + modules on separate blockchains, which has at least one end + capable of - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + sending packets and one end capable of receiving packets. proof: type: string format: byte @@ -26413,11 +26656,14 @@ paths: RevisionHeight gets reset - title: >- - QueryConsensusStateResponse is the response type for the - Query/ConsensusState + description: >- + QueryChannelResponse is the response type for the Query/Channel + RPC method. - RPC method + Besides the Channel end, it includes a proof and the height from + which the + + proof was retrieved. default: description: An unexpected error response. schema: @@ -26604,217 +26850,254 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier - in: path - required: true - type: string - - name: revision_number - description: consensus state revision number + - name: channel_id + description: channel unique identifier in: path required: true type: string - format: uint64 - - name: revision_height - description: consensus state revision height + - name: port_id + description: port unique identifier in: path required: true type: string - format: uint64 - - name: latest_height - description: >- - latest_height overrrides the height field and queries the latest - stored - - ConsensusState - in: query - required: false - type: boolean tags: - Query - /ibc/core/client/v1/upgraded_client_states: + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/client_state': get: - summary: UpgradedClientState queries an Upgraded IBC light client. - operationId: IbcCoreClientV1UpgradedClientState + summary: >- + ChannelClientState queries for the client state for the channel + associated + + with the provided channel identifiers. + operationId: IbcCoreChannelV1ChannelClientState responses: '200': description: A successful response. schema: type: object properties: - upgraded_client_state: - title: client state associated with the request identifier + identified_client_state: + title: client state associated with the channel type: object properties: - '@type': + client_id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + title: client identifier + client_state: + title: client state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all - types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for URLs - which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in - the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: |- - QueryUpgradedClientStateResponse is the response type for the - Query/UpgradedClientState RPC method. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + IdentifiedClientState defines a client state with an + additional client + + identifier field. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method default: description: An unexpected error response. schema: @@ -27000,20 +27283,33 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string tags: - Query - /ibc/core/client/v1/upgraded_consensus_states: + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/consensus_state/revision/{revision_number}/height/{revision_height}': get: - summary: UpgradedConsensusState queries an Upgraded IBC consensus state. - operationId: IbcCoreClientV1UpgradedConsensusState + summary: |- + ChannelConsensusState queries for the consensus state for the channel + associated with the provided channel identifiers. + operationId: IbcCoreChannelV1ChannelConsensusState responses: '200': description: A successful response. schema: type: object properties: - upgraded_consensus_state: - title: Consensus state associated with the request identifier + consensus_state: + title: consensus state associated with the channel type: object properties: '@type': @@ -27182,9 +27478,45 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - description: |- - QueryUpgradedConsensusStateResponse is the response type for the - Query/UpgradedConsensusState RPC method. + client_id: + type: string + title: client ID associated with the consensus state + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryChannelClientStateResponse is the Response type for the + Query/QueryChannelClientState RPC method default: description: An unexpected error response. schema: @@ -27370,31 +27702,53 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: revision_number + description: revision number of the consensus state + in: path + required: true + type: string + format: uint64 + - name: revision_height + description: revision height of the consensus state + in: path + required: true + type: string + format: uint64 tags: - Query - '/ibc/core/connection/v1/client_connections/{client_id}': + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/next_sequence': get: - summary: |- - ClientConnections queries the connection paths associated with a client - state. - operationId: IbcCoreConnectionV1ClientConnections + summary: >- + NextSequenceReceive returns the next receive sequence for a given + channel. + operationId: IbcCoreChannelV1NextSequenceReceive responses: '200': description: A successful response. schema: type: object properties: - connection_paths: - type: array - items: - type: string - description: slice of all the connection paths associated with a client. + next_sequence_receive: + type: string + format: uint64 + title: next sequence receive number proof: type: string format: byte title: merkle proof of existence proof_height: - title: height at which the proof was generated + title: height at which the proof was retrieved type: object properties: revision_number: @@ -27423,8 +27777,8 @@ paths: gets reset title: |- - QueryClientConnectionsResponse is the response type for the - Query/ClientConnections RPC method + QuerySequenceResponse is the request type for the + Query/QueryNextSequenceReceiveResponse RPC method default: description: An unexpected error response. schema: @@ -27611,110 +27965,61 @@ paths: "value": "1.212s" } parameters: - - name: client_id - description: client identifier associated with a connection + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier in: path required: true type: string tags: - Query - /ibc/core/connection/v1/connections: + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acknowledgements': get: - summary: Connections queries all the IBC connections of a chain. - operationId: IbcCoreConnectionV1Connections + summary: >- + PacketAcknowledgements returns all the packet acknowledgements + associated + + with a channel. + operationId: IbcCoreChannelV1PacketAcknowledgements responses: '200': description: A successful response. schema: type: object properties: - connections: + acknowledgements: type: array items: type: object properties: - id: - type: string - description: connection identifier. - client_id: + port_id: type: string - description: client associated with this connection. - versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: >- - list of features compatible with the specified - identifier - description: >- - Version defines the versioning scheme used to - negotiate the IBC verison in - - the connection handshake. - title: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection - state: - description: current state of the connection end. + description: channel port identifier. + channel_id: type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain - associated with a given - - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty - chain associated with a - - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will - be append(Path.KeyPath, - - append(Path.KeyPrefix, key...)) - delay_period: + description: channel unique identifier. + sequence: type: string format: uint64 - description: delay period associated with this connection. + description: packet sequence. + data: + type: string + format: byte + description: embedded data that represents packet state. description: >- - IdentifiedConnection defines a connection with additional - connection + PacketState defines the generic type necessary to retrieve + and store - identifier field. - description: list of stored connections of the chain. + packet commitments, acknowledgements, and receipts. + + Caller is responsible for knowing the context necessary to + interpret this + + state as a commitment, acknowledgement, or a receipt. pagination: title: pagination response type: object @@ -27772,11 +28077,9 @@ paths: RevisionHeight gets reset - description: >- - QueryConnectionsResponse is the response type for the - Query/Connections RPC - - method. + title: |- + QueryPacketAcknowledgemetsResponse is the request type for the + Query/QueryPacketAcknowledgements RPC method default: description: An unexpected error response. schema: @@ -27963,6 +28266,16 @@ paths: "value": "1.212s" } parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -28009,111 +28322,31 @@ paths: in: query required: false type: boolean + - name: packet_commitment_sequences + description: list of packet sequences + in: query + required: false + type: array + items: + type: string + format: uint64 + collectionFormat: multi tags: - Query - '/ibc/core/connection/v1/connections/{connection_id}': + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_acks/{sequence}': get: - summary: Connection queries an IBC connection end. - operationId: IbcCoreConnectionV1Connection + summary: PacketAcknowledgement queries a stored packet acknowledgement hash. + operationId: IbcCoreChannelV1PacketAcknowledgement responses: '200': description: A successful response. schema: type: object properties: - connection: - title: connection associated with the request identifier - type: object - properties: - client_id: - type: string - description: client associated with this connection. - versions: - type: array - items: - type: object - properties: - identifier: - type: string - title: unique version identifier - features: - type: array - items: - type: string - title: >- - list of features compatible with the specified - identifier - description: >- - Version defines the versioning scheme used to negotiate - the IBC verison in - - the connection handshake. - description: >- - IBC version which can be utilised to determine encodings - or protocols for - - channels or packets utilising this connection. - state: - description: current state of the connection end. - type: string - enum: - - STATE_UNINITIALIZED_UNSPECIFIED - - STATE_INIT - - STATE_TRYOPEN - - STATE_OPEN - default: STATE_UNINITIALIZED_UNSPECIFIED - counterparty: - description: counterparty chain associated with this connection. - type: object - properties: - client_id: - type: string - description: >- - identifies the client on the counterparty chain - associated with a given - - connection. - connection_id: - type: string - description: >- - identifies the connection end on the counterparty - chain associated with a - - given connection. - prefix: - description: commitment merkle prefix of the counterparty chain. - type: object - properties: - key_prefix: - type: string - format: byte - title: >- - MerklePrefix is merkle path prefixed to the key. - - The constructed key from the Path and the key will be - append(Path.KeyPath, - - append(Path.KeyPrefix, key...)) - delay_period: - type: string - format: uint64 - description: >- - delay period that must pass before a consensus state can - be used for - - packet-verification NOTE: delay period logic is only - implemented by some - - clients. - description: >- - ConnectionEnd defines a stateful object on a chain connected - to another - - separate one. - - NOTE: there must only be 2 defined ConnectionEnds to establish - - a connection between two chains. + acknowledgement: + type: string + format: byte + title: packet associated with the request fields proof: type: string format: byte @@ -28147,14 +28380,13 @@ paths: RevisionHeight gets reset - description: >- - QueryConnectionResponse is the response type for the - Query/Connection RPC + title: >- + QueryPacketAcknowledgementResponse defines the client query + response for a - method. Besides the connection end, it includes a proof and the - height from + packet which also includes a proof and the height from which the - which the proof was retrieved. + proof was retrieved default: description: An unexpected error response. schema: @@ -28341,217 +28573,391 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection unique identifier + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: sequence + description: packet sequence in: path required: true type: string + format: uint64 tags: - Query - '/ibc/core/connection/v1/connections/{connection_id}/client_state': + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments': get: summary: |- - ConnectionClientState queries the client state associated with the - connection. - operationId: IbcCoreConnectionV1ConnectionClientState + PacketCommitments returns all the packet commitments hashes associated + with a channel. + operationId: IbcCoreChannelV1PacketCommitments responses: '200': description: A successful response. schema: type: object properties: - identified_client_state: - title: client state associated with the channel + commitments: + type: array + items: + type: object + properties: + port_id: + type: string + description: channel port identifier. + channel_id: + type: string + description: channel unique identifier. + sequence: + type: string + format: uint64 + description: packet sequence. + data: + type: string + format: byte + description: embedded data that represents packet state. + description: >- + PacketState defines the generic type necessary to retrieve + and store + + packet commitments, acknowledgements, and receipts. + + Caller is responsible for knowing the context necessary to + interpret this + + state as a commitment, acknowledgement, or a receipt. + pagination: + title: pagination response type: object properties: - client_id: + next_key: type: string - title: client identifier - client_state: - title: client state - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + 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 - protocol buffer message. This string must contain at - least + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - one "/" character. The last segment of the URL's path - must represent + corresponding request message has used PageRequest. - the fully qualified name of the type (as in + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - `path/google.protobuf.Duration`). The name should be - in a canonical form + RevisionNumber the same. However some consensus algorithms may + choose to - (e.g., leading "." is not accepted). + reset the height in certain conditions e.g. hard forks, + state-machine + breaking changes In these cases, the RevisionNumber is + incremented so that - In practice, teams usually precompile into the binary - all types that they + height continues to be monitonically increasing even as the + RevisionHeight - expect it to use in the context of Any. However, for - URLs which use the + gets reset + title: |- + QueryPacketCommitmentsResponse is the request type for the + Query/QueryPacketCommitments RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - scheme `http`, `https`, or no scheme, one can - optionally set up a type + protocol buffer message. This string must contain at + least - server that maps type URLs to message definitions as - follows: + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - * If no scheme is provided, `https` is assumed. + `path/google.protobuf.Duration`). The name should be in + a canonical form - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results - based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + (e.g., leading "." is not accepted). - Note: this functionality is not currently available in - the official - protobuf release, and it is not used for type URLs - beginning with + In practice, teams usually precompile into the binary + all types that they - type.googleapis.com. + expect it to use in the context of Any. However, for + URLs which use the + scheme `http`, `https`, or no scheme, one can optionally + set up a type - Schemes other than `http`, `https` (or the empty - scheme) might be + server that maps type URLs to message definitions as + follows: - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - URL that describes the type of the serialized message. + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Protobuf library provides support to pack/unpack Any - values in the form + Note: this functionality is not currently available in + the official - of utility functions or additional generated methods of - the Any type. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Schemes other than `http`, `https` (or the empty scheme) + might be - Example 2: Pack and unpack a message in Java. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Foo foo = ...; - Any any = Any.pack(foo); + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + } - Example 3: Pack and unpack a message in Python. + Example 2: Pack and unpack a message in Java. - foo = Foo(...) - any = Any() - any.Pack(foo) + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and - the unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will - yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a - custom JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded - adding a field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: >- - IdentifiedClientState defines a client state with an - additional client + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + 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. - identifier field. - proof: - type: string - format: byte - title: merkle proof of existence - proof_height: - title: height at which the proof was retrieved + 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 + tags: + - Query + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_ack_sequences}/unreceived_acks': + get: + summary: >- + UnreceivedAcks returns all the unreceived IBC acknowledgements + associated + + with a channel and sequences. + operationId: IbcCoreChannelV1UnreceivedAcks + responses: + '200': + description: A successful response. + schema: + type: object + properties: + sequences: + type: array + items: + type: string + format: uint64 + title: list of unreceived acknowledgement sequences + height: + title: query block height type: object properties: revision_number: @@ -28580,8 +28986,8 @@ paths: gets reset title: |- - QueryConnectionClientStateResponse is the response type for the - Query/ConnectionClientState RPC method + QueryUnreceivedAcksResponse is the response type for the + Query/UnreceivedAcks RPC method default: description: An unexpected error response. schema: @@ -28768,198 +29174,302 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection identifier + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier in: path required: true type: string + - name: packet_ack_sequences + description: list of acknowledgement sequences + in: path + required: true + type: array + items: + type: string + format: uint64 + collectionFormat: csv + minItems: 1 tags: - Query - '/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}': + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{packet_commitment_sequences}/unreceived_packets': get: - summary: |- - ConnectionConsensusState queries the consensus state associated with the - connection. - operationId: IbcCoreConnectionV1ConnectionConsensusState + summary: >- + UnreceivedPackets returns all the unreceived IBC packets associated with + a + + channel and sequences. + operationId: IbcCoreChannelV1UnreceivedPackets responses: '200': description: A successful response. schema: type: object properties: - consensus_state: - title: consensus state associated with the channel + sequences: + type: array + items: + type: string + format: uint64 + title: list of unreceived packet sequences + height: + title: query block height type: object properties: - '@type': + revision_number: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - protocol buffer message. This string must contain at least + RevisionNumber the same. However some consensus algorithms may + choose to - one "/" character. The last segment of the URL's path must - represent + reset the height in certain conditions e.g. hard forks, + state-machine - the fully qualified name of the type (as in + breaking changes In these cases, the RevisionNumber is + incremented so that - `path/google.protobuf.Duration`). The name should be in a - canonical form + height continues to be monitonically increasing even as the + RevisionHeight - (e.g., leading "." is not accepted). + gets reset + title: |- + QueryUnreceivedPacketsResponse is the response type for the + Query/UnreceivedPacketCommitments RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + protocol buffer message. This string must contain at + least - In practice, teams usually precompile into the binary all - types that they + one "/" character. The last segment of the URL's path + must represent - expect it to use in the context of Any. However, for URLs - which use the + the fully qualified name of the type (as in - scheme `http`, `https`, or no scheme, one can optionally - set up a type + `path/google.protobuf.Duration`). The name should be in + a canonical form - server that maps type URLs to message definitions as - follows: + (e.g., leading "." is not accepted). - * If no scheme is provided, `https` is assumed. + In practice, teams usually precompile into the binary + all types that they - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + expect it to use in the context of Any. However, for + URLs which use the - Note: this functionality is not currently available in the - official + scheme `http`, `https`, or no scheme, one can optionally + set up a type - protobuf release, and it is not used for type URLs - beginning with + server that maps type URLs to message definitions as + follows: - type.googleapis.com. + * If no scheme is provided, `https` is assumed. - Schemes other than `http`, `https` (or the empty scheme) - might be + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + Note: this functionality is not currently available in + the official - URL that describes the type of the serialized message. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Protobuf library provides support to pack/unpack Any values in - the form - of utility functions or additional generated methods of the - Any type. + Schemes other than `http`, `https` (or the empty scheme) + might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Example 1: Pack and unpack a message in C++. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding a - field + representation, that representation will be embedded adding + a field - `value` which holds the custom JSON in addition to the `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - client_id: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: channel_id + description: channel unique identifier + in: path + required: true + type: string + - name: port_id + description: port unique identifier + in: path + required: true + type: string + - name: packet_commitment_sequences + description: list of packet sequences + in: path + required: true + type: array + items: + type: string + format: uint64 + collectionFormat: csv + minItems: 1 + tags: + - Query + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_commitments/{sequence}': + get: + summary: PacketCommitment queries a stored packet commitment hash. + operationId: IbcCoreChannelV1PacketCommitment + responses: + '200': + description: A successful response. + schema: + type: object + properties: + commitment: type: string - title: client ID associated with the consensus state + format: byte + title: packet associated with the request fields proof: type: string format: byte @@ -28993,9 +29503,14 @@ paths: RevisionHeight gets reset - title: |- - QueryConnectionConsensusStateResponse is the response type for the - Query/ConnectionConsensusState RPC method + title: >- + QueryPacketCommitmentResponse defines the client query response + for a packet + + which also includes a proof and the height from which the proof + was + + retrieved default: description: An unexpected error response. schema: @@ -29182,133 +29697,82 @@ paths: "value": "1.212s" } parameters: - - name: connection_id - description: connection identifier + - name: channel_id + description: channel unique identifier in: path required: true type: string - - name: revision_number + - name: port_id + description: port unique identifier in: path required: true type: string - format: uint64 - - name: revision_height + - name: sequence + description: packet sequence in: path required: true type: string format: uint64 tags: - Query - /tendermint/spn/monitoringp/connection_channel_id: + '/ibc/core/channel/v1/channels/{channel_id}/ports/{port_id}/packet_receipts/{sequence}': get: - summary: Queries a ConnectionChannelID by index. - operationId: TendermintSpnMonitoringpConnectionChannelID + summary: >- + PacketReceipt queries if a given packet sequence has been received on + the + + queried chain + operationId: IbcCoreChannelV1PacketReceipt responses: '200': description: A successful response. schema: type: object properties: - ConnectionChannelID: - type: object - properties: - channelID: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: + received: + type: boolean + title: success flag for if receipt exists + proof: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /tendermint/spn/monitoringp/consumer_client_id: - get: - summary: Queries a ConsumerClientID by index. - operationId: TendermintSpnMonitoringpConsumerClientID - responses: - '200': - description: A successful response. - schema: - type: object - properties: - ConsumerClientID: + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - clientID: + revision_number: type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /tendermint/spn/monitoringp/monitoring_info: - get: - summary: Queries a MonitoringInfo by index. - operationId: TendermintSpnMonitoringpMonitoringInfo - responses: - '200': - description: A successful response. - schema: - type: object - properties: - MonitoringInfo: - type: object - properties: - transmitted: - type: boolean - signatureCounts: - type: object - properties: - blockCount: - type: string - format: uint64 - counts: - type: array - items: - type: object - properties: - opAddress: - type: string - RelativeSignatures: - type: string - title: >- - SignatureCount contains information of signature - reporting for one specific validator with consensus - address + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping - RelativeSignatures is the sum of all signatures - relative to the validator set size - title: >- - SignatureCounts contains information about signature - reporting for a number of blocks + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + QueryPacketReceiptResponse defines the client query response for a + packet + + receipt which also includes a proof, and the height from which the + proof was + + retrieved default: description: An unexpected error response. schema: @@ -29326,235 +29790,9 @@ paths: properties: '@type': type: string - additionalProperties: {} - tags: - - Query - /tendermint/spn/monitoringp/params: - get: - summary: Params queries the parameters of the module. - operationId: TendermintSpnMonitoringpParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - type: object - properties: - lastBlockHeight: - type: string - format: int64 - consumerChainID: - type: string - consumerConsensusState: - type: object - properties: - nextValidatorsHash: - type: string - timestamp: - type: string - root: - type: object - properties: - hash: - type: string - title: MerkleRoot represents a Merkle Root in ConsensusState - title: >- - ConsensusState represents a Consensus State - - it is compatible with the dumped state from `appd q ibc - client self-consensus-state` command - consumerUnbondingPeriod: - type: string - format: int64 - consumerRevisionHeight: - type: string - format: uint64 - description: Params defines the parameters for the module. - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /thesixnetwork/sixnft/nftadmin/authorization: - get: - summary: Queries a Authorization by index. - operationId: ThesixnetworkSixnftNftadminAuthorization - responses: - '200': - description: A successful response. - schema: - type: object - properties: - Authorization: - type: object - properties: - root_admin: - type: string - permissions: - type: object - properties: - permissions: - type: array - items: - type: object - properties: - name: - type: string - addresses: - type: object - properties: - addresses: - type: array - items: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /thesixnetwork/sixnft/nftadmin/params: - get: - summary: Parameters queries the parameters of the module. - operationId: ThesixnetworkSixnftNftadminParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /thesixnetwork/sixnft/nftmngr/action_by_ref_id: - get: - summary: Queries a list of ActionByRefId items. - operationId: ThesixnetworkSixnftNftmngrActionByRefIdAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - actionByRefId: - type: array - items: - type: object - properties: - refId: - type: string - creator: - type: string - nftSchemaCode: - type: string - tokenId: - type: string - action: - 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: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized protocol buffer message. This string must contain at least @@ -29721,77 +29959,176 @@ paths: "value": "1.212s" } 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 + - name: channel_id + description: channel unique identifier + in: path + required: true 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 + - name: port_id + description: port unique identifier + in: path + required: true 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 + - name: sequence + description: packet sequence + in: path + required: true 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/action_by_ref_id/{refId}': + '/ibc/core/channel/v1/connections/{connection}/channels': get: - summary: Queries a ActionByRefId by index. - operationId: ThesixnetworkSixnftNftmngrActionByRefId + summary: |- + ConnectionChannels queries all the channels associated with a connection + end. + operationId: IbcCoreChannelV1ConnectionChannels responses: '200': description: A successful response. schema: type: object properties: - actionByRefId: + channels: + type: array + items: + type: object + properties: + state: + title: current state of the channel end + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + - STATE_CLOSED + default: STATE_UNINITIALIZED_UNSPECIFIED + description: >- + State defines if a channel is in one of the following + states: + + CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. + + - STATE_UNINITIALIZED_UNSPECIFIED: Default State + - STATE_INIT: A channel has just started the opening handshake. + - STATE_TRYOPEN: A channel has acknowledged the handshake step on the counterparty chain. + - STATE_OPEN: A channel has completed the handshake. Open channels are + ready to send and receive packets. + - STATE_CLOSED: A channel has been closed and can no longer be used to send or receive + packets. + ordering: + title: whether the channel is ordered or unordered + type: string + enum: + - ORDER_NONE_UNSPECIFIED + - ORDER_UNORDERED + - ORDER_ORDERED + default: ORDER_NONE_UNSPECIFIED + description: >- + - ORDER_NONE_UNSPECIFIED: zero-value for channel + ordering + - ORDER_UNORDERED: packets can be delivered in any order, which may differ from the order in + which they were sent. + - ORDER_ORDERED: packets are delivered exactly in the order which they were sent + counterparty: + title: counterparty channel end + type: object + properties: + port_id: + type: string + description: >- + port on the counterparty chain which owns the other + end of the channel. + channel_id: + type: string + title: channel end on the counterparty chain + connection_hops: + type: array + items: + type: string + title: >- + list of connection identifiers, in order, along which + packets sent on + + this channel will travel + version: + type: string + title: >- + opaque channel version, which is agreed upon during the + handshake + port_id: + type: string + title: port identifier + channel_id: + type: string + title: channel identifier + description: >- + IdentifiedChannel defines a channel with additional port and + channel + + identifier fields. + description: list of channels associated with a connection. + pagination: + title: pagination response type: object properties: - refId: - type: string - creator: + next_key: type: string - nftSchemaCode: + format: byte + title: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently + total: type: string - tokenId: + 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; + } + height: + title: query block height + type: object + properties: + revision_number: type: string - action: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionChannelsResponse is the Response type for the + Query/QueryConnectionChannels RPC method default: description: An unexpected error response. schema: @@ -29978,60 +30315,85 @@ paths: "value": "1.212s" } parameters: - - name: refId + - name: connection + description: connection unique identifier 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 + + is set. + in: query + required: false + type: boolean tags: - Query - /thesixnetwork/sixnft/nftmngr/action_executor: + /ibc/client/v1/params: get: - summary: Queries a list of ActionExecutor items. - operationId: ThesixnetworkSixnftNftmngrActionExecutorAll + summary: ClientParams queries all parameters of the ibc client. + operationId: IbcCoreClientV1ClientParams responses: '200': description: A successful response. schema: type: object properties: - actionExecutor: - type: array - items: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: string - creator: - type: string - pagination: + params: + description: params defines the parameters of the module. 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. + allowed_clients: + type: array + items: + type: string + description: >- + allowed_clients defines the list of allowed client state + types. + description: >- + QueryClientParamsResponse is the response type for the + Query/ClientParams RPC - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + method. default: description: An unexpected error response. schema: @@ -30217,293 +30579,210 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/action_executor/{nftSchemaCode}/{executorAddress}': + /ibc/core/client/v1/client_states: get: - summary: Queries a ActionExecutor by index. - operationId: ThesixnetworkSixnftNftmngrActionExecutor + summary: ClientStates queries all the IBC light clients of a chain. + operationId: IbcCoreClientV1ClientStates responses: '200': description: A successful response. schema: type: object properties: - actionExecutor: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: string - creator: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + client_states: type: array items: type: object properties: - '@type': + client_id: type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + title: client identifier + client_state: + title: client state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's + path must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the + binary all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available + in the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the + regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, + with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message + [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: nftSchemaCode - in: path - required: true - type: string - - name: executorAddress - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftmngr/action_of_schema: - get: - summary: Queries a list of ActionOfSchema items. - operationId: ThesixnetworkSixnftNftmngrActionOfSchemaAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - actionOfSchema: - type: array - items: - type: object - properties: - nftSchemaCode: - type: string - name: - type: string - index: - type: string - format: uint64 + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + IdentifiedClientState defines a client state with an + additional client + + identifier field. + description: list of stored ClientStates of the chain. pagination: + title: pagination response type: object properties: next_key: @@ -30530,6 +30809,11 @@ paths: repeated Bar results = 1; PageResponse page = 2; } + description: >- + QueryClientStatesResponse is the response type for the + Query/ClientStates RPC + + method. default: description: An unexpected error response. schema: @@ -30764,270 +31048,227 @@ paths: type: boolean tags: - Query - '/thesixnetwork/sixnft/nftmngr/action_of_schema/{nftSchemaCode}/{name}': + '/ibc/core/client/v1/client_states/{client_id}': get: - summary: Queries a ActionOfSchema by index. - operationId: ThesixnetworkSixnftNftmngrActionOfSchema + summary: ClientState queries an IBC light client. + operationId: IbcCoreClientV1ClientState responses: '200': description: A successful response. schema: type: object properties: - actionOfSchema: + client_state: + title: client state associated with the request identifier type: object properties: - nftSchemaCode: - type: string - name: - type: string - index: + '@type': type: string - format: uint64 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's path must + represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be in a + canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the binary all + types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for URLs + which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available in the + official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any values in + the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { ... - if (any.UnpackTo(&foo)) { - ... - } + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by default + use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the last + '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded adding a + field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: nftSchemaCode - in: path - required: true - type: string - - name: name - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftmngr/executor_of_schema: - get: - summary: Queries a list of ExecutorOfSchema items. - operationId: ThesixnetworkSixnftNftmngrExecutorOfSchemaAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - executorOfSchema: - type: array - items: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: array - items: - type: string - pagination: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - next_key: + revision_number: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + title: the height within the given revision description: >- - PageResponse is to be embedded in gRPC response messages where - the + Normally the RevisionHeight is incremented at each height + while keeping - corresponding request message has used PageRequest. + RevisionNumber the same. However some consensus algorithms may + choose to - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + description: >- + QueryClientStateResponse is the response type for the + Query/ClientState RPC + + method. Besides the client state, it includes a proof and the + height from + + which the proof was retrieved. default: description: An unexpected error response. schema: @@ -31214,73 +31455,30 @@ paths: "value": "1.212s" } 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 + - name: client_id + description: client state unique identifier + in: path + required: true 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/executor_of_schema/{nftSchemaCode}': + '/ibc/core/client/v1/client_status/{client_id}': get: - summary: Queries a ExecutorOfSchema by index. - operationId: ThesixnetworkSixnftNftmngrExecutorOfSchema + summary: Status queries the status of an IBC client. + operationId: IbcCoreClientV1ClientStatus responses: '200': description: A successful response. schema: type: object properties: - executorOfSchema: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: array - items: - type: string + status: + type: string + description: >- + QueryClientStatusResponse is the response type for the + Query/ClientStatus RPC + + method. It returns the current status of the IBC client. default: description: An unexpected error response. schema: @@ -31467,279 +31665,243 @@ paths: "value": "1.212s" } parameters: - - name: nftSchemaCode + - name: client_id + description: client unique identifier in: path required: true type: string tags: - Query - '/thesixnetwork/sixnft/nftmngr/list_attribute_by_schema/{nftSchemaCode}': + '/ibc/core/client/v1/consensus_states/{client_id}': get: - summary: Queries a list of ListAttributeBySchema items. - operationId: ThesixnetworkSixnftNftmngrListAttributeBySchema + summary: |- + ConsensusStates queries all the consensus state associated with a given + client. + operationId: IbcCoreClientV1ConsensusStates responses: '200': description: A successful response. schema: type: object properties: - schemaAttribute: + consensus_states: type: array items: type: object properties: - nftSchemaCode: - type: string - name: - type: string - data_type: - type: string - current_value: + height: + title: consensus state height type: object properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - creator: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision description: >- - A URL/resource name that uniquely identifies the type of - the serialized + Normally the RevisionHeight is incremented at each + height while keeping - protocol buffer message. This string must contain at - least + RevisionNumber the same. However some consensus + algorithms may choose to - one "/" character. The last segment of the URL's path - must represent + reset the height in certain conditions e.g. hard forks, + state-machine - the fully qualified name of the type (as in + breaking changes In these cases, the RevisionNumber is + incremented so that - `path/google.protobuf.Duration`). The name should be in - a canonical form + height continues to be monitonically increasing even as + the RevisionHeight - (e.g., leading "." is not accepted). + gets reset + consensus_state: + title: consensus state + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the + type of the serialized + protocol buffer message. This string must contain at + least - In practice, teams usually precompile into the binary - all types that they + one "/" character. The last segment of the URL's + path must represent - expect it to use in the context of Any. However, for - URLs which use the + the fully qualified name of the type (as in - scheme `http`, `https`, or no scheme, one can optionally - set up a type + `path/google.protobuf.Duration`). The name should be + in a canonical form - server that maps type URLs to message definitions as - follows: + (e.g., leading "." is not accepted). - * If no scheme is provided, `https` is assumed. + In practice, teams usually precompile into the + binary all types that they - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + expect it to use in the context of Any. However, for + URLs which use the - Note: this functionality is not currently available in - the official + scheme `http`, `https`, or no scheme, one can + optionally set up a type - protobuf release, and it is not used for type URLs - beginning with + server that maps type URLs to message definitions as + follows: - type.googleapis.com. + * If no scheme is provided, `https` is assumed. - Schemes other than `http`, `https` (or the empty scheme) - might be + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + Note: this functionality is not currently available + in the official - URL that describes the type of the serialized message. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Protobuf library provides support to pack/unpack Any values - in the form - of utility functions or additional generated methods of the - Any type. + Schemes other than `http`, `https` (or the empty + scheme) might be + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - Example 1: Pack and unpack a message in C++. + URL that describes the type of the serialized message. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - Example 2: Pack and unpack a message in Java. + Protobuf library provides support to pack/unpack Any + values in the form - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + of utility functions or additional generated methods of + the Any type. - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + Example 1: Pack and unpack a message in C++. - Example 4: Pack and unpack a message in Go + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + Example 2: Pack and unpack a message in Java. - The pack methods provided by protobuf library will by - default use + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + Example 3: Pack and unpack a message in Python. - methods only use the fully qualified type name after the - last '/' + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + Example 4: Pack and unpack a message in Go - name "y.z". + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - JSON + methods only use the fully qualified type name after the + last '/' - ==== + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - The JSON representation of an `Any` value uses the regular + name "y.z". - representation of the deserialized, embedded message, with - an - additional field `@type` which contains the type URL. - Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + JSON - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + ==== - If the embedded message type is well-known and has a custom - JSON + The JSON representation of an `Any` value uses the + regular - representation, that representation will be embedded adding - a field + representation of the deserialized, embedded message, + with an - `value` which holds the custom JSON in addition to the - `@type` + additional field `@type` which contains the type URL. + Example: - field. Example (for message [google.protobuf.Duration][]): + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: nftSchemaCode - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftmngr/metadata_creator: - get: - summary: Queries a list of MetadataCreator items. - operationId: ThesixnetworkSixnftNftmngrMetadataCreatorAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - metadataCreator: - type: array - items: - type: object - properties: - nftSchemaCode: - type: string - metadataMintedBy: - type: array - items: - type: object - properties: - token_id: - type: string - minter: - type: string + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + description: >- + ConsensusStateWithHeight defines a consensus state with an + additional height + + field. + title: consensus states associated with the identifier pagination: + title: pagination response type: object properties: next_key: @@ -31766,6 +31928,9 @@ paths: repeated Bar results = 1; PageResponse page = 2; } + title: |- + QueryConsensusStatesResponse is the response type for the + Query/ConsensusStates RPC method default: description: An unexpected error response. schema: @@ -31952,6 +32117,11 @@ paths: "value": "1.212s" } parameters: + - name: client_id + description: client identifier + in: path + required: true + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -32000,30 +32170,230 @@ paths: type: boolean tags: - Query - '/thesixnetwork/sixnft/nftmngr/metadata_creator/{nftSchemaCode}': + '/ibc/core/client/v1/consensus_states/{client_id}/revision/{revision_number}/height/{revision_height}': get: - summary: Queries a MetadataCreator by index. - operationId: ThesixnetworkSixnftNftmngrMetadataCreator + summary: >- + ConsensusState queries a consensus state associated with a client state + at + + a given height. + operationId: IbcCoreClientV1ConsensusState responses: '200': description: A successful response. schema: type: object properties: - metadataCreator: + consensus_state: + title: >- + consensus state associated with the client identifier at the + given height type: object properties: - nftSchemaCode: + '@type': type: string - metadataMintedBy: - type: array - items: - type: object - properties: - token_id: - type: string - minter: - type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: >- + QueryConsensusStateResponse is the response type for the + Query/ConsensusState + + RPC method default: description: An unexpected error response. schema: @@ -32210,159 +32580,242 @@ paths: "value": "1.212s" } parameters: - - name: nftSchemaCode + - name: client_id + description: client identifier + in: path + required: true + type: string + - name: revision_number + description: consensus state revision number + in: path + required: true + type: string + format: uint64 + - name: revision_height + description: consensus state revision height in: path required: true type: string + format: uint64 + - name: latest_height + description: >- + latest_height overrrides the height field and queries the latest + stored + + ConsensusState + in: query + required: false + type: boolean tags: - Query - '/thesixnetwork/sixnft/nftmngr/nft_collection/{nftSchemaCode}': + /ibc/core/client/v1/upgraded_client_states: get: - summary: Queries a NftCollection by index. - operationId: ThesixnetworkSixnftNftmngrNftCollection + summary: UpgradedClientState queries an Upgraded IBC light client. + operationId: IbcCoreClientV1UpgradedClientState responses: '200': description: A successful response. schema: type: object properties: - nftCollection: - type: array - items: - type: object - properties: - nft_schema_code: - type: string - token_id: - type: string - token_owner: - type: string - owner_address_type: - type: string - enum: - - ORIGIN_ADDRESS - - INTERNAL_ADDRESS - default: ORIGIN_ADDRESS - origin_image: - type: string - onchain_image: - type: string - token_uri: - type: string - origin_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean - onchain_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean - pagination: + upgraded_client_state: + title: client state associated with the request identifier 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': type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + protocol buffer message. This string must contain at least - corresponding request message has used PageRequest. + one "/" character. The last segment of the URL's path must + represent - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + the fully qualified name of the type (as in - protocol buffer message. This string must contain at - least + `path/google.protobuf.Duration`). The name should be in a + canonical form - one "/" character. The last segment of the URL's path + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + description: |- + QueryUpgradedClientStateResponse is the response type for the + Query/UpgradedClientState RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path must represent the fully qualified name of the type (as in @@ -32523,181 +32976,191 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: nftSchemaCode - 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 - - is set. - in: query - required: false - type: boolean tags: - Query - /thesixnetwork/sixnft/nftmngr/nft_data: + /ibc/core/client/v1/upgraded_consensus_states: get: - summary: Queries a list of NftData items. - operationId: ThesixnetworkSixnftNftmngrNftDataAll + summary: UpgradedConsensusState queries an Upgraded IBC consensus state. + operationId: IbcCoreClientV1UpgradedConsensusState responses: '200': description: A successful response. schema: type: object properties: - nftData: - type: array - items: - type: object - properties: - nft_schema_code: - type: string - token_id: - type: string - token_owner: - type: string - owner_address_type: - type: string - enum: - - ORIGIN_ADDRESS - - INTERNAL_ADDRESS - default: ORIGIN_ADDRESS - origin_image: - type: string - onchain_image: - type: string - token_uri: - type: string - origin_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean - onchain_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean - pagination: + upgraded_consensus_state: + title: Consensus state associated with the request identifier 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': type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - was set, its value is undefined otherwise + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} description: >- - PageResponse is to be embedded in gRPC response messages where - the + `Any` contains an arbitrary serialized protocol buffer message + along with a - corresponding request message has used PageRequest. + URL that describes the type of the serialized message. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + description: |- + QueryUpgradedConsensusStateResponse is the response type for the + Query/UpgradedConsensusState RPC method. default: description: An unexpected error response. schema: @@ -32883,152 +33346,61 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - parameters: - - name: withGlobal - in: query - required: false - type: boolean - - 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/nft_data/{nftSchemaCode}/{tokenId}': + '/ibc/core/connection/v1/client_connections/{client_id}': get: - summary: Queries a NftData by index. - operationId: ThesixnetworkSixnftNftmngrNftData + summary: |- + ClientConnections queries the connection paths associated with a client + state. + operationId: IbcCoreConnectionV1ClientConnections responses: '200': description: A successful response. schema: type: object properties: - nftData: + connection_paths: + type: array + items: + type: string + description: slice of all the connection paths associated with a client. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was generated type: object properties: - nft_schema_code: - type: string - token_id: - type: string - token_owner: - type: string - owner_address_type: - type: string - enum: - - ORIGIN_ADDRESS - - INTERNAL_ADDRESS - default: ORIGIN_ADDRESS - origin_image: - type: string - onchain_image: + revision_number: type: string - token_uri: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string - origin_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean - onchain_attributes: - type: array - items: - type: object - properties: - name: - type: string - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_to_marketplace: - type: boolean + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryClientConnectionsResponse is the response type for the + Query/ClientConnections RPC method default: description: An unexpected error response. schema: @@ -33215,38 +33587,172 @@ paths: "value": "1.212s" } parameters: - - name: nftSchemaCode - in: path - required: true - type: string - - name: tokenId + - name: client_id + description: client identifier associated with a connection in: path required: true type: string - - name: withGlobal - in: query - required: false - type: boolean tags: - Query - /thesixnetwork/sixnft/nftmngr/nft_fee_balance: + /ibc/core/connection/v1/connections: get: - summary: Queries a NFTFeeBalance by index. - operationId: ThesixnetworkSixnftNftmngrNFTFeeBalance + summary: Connections queries all the IBC connections of a chain. + operationId: IbcCoreConnectionV1Connections responses: '200': description: A successful response. schema: type: object properties: - NFTFeeBalance: + connections: + type: array + items: + type: object + properties: + id: + type: string + description: connection identifier. + client_id: + type: string + description: client associated with this connection. + versions: + type: array + items: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: >- + list of features compatible with the specified + identifier + description: >- + Version defines the versioning scheme used to + negotiate the IBC verison in + + the connection handshake. + title: >- + IBC version which can be utilised to determine encodings + or protocols for + + channels or packets utilising this connection + state: + description: current state of the connection end. + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + default: STATE_UNINITIALIZED_UNSPECIFIED + counterparty: + description: counterparty chain associated with this connection. + type: object + properties: + client_id: + type: string + description: >- + identifies the client on the counterparty chain + associated with a given + + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty + chain associated with a + + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. + + The constructed key from the Path and the key will + be append(Path.KeyPath, + + append(Path.KeyPrefix, key...)) + delay_period: + type: string + format: uint64 + description: delay period associated with this connection. + description: >- + IdentifiedConnection defines a connection with additional + connection + + identifier field. + description: list of stored connections of the chain. + pagination: + title: pagination response type: object properties: - fee_balances: - type: array - items: - type: string - title: 'map fee_balances = 1;' + 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; + } + height: + title: query block height + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + description: >- + QueryConnectionsResponse is the response type for the + Query/Connections RPC + + method. default: description: An unexpected error response. schema: @@ -33432,545 +33938,199 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + 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 tags: - Query - /thesixnetwork/sixnft/nftmngr/nft_fee_config: + '/ibc/core/connection/v1/connections/{connection_id}': get: - summary: Queries a NFTFeeConfig by index. - operationId: ThesixnetworkSixnftNftmngrNFTFeeConfig + summary: Connection queries an IBC connection end. + operationId: IbcCoreConnectionV1Connection responses: '200': description: A successful response. schema: type: object properties: - NFTFeeConfig: + connection: + title: connection associated with the request identifier type: object properties: - schema_fee: + client_id: + type: string + description: client associated with this connection. + versions: + type: array + items: + type: object + properties: + identifier: + type: string + title: unique version identifier + features: + type: array + items: + type: string + title: >- + list of features compatible with the specified + identifier + description: >- + Version defines the versioning scheme used to negotiate + the IBC verison in + + the connection handshake. + description: >- + IBC version which can be utilised to determine encodings + or protocols for + + channels or packets utilising this connection. + state: + description: current state of the connection end. + type: string + enum: + - STATE_UNINITIALIZED_UNSPECIFIED + - STATE_INIT + - STATE_TRYOPEN + - STATE_OPEN + default: STATE_UNINITIALIZED_UNSPECIFIED + counterparty: + description: counterparty chain associated with this connection. type: object properties: - fee_amount: + client_id: type: string - fee_distributions: - type: array - items: - type: object - properties: - method: - type: string - enum: - - BURN - - REWARD_POOL - - TRANSFER - default: BURN - portion: - type: number - format: float - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least + description: >- + identifies the client on the counterparty chain + associated with a given - one "/" character. The last segment of the URL's path - must represent + connection. + connection_id: + type: string + description: >- + identifies the connection end on the counterparty + chain associated with a - the fully qualified name of the type (as in + given connection. + prefix: + description: commitment merkle prefix of the counterparty chain. + type: object + properties: + key_prefix: + type: string + format: byte + title: >- + MerklePrefix is merkle path prefixed to the key. - `path/google.protobuf.Duration`). The name should be in - a canonical form + The constructed key from the Path and the key will be + append(Path.KeyPath, - (e.g., leading "." is not accepted). + append(Path.KeyPrefix, key...)) + delay_period: + type: string + format: uint64 + description: >- + delay period that must pass before a consensus state can + be used for + packet-verification NOTE: delay period logic is only + implemented by some - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in - the official - - protobuf release, and it is not used for type URLs - beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values - in the form - - of utility functions or additional generated methods of the - Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by - default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the - last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield - type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with - an - - additional field `@type` which contains the type URL. - Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - - If the embedded message type is well-known and has a custom - JSON - - representation, that representation will be embedded adding - a field + clients. + description: >- + ConnectionEnd defines a stateful object on a chain connected + to another - `value` which holds the custom JSON in addition to the - `@type` + separate one. - field. Example (for message [google.protobuf.Duration][]): + NOTE: there must only be 2 defined ConnectionEnds to establish - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /thesixnetwork/sixnft/nftmngr/nft_schema: - get: - summary: Queries a list of NFTSchema items. - operationId: ThesixnetworkSixnftNftmngrNFTSchemaAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - nFTSchema: - type: array - items: - type: object - properties: - code: - type: string - name: - type: string - owner: - type: string - description: - type: string - origin_data: - type: object - properties: - origin_chain: - type: string - origin_contract_address: - type: string - origin_base_uri: - type: string - attribute_overriding: - type: string - enum: - - ORIGIN - - CHAIN - default: ORIGIN - metadata_format: - type: string - origin_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - uri_retrieval_method: - type: string - enum: - - BASE - - TOKEN - default: BASE - onchain_data: - type: object - properties: - nft_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - token_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - actions: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - disable: - type: boolean - when: - type: string - then: - type: array - items: - type: string - allowed_actioner: - type: string - enum: - - ALLOWED_ACTIONER_ALL - - ALLOWED_ACTIONER_SYSTEM_ONLY - - ALLOWED_ACTIONER_USER_ONLY - default: ALLOWED_ACTIONER_ALL - params: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string - status: - type: array - items: - type: object - properties: - status_name: - type: string - status_value: - type: boolean - isVerified: - type: boolean - mint_authorization: - type: string - pagination: + a connection between two chains. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - next_key: + revision_number: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + title: the height within the given revision description: >- - PageResponse is to be embedded in gRPC response messages where - the + Normally the RevisionHeight is incremented at each height + while keeping - corresponding request message has used PageRequest. + RevisionNumber the same. However some consensus algorithms may + choose to - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + description: >- + QueryConnectionResponse is the response type for the + Query/Connection RPC + + method. Besides the connection end, it includes a proof and the + height from + + which the proof was retrieved. default: description: An unexpected error response. schema: @@ -34157,582 +34317,247 @@ paths: "value": "1.212s" } 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 + - name: connection_id + description: connection unique identifier + in: path + required: true 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/nft_schema/{code}': + '/ibc/core/connection/v1/connections/{connection_id}/client_state': get: - summary: Queries a NFTSchema by index. - operationId: ThesixnetworkSixnftNftmngrNFTSchema + summary: |- + ConnectionClientState queries the client state associated with the + connection. + operationId: IbcCoreConnectionV1ConnectionClientState responses: '200': description: A successful response. schema: type: object properties: - nFTSchema: + identified_client_state: + title: client state associated with the channel type: object properties: - code: - type: string - name: - type: string - owner: - type: string - description: + client_id: type: string - origin_data: + title: client identifier + client_state: + title: client state type: object properties: - origin_chain: - type: string - origin_contract_address: - type: string - origin_base_uri: - type: string - attribute_overriding: - type: string - enum: - - ORIGIN - - CHAIN - default: ORIGIN - metadata_format: - type: string - origin_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - uri_retrieval_method: + '@type': type: string - enum: - - BASE - - TOKEN - default: BASE - onchain_data: - type: object - properties: - nft_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - token_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - actions: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - disable: - type: boolean - when: - type: string - then: - type: array - items: - type: string - allowed_actioner: - type: string - enum: - - ALLOWED_ACTIONER_ALL - - ALLOWED_ACTIONER_SYSTEM_ONLY - - ALLOWED_ACTIONER_USER_ONLY - default: ALLOWED_ACTIONER_ALL - params: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string - status: - type: array - items: - type: object - properties: - status_name: - type: string - status_value: - type: boolean - isVerified: - type: boolean - mint_authorization: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - protocol buffer message. This string must contain at - least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path - must represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in - a canonical form + `path/google.protobuf.Duration`). The name should be + in a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary - all types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for - URLs which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally - set up a type + scheme `http`, `https`, or no scheme, one can + optionally set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based - on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results + based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in - the official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs - beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty + scheme) might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values - in the form + Protobuf library provides support to pack/unpack Any + values in the form - of utility functions or additional generated methods of the - Any type. + of utility functions or additional generated methods of + the Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { + Foo foo = ...; + Any any; + any.PackFrom(foo); ... - } + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) + foo = Foo(...) + any = Any() + any.Pack(foo) ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } ... - } + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by - default use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and + the unpack - methods only use the fully qualified type name after the - last '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + in the type URL, for example "foo.bar.com/x/y.z" will + yield type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. - Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom - JSON + If the embedded message type is well-known and has a + custom JSON - representation, that representation will be embedded adding - a field + representation, that representation will be embedded + adding a field - `value` which holds the custom JSON in addition to the - `@type` + `value` which holds the custom JSON in addition to the + `@type` - field. Example (for message [google.protobuf.Duration][]): + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: code - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftmngr/nft_schema_by_contract: - get: - summary: Queries a list of NFTSchemaByContract items. - operationId: ThesixnetworkSixnftNftmngrNFTSchemaByContractAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - nFTSchemaByContract: - type: array - items: - type: object - properties: - originContractAddress: - type: string - schemaCodes: - type: array - items: - type: string - pagination: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + description: >- + IdentifiedClientState defines a client state with an + additional client + + identifier field. + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved type: object properties: - next_key: + revision_number: type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + format: uint64 + title: the revision that the client is currently on + revision_height: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise + title: the height within the given revision description: >- - PageResponse is to be embedded in gRPC response messages where - the + Normally the RevisionHeight is incremented at each height + while keeping - corresponding request message has used PageRequest. + RevisionNumber the same. However some consensus algorithms may + choose to - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionClientStateResponse is the response type for the + Query/ConnectionClientState RPC method default: description: An unexpected error response. schema: @@ -34919,73 +34744,234 @@ paths: "value": "1.212s" } 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 + - name: connection_id + description: connection identifier + in: path + required: true 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 tags: - Query - '/thesixnetwork/sixnft/nftmngr/nft_schema_by_contract/{originContractAddress}': + '/ibc/core/connection/v1/connections/{connection_id}/consensus_state/revision/{revision_number}/height/{revision_height}': get: - summary: Queries a NFTSchemaByContract by index. - operationId: ThesixnetworkSixnftNftmngrNFTSchemaByContract + summary: |- + ConnectionConsensusState queries the consensus state associated with the + connection. + operationId: IbcCoreConnectionV1ConnectionConsensusState responses: '200': description: A successful response. schema: type: object properties: - nFTSchemaByContract: + consensus_state: + title: consensus state associated with the channel type: object properties: - originContractAddress: + '@type': type: string - schemaCodes: - type: array - items: - type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + client_id: + type: string + title: client ID associated with the consensus state + proof: + type: string + format: byte + title: merkle proof of existence + proof_height: + title: height at which the proof was retrieved + type: object + properties: + revision_number: + type: string + format: uint64 + title: the revision that the client is currently on + revision_height: + type: string + format: uint64 + title: the height within the given revision + description: >- + Normally the RevisionHeight is incremented at each height + while keeping + + RevisionNumber the same. However some consensus algorithms may + choose to + + reset the height in certain conditions e.g. hard forks, + state-machine + + breaking changes In these cases, the RevisionNumber is + incremented so that + + height continues to be monitonically increasing even as the + RevisionHeight + + gets reset + title: |- + QueryConnectionConsensusStateResponse is the response type for the + Query/ConnectionConsensusState RPC method default: description: An unexpected error response. schema: @@ -35172,58 +35158,73 @@ paths: "value": "1.212s" } parameters: - - name: originContractAddress + - name: connection_id + description: connection identifier + in: path + required: true + type: string + - name: revision_number + in: path + required: true + type: string + format: uint64 + - name: revision_height in: path required: true type: string + format: uint64 tags: - Query - /thesixnetwork/sixnft/nftmngr/organization: + /tendermint/spn/monitoringp/connection_channel_id: get: - summary: Queries a list of Organization items. - operationId: ThesixnetworkSixnftNftmngrOrganizationAll + summary: Queries a ConnectionChannelID by index. + operationId: TendermintSpnMonitoringpConnectionChannelID responses: '200': description: A successful response. schema: type: object properties: - organization: + ConnectionChannelID: + type: object + properties: + channelID: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - name: - type: string - owner: + '@type': type: string - pagination: + additionalProperties: {} + tags: + - Query + /tendermint/spn/monitoringp/consumer_client_id: + get: + summary: Queries a ConsumerClientID by index. + operationId: TendermintSpnMonitoringpConsumerClientID + responses: + '200': + description: A successful response. + schema: + type: object + properties: + ConsumerClientID: 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: + clientID: 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: @@ -35241,36 +35242,322 @@ paths: properties: '@type': type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized - - protocol buffer message. This string must contain at - least - - one "/" character. The last segment of the URL's path - must represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in - a canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary - all types that they - - expect it to use in the context of Any. However, for - URLs which use the - - scheme `http`, `https`, or no scheme, one can optionally - set up a type - - server that maps type URLs to message definitions as - follows: - + additionalProperties: {} + tags: + - Query + /tendermint/spn/monitoringp/monitoring_info: + get: + summary: Queries a MonitoringInfo by index. + operationId: TendermintSpnMonitoringpMonitoringInfo + responses: + '200': + description: A successful response. + schema: + type: object + properties: + MonitoringInfo: + type: object + properties: + transmitted: + type: boolean + signatureCounts: + type: object + properties: + blockCount: + type: string + format: uint64 + counts: + type: array + items: + type: object + properties: + opAddress: + type: string + RelativeSignatures: + type: string + title: >- + SignatureCount contains information of signature + reporting for one specific validator with consensus + address + + RelativeSignatures is the sum of all signatures + relative to the validator set size + title: >- + SignatureCounts contains information about signature + reporting for a number of blocks + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /tendermint/spn/monitoringp/params: + get: + summary: Params queries the parameters of the module. + operationId: TendermintSpnMonitoringpParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + lastBlockHeight: + type: string + format: int64 + consumerChainID: + type: string + consumerConsensusState: + type: object + properties: + nextValidatorsHash: + type: string + timestamp: + type: string + root: + type: object + properties: + hash: + type: string + title: MerkleRoot represents a Merkle Root in ConsensusState + title: >- + ConsensusState represents a Consensus State + + it is compatible with the dumped state from `appd q ibc + client self-consensus-state` command + consumerUnbondingPeriod: + type: string + format: int64 + consumerRevisionHeight: + type: string + format: uint64 + description: Params defines the parameters for the module. + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /thesixnetwork/sixnft/nftadmin/authorization: + get: + summary: Queries a Authorization by index. + operationId: ThesixnetworkSixnftNftadminAuthorization + responses: + '200': + description: A successful response. + schema: + type: object + properties: + Authorization: + type: object + properties: + root_admin: + type: string + permissions: + type: object + properties: + permissions: + type: array + items: + type: object + properties: + name: + type: string + addresses: + type: object + properties: + addresses: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /thesixnetwork/sixnft/nftadmin/params: + get: + summary: Parameters queries the parameters of the module. + operationId: ThesixnetworkSixnftNftadminParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /thesixnetwork/sixnft/nftmngr/action_by_ref_id: + get: + summary: Queries a list of ActionByRefId items. + operationId: ThesixnetworkSixnftNftmngrActionByRefIdAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + actionByRefId: + type: array + items: + type: object + properties: + refId: + type: string + creator: + type: string + nftSchemaCode: + type: string + tokenId: + type: string + action: + 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: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + * If no scheme is provided, `https` is assumed. @@ -35456,24 +35743,37 @@ paths: 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. + in: query + required: false + type: boolean tags: - Query - '/thesixnetwork/sixnft/nftmngr/organization/{name}': + '/thesixnetwork/sixnft/nftmngr/action_by_ref_id/{refId}': get: - summary: Queries a Organization by index. - operationId: ThesixnetworkSixnftNftmngrOrganization + summary: Queries a ActionByRefId by index. + operationId: ThesixnetworkSixnftNftmngrActionByRefId responses: '200': description: A successful response. schema: type: object properties: - organization: + actionByRefId: type: object properties: - name: + refId: type: string - owner: + creator: + type: string + nftSchemaCode: + type: string + tokenId: + type: string + action: type: string default: description: An unexpected error response. @@ -35661,28 +35961,60 @@ paths: "value": "1.212s" } parameters: - - name: name + - name: refId in: path required: true type: string tags: - Query - /thesixnetwork/sixnft/nftmngr/params: + /thesixnetwork/sixnft/nftmngr/action_executor: get: - summary: Parameters queries the parameters of the module. - operationId: ThesixnetworkSixnftNftmngrParams + summary: Queries a list of ActionExecutor items. + operationId: ThesixnetworkSixnftNftmngrActionExecutorAll responses: '200': description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. + actionExecutor: + type: array + items: + type: object + properties: + nftSchemaCode: + type: string + executorAddress: + type: string + creator: + type: string + pagination: type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. + 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: @@ -35868,63 +36200,306 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } + 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. + in: query + required: false + type: boolean tags: - Query - /thesixnetwork/sixnft/nftmngr/schema_attribute: + '/thesixnetwork/sixnft/nftmngr/action_executor/{nftSchemaCode}/{executorAddress}': get: - summary: Queries a list of SchemaAttribute items. - operationId: ThesixnetworkSixnftNftmngrSchemaAttributeAll + summary: Queries a ActionExecutor by index. + operationId: ThesixnetworkSixnftNftmngrActionExecutor responses: '200': description: A successful response. schema: type: object properties: - schemaAttribute: + actionExecutor: + type: object + properties: + nftSchemaCode: + type: string + executorAddress: + type: string + creator: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: type: array items: type: object properties: - nftSchemaCode: - type: string - name: - type: string - data_type: - type: string - current_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - creator: + '@type': type: string - pagination: - type: object - properties: - next_key: - type: string - format: byte - title: |- + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: nftSchemaCode + in: path + required: true + type: string + - name: executorAddress + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftmngr/action_of_schema: + get: + summary: Queries a list of ActionOfSchema items. + operationId: ThesixnetworkSixnftNftmngrActionOfSchemaAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + actionOfSchema: + type: array + items: + type: object + properties: + nftSchemaCode: + type: string + name: + type: string + index: + type: string + format: uint64 + 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: @@ -36177,54 +36752,35 @@ paths: 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. + in: query + required: false + type: boolean tags: - Query - '/thesixnetwork/sixnft/nftmngr/schema_attribute/{nftSchemaCode}/{name}': + '/thesixnetwork/sixnft/nftmngr/action_of_schema/{nftSchemaCode}/{name}': get: - summary: Queries a SchemaAttribute by index. - operationId: ThesixnetworkSixnftNftmngrSchemaAttribute + summary: Queries a ActionOfSchema by index. + operationId: ThesixnetworkSixnftNftmngrActionOfSchema responses: '200': description: A successful response. schema: type: object properties: - schemaAttribute: + actionOfSchema: type: object properties: nftSchemaCode: type: string name: type: string - data_type: - type: string - current_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - creator: + index: type: string + format: uint64 default: description: An unexpected error response. schema: @@ -36421,106 +36977,27 @@ paths: type: string tags: - Query - /thesixnetwork/sixnft/nftoracle/action_request: + /thesixnetwork/sixnft/nftmngr/executor_of_schema: get: - summary: Queries a list of ActionRequest items. - operationId: ThesixnetworkSixnftNftoracleActionRequestAll + summary: Queries a list of ExecutorOfSchema items. + operationId: ThesixnetworkSixnftNftmngrExecutorOfSchemaAll responses: '200': description: A successful response. schema: type: object properties: - ActionOracleRequest: + executorOfSchema: type: array items: type: object properties: - id: - type: string - format: uint64 - nft_schema_code: - type: string - token_id: - type: string - action: - type: string - params: - type: array - items: - type: object - properties: - name: - type: string - value: - type: string - caller: - type: string - ref_id: - type: string - required_confirm: - type: string - format: uint64 - status: - type: string - enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: + nftSchemaCode: type: string - format: uint64 - confirmers: + executorAddress: type: array items: type: string - created_at: - type: string - format: date-time - valid_until: - type: string - format: date-time - data_hashes: - type: array - items: - type: object - properties: - origin_data: - type: object - properties: - image: - type: string - holder_address: - type: string - traits: - type: array - items: - type: object - properties: - trait_type: - type: string - value: - type: string - display_type: - type: string - max_value: - type: string - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - execution_error_message: - type: string pagination: type: object properties: @@ -36565,7 +37042,174 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: pagination.key description: |- @@ -36617,112 +37261,30 @@ paths: 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 - '/thesixnetwork/sixnft/nftoracle/action_request/{id}': + '/thesixnetwork/sixnft/nftmngr/executor_of_schema/{nftSchemaCode}': get: - summary: Queries a ActionRequest by id. - operationId: ThesixnetworkSixnftNftoracleActionOracleRequest + summary: Queries a ExecutorOfSchema by index. + operationId: ThesixnetworkSixnftNftmngrExecutorOfSchema responses: '200': description: A successful response. schema: type: object properties: - ActionOracleRequest: + executorOfSchema: type: object properties: - id: - type: string - format: uint64 - nft_schema_code: - type: string - token_id: - type: string - action: - type: string - params: - type: array - items: - type: object - properties: - name: - type: string - value: - type: string - caller: - type: string - ref_id: - type: string - required_confirm: - type: string - format: uint64 - status: - type: string - enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: + nftSchemaCode: type: string - format: uint64 - confirmers: + executorAddress: type: array items: type: string - created_at: - type: string - format: date-time - valid_until: - type: string - format: date-time - data_hashes: - type: array - items: - type: object - properties: - origin_data: - type: object - properties: - image: - type: string - holder_address: - type: string - traits: - type: array - items: - type: object - properties: - trait_type: - type: string - value: - type: string - display_type: - type: string - max_value: - type: string - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - execution_error_message: - type: string default: description: An unexpected error response. schema: @@ -36740,75 +37302,229 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: id + - name: nftSchemaCode in: path required: true type: string - format: uint64 tags: - Query - /thesixnetwork/sixnft/nftoracle/action_signer: + '/thesixnetwork/sixnft/nftmngr/list_attribute_by_schema/{nftSchemaCode}': get: - summary: Queries a list of ActionSigner items. - operationId: ThesixnetworkSixnftNftoracleActionSignerAll + summary: Queries a list of ListAttributeBySchema items. + operationId: ThesixnetworkSixnftNftmngrListAttributeBySchema responses: '200': description: A successful response. schema: type: object properties: - actionSigner: + schemaAttribute: type: array items: type: object properties: - actor_address: - type: string - owner_address: + nftSchemaCode: type: string - created_at: + name: type: string - format: date-time - expired_at: + data_type: type: string - format: date-time + current_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double creator: type: string - creation_flow: - type: string - enum: - - ORACLE - - INTERNAL_OWNER - default: ORACLE - 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: @@ -36826,171 +37542,231 @@ paths: properties: '@type': type: string - additionalProperties: {} - 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. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - 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. + one "/" character. The last segment of the URL's path + must represent - 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 + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - 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. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - '/thesixnetwork/sixnft/nftoracle/action_signer/{actorAddress}/{ownerAddress}': - get: - summary: Queries a ActionSigner by index. - operationId: ThesixnetworkSixnftNftoracleActionSigner - responses: - '200': - description: A successful response. - schema: - type: object - properties: - actionSigner: - type: object - properties: - actor_address: - type: string - owner_address: - type: string - created_at: - type: string - format: date-time - expired_at: - type: string - format: date-time - creator: - type: string - creation_flow: - type: string - enum: - - ORACLE - - INTERNAL_OWNER - default: ORACLE - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: actorAddress - in: path - required: true - type: string - - name: ownerAddress - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftoracle/action_signer_config: - get: - summary: Queries a list of ActionSignerConfig items. - operationId: ThesixnetworkSixnftNftoracleActionSignerConfigAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - actionSignerConfig: - type: array - items: - type: object - properties: - chain: - type: string - contractAddress: - type: string - creator: - 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 + expect it to use in the context of Any. However, for + URLs which use the - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + scheme `http`, `https`, or no scheme, one can optionally + set up a type - corresponding request message has used PageRequest. + server that maps type URLs to message definitions as + follows: - message SomeResponse { + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: nftSchemaCode + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftmngr/metadata_creator: + get: + summary: Queries a list of MetadataCreator items. + operationId: ThesixnetworkSixnftNftmngrMetadataCreatorAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + metadataCreator: + type: array + items: + type: object + properties: + nftSchemaCode: + type: string + metadataMintedBy: + type: array + items: + type: object + properties: + token_id: + type: string + minter: + 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; } @@ -37011,7 +37787,174 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: pagination.key description: |- @@ -37063,86 +38006,35 @@ paths: 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 - '/thesixnetwork/sixnft/nftoracle/action_signer_config/{chain}': - get: - summary: Queries a ActionSignerConfig by index. - operationId: ThesixnetworkSixnftNftoracleActionSignerConfig - responses: - '200': - description: A successful response. - schema: - type: object - properties: - actionSignerConfig: - type: object - properties: - chain: - type: string - contractAddress: - type: string - creator: - type: string - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: chain - in: path - required: true - type: string - tags: - - Query - '/thesixnetwork/sixnft/nftoracle/binded_signer/{ownerAddress}': + '/thesixnetwork/sixnft/nftmngr/metadata_creator/{nftSchemaCode}': get: - summary: Queries a BindedSigner by index. - operationId: ThesixnetworkSixnftNftoracleBindedSigner + summary: Queries a MetadataCreator by index. + operationId: ThesixnetworkSixnftNftmngrMetadataCreator responses: '200': description: A successful response. schema: type: object properties: - bindedSigner: + metadataCreator: type: object properties: - ownerAddress: + nftSchemaCode: type: string - signers: + metadataMintedBy: type: array items: type: object properties: - actor_address: + token_id: type: string - expired_at: + minter: type: string - format: date-time - actorCount: - type: string - format: uint64 default: description: An unexpected error response. schema: @@ -37160,89 +38052,276 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} - parameters: - - name: ownerAddress - in: path - required: true - type: string - tags: - - Query - /thesixnetwork/sixnft/nftoracle/collection_owner_request: - get: - summary: Queries a list of CollectionOwnerRequest items. - operationId: ThesixnetworkSixnftNftoracleCollectionOwnerRequestAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - CollectionOwnerRequest: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - nftSchemaCode: - type: string - signer: + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: nftSchemaCode + in: path + required: true + type: string + tags: + - Query + '/thesixnetwork/sixnft/nftmngr/nft_collection/{nftSchemaCode}': + get: + summary: Queries a NftCollection by index. + operationId: ThesixnetworkSixnftNftmngrNftCollection + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nftCollection: + type: array + items: + type: object + properties: + nft_schema_code: type: string - required_confirm: + token_id: type: string - format: uint64 - status: + token_owner: + type: string + owner_address_type: type: string enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: + - ORIGIN_ADDRESS + - INTERNAL_ADDRESS + default: ORIGIN_ADDRESS + origin_image: type: string - format: uint64 - confirmers: - type: array - items: - type: string - created_at: + onchain_image: type: string - format: date-time - valid_until: + token_uri: type: string - format: date-time - contract_info: + origin_attributes: type: array items: type: object properties: - contractOriginDataInfo: + name: + type: string + number_attribute_value: type: object properties: - chain: + value: type: string - contract_address: + format: uint64 + string_attribute_value: + type: object + properties: + value: type: string - contract_owner: + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean + onchain_attributes: + type: array + items: + type: object + properties: + name: + type: string + number_attribute_value: + type: object + properties: + value: type: string - request_expire: + format: uint64 + string_attribute_value: + type: object + properties: + value: type: string - format: date-time - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean pagination: type: object properties: @@ -37287,8 +38366,179 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: nftSchemaCode + in: path + required: true + type: string - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -37339,197 +38589,106 @@ paths: 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 - '/thesixnetwork/sixnft/nftoracle/collection_owner_request/{id}': + /thesixnetwork/sixnft/nftmngr/nft_data: get: - summary: Queries a CollectionOwnerRequest by id. - operationId: ThesixnetworkSixnftNftoracleCollectionOwnerRequest + summary: Queries a list of NftData items. + operationId: ThesixnetworkSixnftNftmngrNftDataAll responses: '200': description: A successful response. schema: type: object properties: - CollectionOwnerRequest: - type: object - properties: - id: - type: string - format: uint64 - nftSchemaCode: - type: string - signer: - type: string - required_confirm: - type: string - format: uint64 - status: - type: string - enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: - type: string - format: uint64 - confirmers: - type: array - items: - type: string - created_at: - type: string - format: date-time - valid_until: - type: string - format: date-time - contract_info: - type: array - items: - type: object - properties: - contractOriginDataInfo: - type: object - properties: - chain: - type: string - contract_address: - type: string - contract_owner: - type: string - request_expire: - type: string - format: date-time - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: + nftData: type: array items: type: object properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: id - in: path - required: true - type: string - format: uint64 - tags: - - Query - /thesixnetwork/sixnft/nftoracle/mint_request: - get: - summary: Queries a list of MintRequest items. - operationId: ThesixnetworkSixnftNftoracleMintRequestAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - MintRequest: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - nft_schema_code: + nft_schema_code: type: string token_id: type: string - required_confirm: + token_owner: type: string - format: uint64 - status: + owner_address_type: type: string enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: + - ORIGIN_ADDRESS + - INTERNAL_ADDRESS + default: ORIGIN_ADDRESS + origin_image: type: string - format: uint64 - confirmers: - type: array - items: - type: string - created_at: + onchain_image: type: string - format: date-time - title: NftOriginData nft_origin_data = 8; - valid_until: + token_uri: type: string - format: date-time - data_hashes: + origin_attributes: type: array items: type: object properties: - origin_data: + name: + type: string + number_attribute_value: type: object properties: - image: + value: type: string - holder_address: + format: uint64 + string_attribute_value: + type: object + properties: + value: type: string - traits: - type: array - items: - type: object - properties: - trait_type: - type: string - value: - type: string - display_type: - type: string - max_value: - type: string - hash: + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean + onchain_attributes: + type: array + items: + type: object + properties: + name: type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean pagination: type: object properties: @@ -37574,8 +38733,179 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: withGlobal + in: query + required: false + type: boolean - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -37626,138 +38956,104 @@ paths: 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 - '/thesixnetwork/sixnft/nftoracle/mint_request/{id}': + '/thesixnetwork/sixnft/nftmngr/nft_data/{nftSchemaCode}/{tokenId}': get: - summary: Queries a MintRequest by id. - operationId: ThesixnetworkSixnftNftoracleMintRequest + summary: Queries a NftData by index. + operationId: ThesixnetworkSixnftNftmngrNftData responses: '200': description: A successful response. schema: type: object properties: - MintRequest: + nftData: type: object properties: - id: - type: string - format: uint64 nft_schema_code: type: string token_id: type: string - required_confirm: + token_owner: type: string - format: uint64 - status: + owner_address_type: type: string enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: + - ORIGIN_ADDRESS + - INTERNAL_ADDRESS + default: ORIGIN_ADDRESS + origin_image: type: string - format: uint64 - confirmers: - type: array - items: - type: string - created_at: + onchain_image: type: string - format: date-time - title: NftOriginData nft_origin_data = 8; - valid_until: + token_uri: type: string - format: date-time - data_hashes: + origin_attributes: type: array items: type: object properties: - origin_data: + name: + type: string + number_attribute_value: type: object properties: - image: + value: type: string - holder_address: + format: uint64 + string_attribute_value: + type: object + properties: + value: type: string - traits: - type: array - items: - type: object - properties: - trait_type: - type: string - value: - type: string - display_type: - type: string - max_value: - type: string - hash: + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean + onchain_attributes: + type: array + items: + type: object + properties: + name: type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: id - in: path - required: true - type: string - format: uint64 - tags: - - Query - /thesixnetwork/sixnft/nftoracle/oracle_config: - get: - summary: Queries a OracleConfig by index. - operationId: ThesixnetworkSixnftNftoracleOracleConfig - responses: - '200': - description: A successful response. - schema: - type: object - properties: - OracleConfig: - type: object - properties: - minimum_confirmation: - type: integer - format: int32 + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_to_marketplace: + type: boolean default: description: An unexpected error response. schema: @@ -37775,324 +39071,207 @@ paths: properties: '@type': type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. additionalProperties: {} - tags: - - Query - /thesixnetwork/sixnft/nftoracle/params: - get: - summary: Parameters queries the parameters of the module. - operationId: ThesixnetworkSixnftNftoracleParams - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - properties: - mint_request_active_duration: - type: string - action_request_active_duration: - type: string - verify_request_active_duration: - type: string - action_signer_active_duration: - type: string - sync_action_signer_active_duration: - type: string - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. - schema: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - tags: - - Query - /thesixnetwork/sixnft/nftoracle/sync_action_signer: - get: - summary: Queries a list of SyncActionSigner items. - operationId: ThesixnetworkSixnftNftoracleSyncActionSignerAll - responses: - '200': - description: A successful response. - schema: - type: object - properties: - SyncActionSigner: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - chain: - type: string - actor_address: - type: string - owner_address: - type: string - caller: - type: string - title: will use as creator when message is success - required_confirm: - type: string - format: uint64 - status: - type: string - enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: - type: string - format: uint64 - confirmers: - type: array - items: - type: string - created_at: - type: string - format: date-time - valid_until: - type: string - format: date-time - data_hashes: - type: array - items: - type: object - properties: - contract_param: - type: object - properties: - chain: - type: string - owner_address: - type: string - title: get from smart contract - actor_address: - type: string - title: get from smart contract - expire_epoch: - type: string - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - execution_error_message: - 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 + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + URL that describes the type of the serialized message. - 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: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - 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. + Protobuf library provides support to pack/unpack Any values + in the form - It is less efficient than using key. Only one of offset or key - should + of utility functions or additional generated methods of the + Any type. - 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 + Example 1: Pack and unpack a message in C++. - a count of the total number of items available for pagination in - UIs. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - count_total is only respected when offset is used. It is ignored - when key + Example 2: Pack and unpack a message in Java. - 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. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + Example 3: Pack and unpack a message in Python. - Since: cosmos-sdk 0.43 + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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: nftSchemaCode + in: path + required: true + type: string + - name: tokenId + in: path + required: true + type: string + - name: withGlobal in: query required: false type: boolean tags: - Query - '/thesixnetwork/sixnft/nftoracle/sync_action_signer/{id}': + /thesixnetwork/sixnft/nftmngr/nft_fee_balance: get: - summary: Queries a SyncActionSigner by id. - operationId: ThesixnetworkSixnftNftoracleSyncActionSigner + summary: Queries a NFTFeeBalance by index. + operationId: ThesixnetworkSixnftNftmngrNFTFeeBalance responses: '200': description: A successful response. schema: type: object properties: - SyncActionSigner: + NFTFeeBalance: type: object properties: - id: - type: string - format: uint64 - chain: - type: string - actor_address: - type: string - owner_address: - type: string - caller: - type: string - title: will use as creator when message is success - required_confirm: - type: string - format: uint64 - status: - type: string - enum: - - PENDING - - SUCCESS_WITH_CONSENSUS - - FAILED_WITHOUT_CONCENSUS - - EXPIRED - - FAILED_ON_EXECUTION - - FAILED_REJECT_BY_CONSENSUS - default: PENDING - current_confirm: - type: string - format: uint64 - confirmers: + fee_balances: type: array items: type: string - created_at: - type: string - format: date-time - valid_until: - type: string - format: date-time - data_hashes: - type: array - items: - type: object - properties: - contract_param: - type: object - properties: - chain: - type: string - owner_address: - type: string - title: get from smart contract - actor_address: - type: string - title: get from smart contract - expire_epoch: - type: string - hash: - type: string - format: byte - confirmers: - type: array - items: - type: string - expired_height: - type: string - format: int64 - execution_error_message: - type: string + title: 'map fee_balances = 1;' default: description: An unexpected error response. schema: @@ -38110,6257 +39289,14158 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: id - in: path - required: true - type: string - format: uint64 - tags: - - Query -definitions: - cosmos.auth.v1beta1.Params: - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: Params defines the parameters for the auth module. - cosmos.auth.v1beta1.QueryAccountResponse: - type: object - properties: - account: - description: account defines the account of the corresponding address. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all types - that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for URLs which - use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally set up a - type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs beginning with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryAccountResponse is the response type for the Query/Account RPC - method. - cosmos.auth.v1beta1.QueryAccountsResponse: - type: object - properties: - accounts: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - one "/" character. The last segment of the URL's path must - represent + URL that describes the type of the serialized message. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + Protobuf library provides support to pack/unpack Any values + in the form - (e.g., leading "." is not accepted). + of utility functions or additional generated methods of the + Any type. - In practice, teams usually precompile into the binary all types - that they + Example 1: Pack and unpack a message in C++. - expect it to use in the context of Any. However, for URLs which - use the + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - scheme `http`, `https`, or no scheme, one can optionally set up - a type + Example 2: Pack and unpack a message in Java. - server that maps type URLs to message definitions as follows: + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + Example 3: Pack and unpack a message in Python. - * If no scheme is provided, `https` is assumed. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Example 4: Pack and unpack a message in Go - Note: this functionality is not currently available in the - official + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - protobuf release, and it is not used for type URLs beginning - with + The pack methods provided by protobuf library will by + default use - type.googleapis.com. + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + methods only use the fully qualified type name after the + last '/' - Schemes other than `http`, `https` (or the empty scheme) might - be + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + name "y.z". - URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in the - form + JSON - of utility functions or additional generated methods of the Any - type. + ==== + The JSON representation of an `Any` value uses the regular - Example 1: Pack and unpack a message in C++. + representation of the deserialized, embedded message, with + an - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + additional field `@type` which contains the type URL. + Example: - Example 2: Pack and unpack a message in Java. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Example 3: Pack and unpack a message in Python. + If the embedded message type is well-known and has a custom + JSON - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + representation, that representation will be embedded adding + a field - Example 4: Pack and unpack a message in Go + `value` which holds the custom JSON in addition to the + `@type` - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + field. Example (for message [google.protobuf.Duration][]): - The pack methods provided by protobuf library will by default use + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /thesixnetwork/sixnft/nftmngr/nft_fee_config: + get: + summary: Queries a NFTFeeConfig by index. + operationId: ThesixnetworkSixnftNftmngrNFTFeeConfig + responses: + '200': + description: A successful response. + schema: + type: object + properties: + NFTFeeConfig: + type: object + properties: + schema_fee: + type: object + properties: + fee_amount: + type: string + fee_distributions: + type: array + items: + type: object + properties: + method: + type: string + enum: + - BURN + - REWARD_POOL + - TRANSFER + default: BURN + portion: + type: number + format: float + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - 'type.googleapis.com/full.type.name' as the type URL and the unpack + protocol buffer message. This string must contain at + least - methods only use the fully qualified type name after the last '/' + one "/" character. The last segment of the URL's path + must represent - in the type URL, for example "foo.bar.com/x/y.z" will yield type + the fully qualified name of the type (as in - name "y.z". + `path/google.protobuf.Duration`). The name should be in + a canonical form + (e.g., leading "." is not accepted). - JSON + In practice, teams usually precompile into the binary + all types that they - ==== + expect it to use in the context of Any. However, for + URLs which use the - The JSON representation of an `Any` value uses the regular + scheme `http`, `https`, or no scheme, one can optionally + set up a type - representation of the deserialized, embedded message, with an + server that maps type URLs to message definitions as + follows: - additional field `@type` which contains the type URL. Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + * If no scheme is provided, `https` is assumed. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - If the embedded message type is well-known and has a custom JSON + Note: this functionality is not currently available in + the official - representation, that representation will be embedded adding a field + protobuf release, and it is not used for type URLs + beginning with - `value` which holds the custom JSON in addition to the `@type` + type.googleapis.com. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - title: accounts are the existing accounts - pagination: - description: pagination defines the pagination in the response. - 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 + Schemes other than `http`, `https` (or the empty scheme) + might be - was set, its value is undefined otherwise - description: >- - QueryAccountsResponse is the response type for the Query/Accounts RPC - method. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + URL that describes the type of the serialized message. - Since: cosmos-sdk 0.43 - cosmos.auth.v1beta1.QueryParamsResponse: - type: object - properties: - params: - description: params defines the parameters of the module. - type: object - properties: - max_memo_characters: - type: string - format: uint64 - tx_sig_limit: - type: string - format: uint64 - tx_size_cost_per_byte: - type: string - format: uint64 - sig_verify_cost_ed25519: - type: string - format: uint64 - sig_verify_cost_secp256k1: - type: string - format: uint64 - description: QueryParamsResponse is the response type for the Query/Params RPC method. - 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 - querying the next page most efficiently. Only one of offset or key - should be set. - offset: - type: string - format: uint64 - 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. - limit: - type: string - format: uint64 - 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. - count_total: - type: boolean - description: >- - count_total is set to true to indicate that the result set should - include + Protobuf library provides support to pack/unpack Any values + in the form - a count of the total number of items available for pagination in UIs. + of utility functions or additional generated methods of the + Any type. - count_total is only respected when offset is used. It is ignored when - key - is set. - reverse: - type: boolean - description: >- - reverse is set to true if results are to be returned in the descending - order. + Example 1: Pack and unpack a message in C++. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Since: cosmos-sdk 0.43 - description: |- - message SomeRequest { - Foo some_parameter = 1; - PageRequest pagination = 2; - } - title: |- - PageRequest is to be embedded in gRPC request messages for efficient - pagination. Ex: - cosmos.base.query.v1beta1.PageResponse: - 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. + Example 2: Pack and unpack a message in Java. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - google.protobuf.Any: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - protocol buffer message. This string must contain at least + Example 3: Pack and unpack a message in Python. - one "/" character. The last segment of the URL's path must represent + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - the fully qualified name of the type (as in + Example 4: Pack and unpack a message in Go - `path/google.protobuf.Duration`). The name should be in a canonical - form + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - (e.g., leading "." is not accepted). + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - In practice, teams usually precompile into the binary all types that - they + methods only use the fully qualified type name after the + last '/' - expect it to use in the context of Any. However, for URLs which use - the + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - scheme `http`, `https`, or no scheme, one can optionally set up a type + name "y.z". - server that maps type URLs to message definitions as follows: - * If no scheme is provided, `https` is assumed. + JSON - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + ==== - Note: this functionality is not currently available in the official + The JSON representation of an `Any` value uses the regular - protobuf release, and it is not used for type URLs beginning with + representation of the deserialized, embedded message, with + an - type.googleapis.com. + additional field `@type` which contains the type URL. + Example: + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - Schemes other than `http`, `https` (or the empty scheme) might be + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along with - a + If the embedded message type is well-known and has a custom + JSON - URL that describes the type of the serialized message. + representation, that representation will be embedded adding + a field + `value` which holds the custom JSON in addition to the + `@type` - Protobuf library provides support to pack/unpack Any values in the form + field. Example (for message [google.protobuf.Duration][]): - of utility functions or additional generated methods of the Any type. + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /thesixnetwork/sixnft/nftmngr/nft_schema: + get: + summary: Queries a list of NFTSchema items. + operationId: ThesixnetworkSixnftNftmngrNFTSchemaAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nFTSchema: + type: array + items: + type: object + properties: + code: + type: string + name: + type: string + owner: + type: string + description: + type: string + origin_data: + type: object + properties: + origin_chain: + type: string + origin_contract_address: + type: string + origin_base_uri: + type: string + attribute_overriding: + type: string + enum: + - ORIGIN + - CHAIN + default: ORIGIN + metadata_format: + type: string + origin_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + uri_retrieval_method: + type: string + enum: + - BASE + - TOKEN + default: BASE + onchain_data: + type: object + properties: + nft_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + token_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + actions: + type: array + items: + type: object + properties: + name: + type: string + desc: + type: string + disable: + type: boolean + when: + type: string + then: + type: array + items: + type: string + allowed_actioner: + type: string + enum: + - ALLOWED_ACTIONER_ALL + - ALLOWED_ACTIONER_SYSTEM_ONLY + - ALLOWED_ACTIONER_USER_ONLY + default: ALLOWED_ACTIONER_ALL + params: + type: array + items: + type: object + properties: + name: + type: string + desc: + type: string + data_type: + type: string + required: + type: boolean + default_value: + type: string + status: + type: array + items: + type: object + properties: + status_name: + type: string + status_value: + type: boolean + isVerified: + type: boolean + mint_authorization: + 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 - Example 1: Pack and unpack a message in C++. + corresponding request message has used PageRequest. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - Example 2: Pack and unpack a message in Java. + protocol buffer message. This string must contain at + least - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + one "/" character. The last segment of the URL's path + must represent - Example 3: Pack and unpack a message in Python. + the fully qualified name of the type (as in - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + `path/google.protobuf.Duration`). The name should be in + a canonical form - Example 4: Pack and unpack a message in Go + (e.g., leading "." is not accepted). - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - The pack methods provided by protobuf library will by default use + In practice, teams usually precompile into the binary + all types that they - 'type.googleapis.com/full.type.name' as the type URL and the unpack + expect it to use in the context of Any. However, for + URLs which use the - methods only use the fully qualified type name after the last '/' + scheme `http`, `https`, or no scheme, one can optionally + set up a type - in the type URL, for example "foo.bar.com/x/y.z" will yield type + server that maps type URLs to message definitions as + follows: - name "y.z". + * If no scheme is provided, `https` is assumed. + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - JSON + Note: this functionality is not currently available in + the official - ==== + protobuf release, and it is not used for type URLs + beginning with - The JSON representation of an `Any` value uses the regular + type.googleapis.com. - representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. Example: + Schemes other than `http`, `https` (or the empty scheme) + might be - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + URL that describes the type of the serialized message. - If the embedded message type is well-known and has a custom JSON - representation, that representation will be embedded adding a field + Protobuf library provides support to pack/unpack Any values + in the form - `value` which holds the custom JSON in addition to the `@type` + of utility functions or additional generated methods of the + Any type. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - google.rpc.Status: - type: object - properties: - code: - type: integer - format: int32 - message: - type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + Example 1: Pack and unpack a message in C++. - protocol buffer message. This string must contain at least + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - one "/" character. The last segment of the URL's path must - represent + Example 2: Pack and unpack a message in Java. - the fully qualified name of the type (as in + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - `path/google.protobuf.Duration`). The name should be in a - canonical form + Example 3: Pack and unpack a message in Python. - (e.g., leading "." is not accepted). + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - In practice, teams usually precompile into the binary all types - that they + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - expect it to use in the context of Any. However, for URLs which - use the + The pack methods provided by protobuf library will by + default use - scheme `http`, `https`, or no scheme, one can optionally set up - a type + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - server that maps type URLs to message definitions as follows: + methods only use the fully qualified type name after the + last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - * If no scheme is provided, `https` is assumed. + name "y.z". - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official - protobuf release, and it is not used for type URLs beginning - with + JSON - type.googleapis.com. + ==== + The JSON representation of an `Any` value uses the regular - Schemes other than `http`, `https` (or the empty scheme) might - be + representation of the deserialized, embedded message, with + an - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + additional field `@type` which contains the type URL. + Example: - URL that describes the type of the serialized message. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Protobuf library provides support to pack/unpack Any values in the - form + If the embedded message type is well-known and has a custom + JSON - of utility functions or additional generated methods of the Any - type. + representation, that representation will be embedded adding + a field + `value` which holds the custom JSON in addition to the + `@type` - Example 1: Pack and unpack a message in C++. + field. Example (for message [google.protobuf.Duration][]): - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + 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. - Example 2: Pack and unpack a message in Java. + It is less efficient than using key. Only one of offset or key + should - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + 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. - Example 3: Pack and unpack a message in Python. + 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 - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + a count of the total number of items available for pagination in + UIs. - Example 4: Pack and unpack a message in Go + count_total is only respected when offset is used. It is ignored + when key - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + 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. + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftmngr/nft_schema/{code}': + get: + summary: Queries a NFTSchema by index. + operationId: ThesixnetworkSixnftNftmngrNFTSchema + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nFTSchema: + type: object + properties: + code: + type: string + name: + type: string + owner: + type: string + description: + type: string + origin_data: + type: object + properties: + origin_chain: + type: string + origin_contract_address: + type: string + origin_base_uri: + type: string + attribute_overriding: + type: string + enum: + - ORIGIN + - CHAIN + default: ORIGIN + metadata_format: + type: string + origin_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + uri_retrieval_method: + type: string + enum: + - BASE + - TOKEN + default: BASE + onchain_data: + type: object + properties: + nft_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + token_attributes: + type: array + items: + type: object + properties: + name: + type: string + data_type: + type: string + required: + type: boolean + display_value_field: + type: string + display_option: + type: object + properties: + bool_true_value: + type: string + bool_false_value: + type: string + opensea: + type: object + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + default_mint_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + hidden_overide: + type: boolean + title: flag that allows action to override hidden + hidden_to_marketplace: + type: boolean + index: + type: string + format: uint64 + actions: + type: array + items: + type: object + properties: + name: + type: string + desc: + type: string + disable: + type: boolean + when: + type: string + then: + type: array + items: + type: string + allowed_actioner: + type: string + enum: + - ALLOWED_ACTIONER_ALL + - ALLOWED_ACTIONER_SYSTEM_ONLY + - ALLOWED_ACTIONER_USER_ONLY + default: ALLOWED_ACTIONER_ALL + params: + type: array + items: + type: object + properties: + name: + type: string + desc: + type: string + data_type: + type: string + required: + type: boolean + default_value: + type: string + status: + type: array + items: + type: object + properties: + status_name: + type: string + status_value: + type: boolean + isVerified: + type: boolean + mint_authorization: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - The pack methods provided by protobuf library will by default use + protocol buffer message. This string must contain at + least - 'type.googleapis.com/full.type.name' as the type URL and the unpack + one "/" character. The last segment of the URL's path + must represent - methods only use the fully qualified type name after the last '/' + the fully qualified name of the type (as in - in the type URL, for example "foo.bar.com/x/y.z" will yield type + `path/google.protobuf.Duration`). The name should be in + a canonical form - name "y.z". + (e.g., leading "." is not accepted). + In practice, teams usually precompile into the binary + all types that they - JSON + expect it to use in the context of Any. However, for + URLs which use the - ==== + scheme `http`, `https`, or no scheme, one can optionally + set up a type - The JSON representation of an `Any` value uses the regular + server that maps type URLs to message definitions as + follows: - representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. Example: + * If no scheme is provided, `https` is assumed. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Note: this functionality is not currently available in + the official - If the embedded message type is well-known and has a custom JSON + protobuf release, and it is not used for type URLs + beginning with - representation, that representation will be embedded adding a field + type.googleapis.com. - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + Schemes other than `http`, `https` (or the empty scheme) + might be - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - cosmos.authz.v1beta1.Grant: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - protocol buffer message. This string must contain at least + URL that describes the type of the serialized message. - one "/" character. The last segment of the URL's path must - represent - the fully qualified name of the type (as in + Protobuf library provides support to pack/unpack Any values + in the form - `path/google.protobuf.Duration`). The name should be in a - canonical form + of utility functions or additional generated methods of the + Any type. - (e.g., leading "." is not accepted). + Example 1: Pack and unpack a message in C++. - In practice, teams usually precompile into the binary all types - that they + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - expect it to use in the context of Any. However, for URLs which - use the + Example 2: Pack and unpack a message in Java. - scheme `http`, `https`, or no scheme, one can optionally set up a - type + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - server that maps type URLs to message definitions as follows: + Example 3: Pack and unpack a message in Python. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - * If no scheme is provided, `https` is assumed. + Example 4: Pack and unpack a message in Go - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Note: this functionality is not currently available in the - official + The pack methods provided by protobuf library will by + default use - protobuf release, and it is not used for type URLs beginning with + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - type.googleapis.com. + methods only use the fully qualified type name after the + last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Schemes other than `http`, `https` (or the empty scheme) might be + name "y.z". - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - URL that describes the type of the serialized message. + JSON - Protobuf library provides support to pack/unpack Any values in the - form + ==== - of utility functions or additional generated methods of the Any type. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with + an - Example 1: Pack and unpack a message in C++. + additional field `@type` which contains the type URL. + Example: - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - Example 2: Pack and unpack a message in Java. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + If the embedded message type is well-known and has a custom + JSON - Example 3: Pack and unpack a message in Python. + representation, that representation will be embedded adding + a field - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + `value` which holds the custom JSON in addition to the + `@type` - Example 4: Pack and unpack a message in Go + field. Example (for message [google.protobuf.Duration][]): - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: code + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftmngr/nft_schema_by_contract: + get: + summary: Queries a list of NFTSchemaByContract items. + operationId: ThesixnetworkSixnftNftmngrNFTSchemaByContractAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nFTSchemaByContract: + type: array + items: + type: object + properties: + originContractAddress: + type: string + schemaCodes: + 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 - The pack methods provided by protobuf library will by default use + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - 'type.googleapis.com/full.type.name' as the type URL and the unpack + corresponding request message has used PageRequest. - methods only use the fully qualified type name after the last '/' + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - in the type URL, for example "foo.bar.com/x/y.z" will yield type + protocol buffer message. This string must contain at + least - name "y.z". + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in + `path/google.protobuf.Duration`). The name should be in + a canonical form - JSON + (e.g., leading "." is not accepted). - ==== - The JSON representation of an `Any` value uses the regular + In practice, teams usually precompile into the binary + all types that they - representation of the deserialized, embedded message, with an + expect it to use in the context of Any. However, for + URLs which use the - additional field `@type` which contains the type URL. Example: + scheme `http`, `https`, or no scheme, one can optionally + set up a type - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + server that maps type URLs to message definitions as + follows: - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom JSON + * If no scheme is provided, `https` is assumed. - representation, that representation will be embedded adding a field + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - `value` which holds the custom JSON in addition to the `@type` + Note: this functionality is not currently available in + the official - field. Example (for message [google.protobuf.Duration][]): + protobuf release, and it is not used for type URLs + beginning with - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: |- - Grant gives permissions to execute - the provide method with expiration time. - cosmos.authz.v1beta1.GrantAuthorization: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + type.googleapis.com. - protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + Schemes other than `http`, `https` (or the empty scheme) + might be - the fully qualified name of the type (as in + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - `path/google.protobuf.Duration`). The name should be in a - canonical form + URL that describes the type of the serialized message. - (e.g., leading "." is not accepted). + Protobuf library provides support to pack/unpack Any values + in the form - In practice, teams usually precompile into the binary all types - that they + of utility functions or additional generated methods of the + Any type. - expect it to use in the context of Any. However, for URLs which - use the - scheme `http`, `https`, or no scheme, one can optionally set up a - type + Example 1: Pack and unpack a message in C++. - server that maps type URLs to message definitions as follows: + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - * If no scheme is provided, `https` is assumed. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + Example 3: Pack and unpack a message in Python. - Note: this functionality is not currently available in the - official + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - protobuf release, and it is not used for type URLs beginning with + Example 4: Pack and unpack a message in Go - type.googleapis.com. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + The pack methods provided by protobuf library will by + default use - Schemes other than `http`, `https` (or the empty scheme) might be + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a + methods only use the fully qualified type name after the + last '/' - URL that describes the type of the serialized message. + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + name "y.z". - Protobuf library provides support to pack/unpack Any values in the - form - of utility functions or additional generated methods of the Any type. + JSON - Example 1: Pack and unpack a message in C++. + ==== - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + The JSON representation of an `Any` value uses the regular - Example 2: Pack and unpack a message in Java. + representation of the deserialized, embedded message, with + an - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + additional field `@type` which contains the type URL. + Example: - Example 3: Pack and unpack a message in Python. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - Example 4: Pack and unpack a message in Go + If the embedded message type is well-known and has a custom + JSON - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + representation, that representation will be embedded adding + a field - The pack methods provided by protobuf library will by default use + `value` which holds the custom JSON in addition to the + `@type` - 'type.googleapis.com/full.type.name' as the type URL and the unpack + field. Example (for message [google.protobuf.Duration][]): - methods only use the fully qualified type name after the last '/' + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + 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. - in the type URL, for example "foo.bar.com/x/y.z" will yield type + It is less efficient than using key. Only one of offset or key + should - name "y.z". + 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. - JSON + 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. + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftmngr/nft_schema_by_contract/{originContractAddress}': + get: + summary: Queries a NFTSchemaByContract by index. + operationId: ThesixnetworkSixnftNftmngrNFTSchemaByContract + responses: + '200': + description: A successful response. + schema: + type: object + properties: + nFTSchemaByContract: + type: object + properties: + originContractAddress: + type: string + schemaCodes: + type: array + items: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - The JSON representation of an `Any` value uses the regular + protocol buffer message. This string must contain at + least - representation of the deserialized, embedded message, with an + one "/" character. The last segment of the URL's path + must represent - additional field `@type` which contains the type URL. Example: + the fully qualified name of the type (as in - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + `path/google.protobuf.Duration`). The name should be in + a canonical form - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + (e.g., leading "." is not accepted). - If the embedded message type is well-known and has a custom JSON - representation, that representation will be embedded adding a field + In practice, teams usually precompile into the binary + all types that they - `value` which holds the custom JSON in addition to the `@type` + expect it to use in the context of Any. However, for + URLs which use the - field. Example (for message [google.protobuf.Duration][]): + scheme `http`, `https`, or no scheme, one can optionally + set up a type - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the grantee - and granter. + server that maps type URLs to message definitions as + follows: - It is used in genesis.proto and query.proto - cosmos.authz.v1beta1.MsgExecResponse: - type: object - properties: - results: - type: array - items: - type: string - format: byte - description: MsgExecResponse defines the Msg/MsgExecResponse response type. - cosmos.authz.v1beta1.MsgGrantResponse: - type: object - description: MsgGrantResponse defines the Msg/MsgGrant response type. - cosmos.authz.v1beta1.MsgRevokeResponse: - type: object - description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. - cosmos.authz.v1beta1.QueryGranteeGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - protocol buffer message. This string must contain at least + * If no scheme is provided, `https` is assumed. - one "/" character. The last segment of the URL's path must - represent + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - the fully qualified name of the type (as in + Note: this functionality is not currently available in + the official - `path/google.protobuf.Duration`). The name should be in a - canonical form + protobuf release, and it is not used for type URLs + beginning with - (e.g., leading "." is not accepted). + type.googleapis.com. - In practice, teams usually precompile into the binary all - types that they + Schemes other than `http`, `https` (or the empty scheme) + might be - expect it to use in the context of Any. However, for URLs - which use the + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - scheme `http`, `https`, or no scheme, one can optionally set - up a type + URL that describes the type of the serialized message. - server that maps type URLs to message definitions as - follows: + Protobuf library provides support to pack/unpack Any values + in the form - * If no scheme is provided, `https` is assumed. + of utility functions or additional generated methods of the + Any type. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + Example 1: Pack and unpack a message in C++. - protobuf release, and it is not used for type URLs beginning - with + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - type.googleapis.com. + Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Schemes other than `http`, `https` (or the empty scheme) - might be + Example 3: Pack and unpack a message in Python. - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - URL that describes the type of the serialized message. + Example 4: Pack and unpack a message in Go + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Protobuf library provides support to pack/unpack Any values in - the form + The pack methods provided by protobuf library will by + default use - of utility functions or additional generated methods of the Any - type. + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + methods only use the fully qualified type name after the + last '/' - Example 1: Pack and unpack a message in C++. + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + name "y.z". - Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. + JSON - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + ==== - Example 4: Pack and unpack a message in Go + The JSON representation of an `Any` value uses the regular - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + representation of the deserialized, embedded message, with + an - The pack methods provided by protobuf library will by default - use + additional field `@type` which contains the type URL. + Example: - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - methods only use the fully qualified type name after the last - '/' + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - in the type URL, for example "foo.bar.com/x/y.z" will yield type + If the embedded message type is well-known and has a custom + JSON - name "y.z". + 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][]): - JSON + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: originContractAddress + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftmngr/organization: + get: + summary: Queries a list of Organization items. + operationId: ThesixnetworkSixnftNftmngrOrganizationAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + organization: + type: array + items: + type: object + properties: + name: + 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 - The JSON representation of an `Any` value uses the regular + corresponding request message has used PageRequest. - representation of the deserialized, embedded message, with an + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - additional field `@type` which contains the type URL. Example: + protocol buffer message. This string must contain at + least - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + one "/" character. The last segment of the URL's path + must represent - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + the fully qualified name of the type (as in - If the embedded message type is well-known and has a custom JSON + `path/google.protobuf.Duration`). The name should be in + a canonical form - representation, that representation will be embedded adding a - field + (e.g., leading "." is not accepted). - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + In practice, teams usually precompile into the binary + all types that they - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. + expect it to use in the context of Any. However, for + URLs which use the - It is used in genesis.proto and query.proto - description: grants is a list of grants granted to the grantee. - pagination: - description: pagination defines an pagination for the response. - 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 + scheme `http`, `https`, or no scheme, one can optionally + set up a type - was set, its value is undefined otherwise - description: >- - QueryGranteeGrantsResponse is the response type for the - Query/GranteeGrants RPC method. - cosmos.authz.v1beta1.QueryGranterGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - granter: - type: string - grantee: - type: string - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + server that maps type URLs to message definitions as + follows: - protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + * If no scheme is provided, `https` is assumed. - the fully qualified name of the type (as in + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - `path/google.protobuf.Duration`). The name should be in a - canonical form + Note: this functionality is not currently available in + the official - (e.g., leading "." is not accepted). + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - In practice, teams usually precompile into the binary all - types that they - expect it to use in the context of Any. However, for URLs - which use the + Schemes other than `http`, `https` (or the empty scheme) + might be - scheme `http`, `https`, or no scheme, one can optionally set - up a type + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - server that maps type URLs to message definitions as - follows: + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official + Protobuf library provides support to pack/unpack Any values + in the form - protobuf release, and it is not used for type URLs beginning - with + of utility functions or additional generated methods of the + Any type. - type.googleapis.com. + Example 1: Pack and unpack a message in C++. - Schemes other than `http`, `https` (or the empty scheme) - might be + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + Example 2: Pack and unpack a message in Java. - URL that describes the type of the serialized message. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + Example 3: Pack and unpack a message in Python. - Protobuf library provides support to pack/unpack Any values in - the form + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - of utility functions or additional generated methods of the Any - type. + Example 4: Pack and unpack a message in Go + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Example 1: Pack and unpack a message in C++. + The pack methods provided by protobuf library will by + default use - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 2: Pack and unpack a message in Java. + methods only use the fully qualified type name after the + last '/' - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Example 3: Pack and unpack a message in Python. + name "y.z". - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + JSON - The pack methods provided by protobuf library will by default - use + ==== - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + The JSON representation of an `Any` value uses the regular - methods only use the fully qualified type name after the last - '/' + representation of the deserialized, embedded message, with + an - in the type URL, for example "foo.bar.com/x/y.z" will yield type + additional field `@type` which contains the type URL. + Example: - name "y.z". + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + If the embedded message type is well-known and has a custom + JSON - JSON + representation, that representation will be embedded adding + a field - ==== + `value` which holds the custom JSON in addition to the + `@type` - The JSON representation of an `Any` value uses the regular + field. Example (for message [google.protobuf.Duration][]): - representation of the deserialized, embedded message, with an + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + 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. - additional field `@type` which contains the type URL. Example: + It is less efficient than using key. Only one of offset or key + should - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + 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 - If the embedded message type is well-known and has a custom JSON + a count of the total number of items available for pagination in + UIs. - representation, that representation will be embedded adding a - field + count_total is only respected when offset is used. It is ignored + when key - `value` which holds the custom JSON in addition to the `@type` + 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. + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftmngr/organization/{name}': + get: + summary: Queries a Organization by index. + operationId: ThesixnetworkSixnftNftmngrOrganization + responses: + '200': + description: A successful response. + schema: + type: object + properties: + organization: + type: object + properties: + name: + type: string + owner: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - field. Example (for message [google.protobuf.Duration][]): + protocol buffer message. This string must contain at + least - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: 'Since: cosmos-sdk 0.45.2' - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. + one "/" character. The last segment of the URL's path + must represent - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - 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 + the fully qualified name of the type (as in - was set, its value is undefined otherwise - description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. - cosmos.authz.v1beta1.QueryGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - authorization: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + `path/google.protobuf.Duration`). The name should be in + a canonical form - protocol buffer message. This string must contain at least + (e.g., leading "." is not accepted). - one "/" character. The last segment of the URL's path must - represent - the fully qualified name of the type (as in + In practice, teams usually precompile into the binary + all types that they - `path/google.protobuf.Duration`). The name should be in a - canonical form + expect it to use in the context of Any. However, for + URLs which use the - (e.g., leading "." is not accepted). + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - In practice, teams usually precompile into the binary all - types that they - expect it to use in the context of Any. However, for URLs - which use the + * If no scheme is provided, `https` is assumed. - scheme `http`, `https`, or no scheme, one can optionally set - up a type + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - server that maps type URLs to message definitions as - follows: + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - * If no scheme is provided, `https` is assumed. + type.googleapis.com. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - Note: this functionality is not currently available in the - official + Schemes other than `http`, `https` (or the empty scheme) + might be - protobuf release, and it is not used for type URLs beginning - with + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - type.googleapis.com. + URL that describes the type of the serialized message. - Schemes other than `http`, `https` (or the empty scheme) - might be + Protobuf library provides support to pack/unpack Any values + in the form - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + of utility functions or additional generated methods of the + Any type. - URL that describes the type of the serialized message. + Example 1: Pack and unpack a message in C++. - Protobuf library provides support to pack/unpack Any values in - the form + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - of utility functions or additional generated methods of the Any - type. + Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 1: Pack and unpack a message in C++. + Example 3: Pack and unpack a message in Python. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 2: Pack and unpack a message in Java. + Example 4: Pack and unpack a message in Go - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - Example 3: Pack and unpack a message in Python. + The pack methods provided by protobuf library will by + default use - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 4: Pack and unpack a message in Go + methods only use the fully qualified type name after the + last '/' - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - The pack methods provided by protobuf library will by default - use + name "y.z". - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - methods only use the fully qualified type name after the last - '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + JSON - name "y.z". + ==== + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with + an - JSON + additional field `@type` which contains the type URL. + Example: - ==== + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - The JSON representation of an `Any` value uses the regular + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - representation of the deserialized, embedded message, with an + If the embedded message type is well-known and has a custom + JSON - additional field `@type` which contains the type URL. Example: + representation, that representation will be embedded adding + a field - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + `value` which holds the custom JSON in addition to the + `@type` - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + field. Example (for message [google.protobuf.Duration][]): - If the embedded message type is well-known and has a custom JSON + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: name + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftmngr/params: + get: + summary: Parameters queries the parameters of the module. + operationId: ThesixnetworkSixnftNftmngrParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - representation, that representation will be embedded adding a - field + protocol buffer message. This string must contain at + least - `value` which holds the custom JSON in addition to the `@type` + one "/" character. The last segment of the URL's path + must represent - field. Example (for message [google.protobuf.Duration][]): + the fully qualified name of the type (as in - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - expiration: - type: string - format: date-time - description: |- - Grant gives permissions to execute - the provide method with expiration time. - description: authorizations is a list of grants granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - 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 + `path/google.protobuf.Duration`). The name should be in + a canonical form - was set, its value is undefined otherwise - description: >- - QueryGrantsResponse is the response type for the Query/Authorizations RPC - method. - cosmos.bank.v1beta1.DenomUnit: - type: object - properties: - denom: - type: string - description: denom represents the string name of the given denom unit (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must + (e.g., leading "." is not accepted). - raise the base_denom to in order to equal the given DenomUnit's denom - 1 denom = 1^exponent base_denom + In practice, teams usually precompile into the binary + all types that they - (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' - with + expect it to use in the context of Any. However, for + URLs which use the - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - cosmos.bank.v1beta1.Input: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + scheme `http`, `https`, or no scheme, one can optionally + set up a type - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Input models transaction input. - cosmos.bank.v1beta1.Metadata: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit (e.g - uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must + server that maps type URLs to message definitions as + follows: - raise the base_denom to in order to equal the given DenomUnit's - denom - 1 denom = 1^exponent base_denom + * If no scheme is provided, `https` is assumed. - (e.g. with a base_denom of uatom, one can create a DenomUnit of - 'atom' with + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with exponent - = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). This - can + Note: this functionality is not currently available in + the official - be the same as the display. + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - Since: cosmos-sdk 0.43 - description: |- - Metadata represents a struct that describes - a basic token. - cosmos.bank.v1beta1.MsgMultiSendResponse: - type: object - description: MsgMultiSendResponse defines the Msg/MultiSend response type. - cosmos.bank.v1beta1.MsgSendResponse: - type: object - description: MsgSendResponse defines the Msg/Send response type. - cosmos.bank.v1beta1.Output: - type: object - properties: - address: - type: string - coins: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Output models transaction outputs. - cosmos.bank.v1beta1.Params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is + Schemes other than `http`, `https` (or the empty scheme) + might be - sendable). - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - cosmos.bank.v1beta1.QueryAllBalancesResponse: - type: object - properties: - balances: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: balances is the balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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 + URL that describes the type of the serialized message. - was set, its value is undefined otherwise - description: >- - QueryAllBalancesResponse is the response type for the Query/AllBalances - RPC - method. - cosmos.bank.v1beta1.QueryBalanceResponse: - type: object - properties: - balance: - description: balance is the balance of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QueryBalanceResponse is the response type for the Query/Balance RPC - method. - cosmos.bank.v1beta1.QueryDenomMetadataResponse: - type: object - properties: - metadata: - description: >- - metadata describes and provides all the client information for the - requested token. - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must + Protobuf library provides support to pack/unpack Any values + in the form - raise the base_denom to in order to equal the given - DenomUnit's denom + of utility functions or additional generated methods of the + Any type. - 1 denom = 1^exponent base_denom - (e.g. with a base_denom of uatom, one can create a DenomUnit - of 'atom' with + Example 1: Pack and unpack a message in C++. - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: ATOM). - This can + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - be the same as the display. + Example 2: Pack and unpack a message in Java. + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Since: cosmos-sdk 0.43 - description: >- - QueryDenomMetadataResponse is the response type for the - Query/DenomMetadata RPC + Example 3: Pack and unpack a message in Python. - method. - cosmos.bank.v1beta1.QueryDenomsMetadataResponse: - type: object - properties: - metadatas: - type: array - items: - type: object - properties: - description: - type: string - denom_units: - type: array - items: - type: object - properties: - denom: - type: string - description: >- - denom represents the string name of the given denom unit - (e.g uatom). - exponent: - type: integer - format: int64 - description: >- - exponent represents power of 10 exponent that one must + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - raise the base_denom to in order to equal the given - DenomUnit's denom + Example 4: Pack and unpack a message in Go - 1 denom = 1^exponent base_denom + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - (e.g. with a base_denom of uatom, one can create a - DenomUnit of 'atom' with + The pack methods provided by protobuf library will by + default use - exponent = 6, thus: 1 atom = 10^6 uatom). - aliases: - type: array - items: - type: string - title: aliases is a list of string aliases for the given denom - description: |- - DenomUnit represents a struct that describes a given - denomination unit of the basic token. - title: denom_units represents the list of DenomUnit's for a given coin - base: - type: string - description: >- - base represents the base denom (should be the DenomUnit with - exponent = 0). - display: - type: string - description: |- - display indicates the suggested denom that should be - displayed in clients. - name: - type: string - description: 'Since: cosmos-sdk 0.43' - title: 'name defines the name of the token (eg: Cosmos Atom)' - symbol: - type: string - description: >- - symbol is the token symbol usually shown on exchanges (eg: - ATOM). This can + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - be the same as the display. + methods only use the fully qualified type name after the + last '/' + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Since: cosmos-sdk 0.43 - description: |- - Metadata represents a struct that describes - a basic token. - description: >- - metadata provides the client information for all the registered - tokens. - pagination: - description: pagination defines the pagination in the response. - 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: >- - QueryDenomsMetadataResponse is the response type for the - Query/DenomsMetadata RPC + name "y.z". - method. - cosmos.bank.v1beta1.QueryParamsResponse: - type: object - properties: - params: - type: object - properties: - send_enabled: - type: array - items: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: >- - SendEnabled maps coin denom to a send_enabled status (whether a - denom is - sendable). - default_send_enabled: - type: boolean - description: Params defines the parameters for the bank module. - description: >- - QueryParamsResponse defines the response type for querying x/bank - parameters. - cosmos.bank.v1beta1.QuerySpendableBalancesResponse: - type: object - properties: - balances: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: balances is the spendable balances of all the coins. - pagination: - description: pagination defines the pagination in the response. - 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 + JSON - was set, its value is undefined otherwise - description: >- - QuerySpendableBalancesResponse defines the gRPC response structure for - querying + ==== - an account's spendable balances. - cosmos.bank.v1beta1.QuerySupplyOfResponse: - type: object - properties: - amount: - description: amount is the supply of the coin. - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC - method. - cosmos.bank.v1beta1.QueryTotalSupplyResponse: - type: object - properties: - supply: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + The JSON representation of an `Any` value uses the regular - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - title: supply is the supply of the coins - pagination: - description: |- - pagination defines the pagination in the response. + representation of the deserialized, embedded message, with + an - Since: cosmos-sdk 0.43 - 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 + additional field `@type` which contains the type URL. + Example: - was set, its value is undefined otherwise - title: >- - QueryTotalSupplyResponse is the response type for the Query/TotalSupply - RPC + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - method - cosmos.bank.v1beta1.SendEnabled: - type: object - properties: - denom: - type: string - enabled: - type: boolean - description: |- - SendEnabled maps coin denom to a send_enabled status (whether a denom is - sendable). - cosmos.base.v1beta1.Coin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: - type: object - properties: - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, + If the embedded message type is well-known and has a custom + JSON - including all blockchain data structures and the rules of the - application's + representation, that representation will be embedded adding + a field - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + `value` which holds the custom JSON in addition to the + `@type` - NOTE: not all txs here are valid. We're just agreeing on the - order first. + field. Example (for message [google.protobuf.Duration][]): - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query + /thesixnetwork/sixnft/nftmngr/schema_attribute: + get: + summary: Queries a list of SchemaAttribute items. + operationId: ThesixnetworkSixnftNftmngrSchemaAttributeAll + responses: + '200': + description: A successful response. + schema: type: object properties: - evidence: + schemaAttribute: type: array items: type: object properties: - duplicate_vote_evidence: + nftSchemaCode: + type: string + name: + type: string + data_type: + type: string + current_value: type: object properties: - vote_a: + number_attribute_value: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: + value: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - vote_b: + format: uint64 + string_attribute_value: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: + value: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: + boolean_attribute_value: type: object properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + creator: + 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 - including all blockchain data structures - and the rules of the application's + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a Tendermint - block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: + 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: - height: - type: string - format: int64 - round: + code: type: integer format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: + message: + type: string + details: type: array items: type: object properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: + '@type': type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - description: >- - GetBlockByHeightResponse is the response type for the - Query/GetBlockByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: - type: object - properties: - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - including all blockchain data structures and the rules of the - application's + protocol buffer message. This string must contain at + least - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + one "/" character. The last segment of the URL's path + must represent - NOTE: not all txs here are valid. We're just agreeing on the - order first. + the fully qualified name of the type (as in - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. + `path/google.protobuf.Duration`). The name should be in + a canonical form - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + (e.g., leading "." is not accepted). - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + In practice, teams usually precompile into the binary + all types that they - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, + expect it to use in the context of Any. However, for + URLs which use the - including all blockchain data structures - and the rules of the application's + scheme `http`, `https`, or no scheme, one can optionally + set up a type - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: >- - commit from validators from the last - block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs - from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a Tendermint - block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - description: >- - GetLatestBlockResponse is the response type for the Query/GetLatestBlock - RPC method. - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: - type: object - properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + server that maps type URLs to message definitions as + follows: - protocol buffer message. This string must contain at least - one "/" character. The last segment of the URL's path must - represent + * If no scheme is provided, `https` is assumed. - the fully qualified name of the type (as in + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - `path/google.protobuf.Duration`). The name should be in a - canonical form + Note: this functionality is not currently available in + the official - (e.g., leading "." is not accepted). + protobuf release, and it is not used for type URLs + beginning with + type.googleapis.com. - In practice, teams usually precompile into the binary all - types that they - expect it to use in the context of Any. However, for URLs - which use the + Schemes other than `http`, `https` (or the empty scheme) + might be - scheme `http`, `https`, or no scheme, one can optionally set - up a type + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - server that maps type URLs to message definitions as - follows: + URL that describes the type of the serialized message. - * If no scheme is provided, `https` is assumed. + Protobuf library provides support to pack/unpack Any values + in the form - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + of utility functions or additional generated methods of the + Any type. - Note: this functionality is not currently available in the - official - protobuf release, and it is not used for type URLs beginning - with + Example 1: Pack and unpack a message in C++. - type.googleapis.com. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + Example 2: Pack and unpack a message in Java. - Schemes other than `http`, `https` (or the empty scheme) - might be + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + Example 3: Pack and unpack a message in Python. - URL that describes the type of the serialized message. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - Protobuf library provides support to pack/unpack Any values in - the form + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - of utility functions or additional generated methods of the Any - type. + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - Example 1: Pack and unpack a message in C++. + methods only use the fully qualified type name after the + last '/' - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - Example 2: Pack and unpack a message in Java. + name "y.z". - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + JSON - Example 4: Pack and unpack a message in Go + ==== - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with + an + additional field `@type` which contains the type URL. + Example: - JSON + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - ==== + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - The JSON representation of an `Any` value uses the regular + If the embedded message type is well-known and has a custom + JSON - representation of the deserialized, embedded message, with an + representation, that representation will be embedded adding + a field - additional field `@type` which contains the type URL. Example: + `value` which holds the custom JSON in addition to the + `@type` - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + 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. - If the embedded message type is well-known and has a custom JSON + It is less efficient than using key. Only one of offset or key + should - representation, that representation will be embedded adding a - field + 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. - `value` which holds the custom JSON in addition to the `@type` + 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 - field. Example (for message [google.protobuf.Duration][]): + a count of the total number of items available for pagination in + UIs. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. - 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 + count_total is only respected when offset is used. It is ignored + when key - was set, its value is undefined otherwise - description: >- - GetLatestValidatorSetResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: - type: object - properties: - default_node_info: - type: object - properties: - protocol_version: + 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. + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftmngr/schema_attribute/{nftSchemaCode}/{name}': + get: + summary: Queries a SchemaAttribute by index. + operationId: ThesixnetworkSixnftNftmngrSchemaAttribute + responses: + '200': + description: A successful response. + schema: type: object properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: + schemaAttribute: + type: object + properties: + nftSchemaCode: + type: string + name: + type: string + data_type: + type: string + current_value: + type: object + properties: + number_attribute_value: + type: object + properties: + value: + type: string + format: uint64 + string_attribute_value: + type: object + properties: + value: + type: string + boolean_attribute_value: + type: object + properties: + value: + type: boolean + float_attribute_value: + type: object + properties: + value: + type: number + format: double + creator: + type: string + default: + description: An unexpected error response. + schema: type: object properties: - tx_index: - type: string - rpc_address: + code: + type: integer + format: int32 + message: type: string - application_version: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: - type: array - items: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - description: >- - GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC - method. - cosmos.base.tendermint.v1beta1.GetSyncingResponse: - type: object - properties: - syncing: - type: boolean - description: >- - GetSyncingResponse is the response type for the Query/GetSyncing RPC - method. - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: - type: object - properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - protocol buffer message. This string must contain at least + protocol buffer message. This string must contain at + least - one "/" character. The last segment of the URL's path must - represent + one "/" character. The last segment of the URL's path + must represent - the fully qualified name of the type (as in + the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be in a - canonical form + `path/google.protobuf.Duration`). The name should be in + a canonical form - (e.g., leading "." is not accepted). + (e.g., leading "." is not accepted). - In practice, teams usually precompile into the binary all - types that they + In practice, teams usually precompile into the binary + all types that they - expect it to use in the context of Any. However, for URLs - which use the + expect it to use in the context of Any. However, for + URLs which use the - scheme `http`, `https`, or no scheme, one can optionally set - up a type + scheme `http`, `https`, or no scheme, one can optionally + set up a type - server that maps type URLs to message definitions as - follows: + server that maps type URLs to message definitions as + follows: - * If no scheme is provided, `https` is assumed. + * If no scheme is provided, `https` is assumed. - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - Note: this functionality is not currently available in the - official + Note: this functionality is not currently available in + the official - protobuf release, and it is not used for type URLs beginning - with + protobuf release, and it is not used for type URLs + beginning with - type.googleapis.com. + type.googleapis.com. - Schemes other than `http`, `https` (or the empty scheme) - might be + Schemes other than `http`, `https` (or the empty scheme) + might be - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - URL that describes the type of the serialized message. + URL that describes the type of the serialized message. - Protobuf library provides support to pack/unpack Any values in - the form + Protobuf library provides support to pack/unpack Any values + in the form - of utility functions or additional generated methods of the Any - type. + of utility functions or additional generated methods of the + Any type. - Example 1: Pack and unpack a message in C++. + Example 1: Pack and unpack a message in C++. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Example 2: Pack and unpack a message in Java. + Example 2: Pack and unpack a message in Java. - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - The pack methods provided by protobuf library will by default - use + The pack methods provided by protobuf library will by + default use - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - methods only use the fully qualified type name after the last - '/' + methods only use the fully qualified type name after the + last '/' - in the type URL, for example "foo.bar.com/x/y.z" will yield type + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - name "y.z". + name "y.z". - JSON + JSON - ==== + ==== - The JSON representation of an `Any` value uses the regular + The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with an + representation of the deserialized, embedded message, with + an - additional field `@type` which contains the type URL. Example: + additional field `@type` which contains the type URL. + Example: - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - If the embedded message type is well-known and has a custom JSON + If the embedded message type is well-known and has a custom + JSON - representation, that representation will be embedded adding a - field + 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" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. - 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 + `value` which holds the custom JSON in addition to the + `@type` - was set, its value is undefined otherwise - description: >- - GetValidatorSetByHeightResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.Module: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos.base.tendermint.v1beta1.Validator: - type: object - properties: - address: - type: string - pub_key: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + field. Example (for message [google.protobuf.Duration][]): - protocol buffer message. This string must contain at least + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + parameters: + - name: nftSchemaCode + in: path + required: true + type: string + - name: name + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftoracle/action_request: + get: + summary: Queries a list of ActionRequest items. + operationId: ThesixnetworkSixnftNftoracleActionRequestAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + ActionOracleRequest: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + nft_schema_code: + type: string + token_id: + type: string + action: + type: string + params: + type: array + items: + type: object + properties: + name: + type: string + value: + type: string + caller: + type: string + ref_id: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + origin_data: + type: object + properties: + image: + type: string + holder_address: + type: string + traits: + type: array + items: + type: object + properties: + trait_type: + type: string + value: + type: string + display_type: + type: string + max_value: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + execution_error_message: + 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 - one "/" character. The last segment of the URL's path must - represent + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - the fully qualified name of the type (as in + corresponding request message has used PageRequest. - `path/google.protobuf.Duration`). The name should be in a - canonical form + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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. - (e.g., leading "." is not accepted). + 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. - In practice, teams usually precompile into the binary all types - that they + 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 - expect it to use in the context of Any. However, for URLs which - use the + a count of the total number of items available for pagination in + UIs. - scheme `http`, `https`, or no scheme, one can optionally set up a - type + count_total is only respected when offset is used. It is ignored + when key - server that maps type URLs to message definitions as follows: + 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. - * If no scheme is provided, `https` is assumed. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftoracle/action_request/{id}': + get: + summary: Queries a ActionRequest by id. + operationId: ThesixnetworkSixnftNftoracleActionOracleRequest + responses: + '200': + description: A successful response. + schema: + type: object + properties: + ActionOracleRequest: + type: object + properties: + id: + type: string + format: uint64 + nft_schema_code: + type: string + token_id: + type: string + action: + type: string + params: + type: array + items: + type: object + properties: + name: + type: string + value: + type: string + caller: + type: string + ref_id: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + origin_data: + type: object + properties: + image: + type: string + holder_address: + type: string + traits: + type: array + items: + type: object + properties: + trait_type: + type: string + value: + type: string + display_type: + type: string + max_value: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + execution_error_message: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: id + in: path + required: true + type: string + format: uint64 + tags: + - Query + /thesixnetwork/sixnft/nftoracle/action_signer: + get: + summary: Queries a list of ActionSigner items. + operationId: ThesixnetworkSixnftNftoracleActionSignerAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + actionSigner: + type: array + items: + type: object + properties: + actor_address: + type: string + owner_address: + type: string + created_at: + type: string + format: date-time + expired_at: + type: string + format: date-time + creator: + type: string + creation_flow: + type: string + enum: + - ORACLE + - INTERNAL_OWNER + default: ORACLE + 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 - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - Note: this functionality is not currently available in the - official + corresponding request message has used PageRequest. - protobuf release, and it is not used for type URLs beginning with + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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. - type.googleapis.com. + 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. - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' + 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 - in the type URL, for example "foo.bar.com/x/y.z" will yield type + a count of the total number of items available for pagination in + UIs. - name "y.z". + 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. - JSON + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftoracle/action_signer/{actorAddress}/{ownerAddress}': + get: + summary: Queries a ActionSigner by index. + operationId: ThesixnetworkSixnftNftoracleActionSigner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + actionSigner: + type: object + properties: + actor_address: + type: string + owner_address: + type: string + created_at: + type: string + format: date-time + expired_at: + type: string + format: date-time + creator: + type: string + creation_flow: + type: string + enum: + - ORACLE + - INTERNAL_OWNER + default: ORACLE + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: actorAddress + in: path + required: true + type: string + - name: ownerAddress + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftoracle/action_signer_config: + get: + summary: Queries a list of ActionSignerConfig items. + operationId: ThesixnetworkSixnftNftoracleActionSignerConfigAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + actionSignerConfig: + type: array + items: + type: object + properties: + chain: + type: string + contractAddress: + type: string + creator: + 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 - The JSON representation of an `Any` value uses the regular + corresponding request message has used PageRequest. - representation of the deserialized, embedded message, with an + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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. - additional field `@type` which contains the type URL. Example: + It is less efficient than using key. Only one of offset or key + should - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + 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. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + 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 - If the embedded message type is well-known and has a custom JSON + a count of the total number of items available for pagination in + UIs. - representation, that representation will be embedded adding a field + count_total is only respected when offset is used. It is ignored + when key - `value` which holds the custom JSON in addition to the `@type` + 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. - field. Example (for message [google.protobuf.Duration][]): - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - cosmos.base.tendermint.v1beta1.VersionInfo: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: - type: array - items: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - tendermint.crypto.PublicKey: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Tendermint Validators - tendermint.p2p.DefaultNodeInfo: - type: object - properties: - protocol_version: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - tendermint.p2p.DefaultNodeInfoOther: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - tendermint.p2p.ProtocolVersion: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - tendermint.types.Block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + '/thesixnetwork/sixnft/nftoracle/action_signer_config/{chain}': + get: + summary: Queries a ActionSignerConfig by index. + operationId: ThesixnetworkSixnftNftoracleActionSignerConfig + responses: + '200': + description: A successful response. + schema: type: object properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: + actionSignerConfig: + type: object + properties: + chain: + type: string + contractAddress: + type: string + creator: + type: string + default: + description: An unexpected error response. + schema: type: object properties: - hash: + code: + type: integer + format: int32 + message: type: string - format: byte - part_set_header: + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: chain + in: path + required: true + type: string + tags: + - Query + '/thesixnetwork/sixnft/nftoracle/binded_signer/{ownerAddress}': + get: + summary: Queries a BindedSigner by index. + operationId: ThesixnetworkSixnftNftoracleBindedSigner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + bindedSigner: type: object properties: - total: - type: integer - format: int64 - hash: + ownerAddress: type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - vote_b: + signers: + type: array + items: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + actor_address: type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: + expired_at: type: string format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote - from validators for - - consensus. - total_voting_power: + actorCount: + type: string + format: uint64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': type: string - format: int64 - validator_power: + additionalProperties: {} + parameters: + - name: ownerAddress + in: path + required: true + type: string + tags: + - Query + /thesixnetwork/sixnft/nftoracle/collection_owner_request: + get: + summary: Queries a list of CollectionOwnerRequest items. + operationId: ThesixnetworkSixnftNftoracleCollectionOwnerRequestAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + CollectionOwnerRequest: + type: array + items: + type: object + properties: + id: type: string - format: int64 - timestamp: + format: uint64 + nftSchemaCode: + type: string + signer: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: type: string format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and - the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from - the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a Tendermint - block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + valid_until: type: string - format: int64 - byzantine_validators: + format: date-time + contract_info: type: array items: type: object properties: - address: - type: string - format: byte - pub_key: + contractOriginDataInfo: type: object properties: - ed25519: + chain: type: string - format: byte - secp256k1: + contract_address: type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: + contract_owner: + type: string + request_expire: + type: string + format: date-time + hash: type: string - format: int64 - total_voting_power: + format: byte + confirmers: + type: array + items: + type: string + expired_height: type: string format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: + 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: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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 + '/thesixnetwork/sixnft/nftoracle/collection_owner_request/{id}': + get: + summary: Queries a CollectionOwnerRequest by id. + operationId: ThesixnetworkSixnftNftoracleCollectionOwnerRequest + responses: + '200': + description: A successful response. + schema: + type: object + properties: + CollectionOwnerRequest: + type: object + properties: + id: + type: string + format: uint64 + nftSchemaCode: + type: string + signer: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + valid_until: + type: string + format: date-time + contract_info: + type: array + items: + type: object + properties: + contractOriginDataInfo: + type: object + properties: + chain: + type: string + contract_address: + type: string + contract_owner: + type: string + request_expire: + type: string + format: date-time + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: id + in: path + required: true + type: string + format: uint64 + tags: + - Query + /thesixnetwork/sixnft/nftoracle/mint_request: + get: + summary: Queries a list of MintRequest items. + operationId: ThesixnetworkSixnftNftoracleMintRequestAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + MintRequest: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + nft_schema_code: + type: string + token_id: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + title: NftOriginData nft_origin_data = 8; + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + origin_data: + type: object + properties: + image: + type: string + holder_address: + type: string + traits: + type: array + items: + type: object + properties: + trait_type: + type: string + value: + type: string + display_type: + type: string + max_value: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + 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: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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 + '/thesixnetwork/sixnft/nftoracle/mint_request/{id}': + get: + summary: Queries a MintRequest by id. + operationId: ThesixnetworkSixnftNftoracleMintRequest + responses: + '200': + description: A successful response. + schema: + type: object + properties: + MintRequest: + type: object + properties: + id: + type: string + format: uint64 + nft_schema_code: + type: string + token_id: + type: string + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + title: NftOriginData nft_origin_data = 8; + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + origin_data: + type: object + properties: + image: + type: string + holder_address: + type: string + traits: + type: array + items: + type: object + properties: + trait_type: + type: string + value: + type: string + display_type: + type: string + max_value: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: id + in: path + required: true + type: string + format: uint64 + tags: + - Query + /thesixnetwork/sixnft/nftoracle/oracle_config: + get: + summary: Queries a OracleConfig by index. + operationId: ThesixnetworkSixnftNftoracleOracleConfig + responses: + '200': + description: A successful response. + schema: + type: object + properties: + OracleConfig: + type: object + properties: + minimum_confirmation: + type: integer + format: int32 + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /thesixnetwork/sixnft/nftoracle/params: + get: + summary: Parameters queries the parameters of the module. + operationId: ThesixnetworkSixnftNftoracleParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + properties: + mint_request_active_duration: + type: string + action_request_active_duration: + type: string + verify_request_active_duration: + type: string + action_signer_active_duration: + type: string + sync_action_signer_active_duration: + type: string + description: >- + QueryParamsResponse is response type for the Query/Params RPC + method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + tags: + - Query + /thesixnetwork/sixnft/nftoracle/sync_action_signer: + get: + summary: Queries a list of SyncActionSigner items. + operationId: ThesixnetworkSixnftNftoracleSyncActionSignerAll + responses: + '200': + description: A successful response. + schema: + type: object + properties: + SyncActionSigner: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + chain: + type: string + actor_address: + type: string + owner_address: + type: string + caller: + type: string + title: will use as creator when message is success + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + contract_param: + type: object + properties: + chain: + type: string + owner_address: + type: string + title: get from smart contract + actor_address: + type: string + title: get from smart contract + expire_epoch: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + execution_error_message: + 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: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + 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 + '/thesixnetwork/sixnft/nftoracle/sync_action_signer/{id}': + get: + summary: Queries a SyncActionSigner by id. + operationId: ThesixnetworkSixnftNftoracleSyncActionSigner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + SyncActionSigner: + type: object + properties: + id: + type: string + format: uint64 + chain: + type: string + actor_address: + type: string + owner_address: + type: string + caller: + type: string + title: will use as creator when message is success + required_confirm: + type: string + format: uint64 + status: + type: string + enum: + - PENDING + - SUCCESS_WITH_CONSENSUS + - FAILED_WITHOUT_CONCENSUS + - EXPIRED + - FAILED_ON_EXECUTION + - FAILED_REJECT_BY_CONSENSUS + default: PENDING + current_confirm: + type: string + format: uint64 + confirmers: + type: array + items: + type: string + created_at: + type: string + format: date-time + valid_until: + type: string + format: date-time + data_hashes: + type: array + items: + type: object + properties: + contract_param: + type: object + properties: + chain: + type: string + owner_address: + type: string + title: get from smart contract + actor_address: + type: string + title: get from smart contract + expire_epoch: + type: string + hash: + type: string + format: byte + confirmers: + type: array + items: + type: string + expired_height: + type: string + format: int64 + execution_error_message: + type: string + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + additionalProperties: {} + parameters: + - name: id + in: path + required: true + type: string + format: uint64 + tags: + - Query +definitions: + cosmos.auth.v1beta1.Params: + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: Params defines the parameters for the auth module. + cosmos.auth.v1beta1.QueryAccountResponse: + type: object + properties: + account: + description: account defines the account of the corresponding address. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryAccountResponse is the response type for the Query/Account RPC + method. + cosmos.auth.v1beta1.QueryAccountsResponse: + type: object + properties: + accounts: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + title: accounts are the existing accounts + pagination: + description: pagination defines the pagination in the response. + 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: >- + QueryAccountsResponse is the response type for the Query/Accounts RPC + method. + + + Since: cosmos-sdk 0.43 + cosmos.auth.v1beta1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + max_memo_characters: + type: string + format: uint64 + tx_sig_limit: + type: string + format: uint64 + tx_size_cost_per_byte: + type: string + format: uint64 + sig_verify_cost_ed25519: + type: string + format: uint64 + sig_verify_cost_secp256k1: + type: string + format: uint64 + description: QueryParamsResponse is the response type for the Query/Params RPC method. + 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 + querying the next page most efficiently. Only one of offset or key + should be set. + offset: + type: string + format: uint64 + 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. + limit: + type: string + format: uint64 + 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. + count_total: + type: boolean + 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. + reverse: + type: boolean + description: >- + reverse is set to true if results are to be returned in the descending + order. + + + Since: cosmos-sdk 0.43 + description: |- + message SomeRequest { + Foo some_parameter = 1; + PageRequest pagination = 2; + } + title: |- + PageRequest is to be embedded in gRPC request messages for efficient + pagination. Ex: + cosmos.base.query.v1beta1.PageResponse: + 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; + } + google.protobuf.Any: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a canonical + form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types that + they + + expect it to use in the context of Any. However, for URLs which use + the + + scheme `http`, `https`, or no scheme, one can optionally set up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along with + a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + google.rpc.Status: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + cosmos.authz.v1beta1.Grant: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + expiration: + type: string + format: date-time + description: |- + Grant gives permissions to execute + the provide method with expiration time. + cosmos.authz.v1beta1.GrantAuthorization: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + expiration: + type: string + format: date-time + description: 'Since: cosmos-sdk 0.45.2' + title: >- + GrantAuthorization extends a grant with both the addresses of the grantee + and granter. + + It is used in genesis.proto and query.proto + cosmos.authz.v1beta1.MsgExecResponse: + type: object + properties: + results: + type: array + items: + type: string + format: byte + description: MsgExecResponse defines the Msg/MsgExecResponse response type. + cosmos.authz.v1beta1.MsgGrantResponse: + type: object + description: MsgGrantResponse defines the Msg/MsgGrant response type. + cosmos.authz.v1beta1.MsgRevokeResponse: + type: object + description: MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. + cosmos.authz.v1beta1.QueryGranteeGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + expiration: + type: string + format: date-time + description: 'Since: cosmos-sdk 0.45.2' + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted to the grantee. + pagination: + description: pagination defines an pagination for the response. + 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: >- + QueryGranteeGrantsResponse is the response type for the + Query/GranteeGrants RPC method. + cosmos.authz.v1beta1.QueryGranterGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + granter: + type: string + grantee: + type: string + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + expiration: + type: string + format: date-time + description: 'Since: cosmos-sdk 0.45.2' + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted by the granter. + pagination: + description: pagination defines an pagination for the response. + 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: >- + QueryGranterGrantsResponse is the response type for the + Query/GranterGrants RPC method. + cosmos.authz.v1beta1.QueryGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + authorization: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + expiration: + type: string + format: date-time + description: |- + Grant gives permissions to execute + the provide method with expiration time. + description: authorizations is a list of grants granted for grantee by granter. + pagination: + description: pagination defines an pagination for the response. + 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: >- + QueryGrantsResponse is the response type for the Query/Authorizations RPC + method. + cosmos.bank.v1beta1.DenomUnit: + type: object + properties: + denom: + type: string + description: denom represents the string name of the given denom unit (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given DenomUnit's denom + + 1 denom = 1^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' + with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + cosmos.bank.v1beta1.Input: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Input models transaction input. + cosmos.bank.v1beta1.Metadata: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit (e.g + uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given DenomUnit's + denom + + 1 denom = 1^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit of + 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with exponent + = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: ATOM). This + can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + description: |- + Metadata represents a struct that describes + a basic token. + cosmos.bank.v1beta1.MsgMultiSendResponse: + type: object + description: MsgMultiSendResponse defines the Msg/MultiSend response type. + cosmos.bank.v1beta1.MsgSendResponse: + type: object + description: MsgSendResponse defines the Msg/Send response type. + cosmos.bank.v1beta1.Output: + type: object + properties: + address: + type: string + coins: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Output models transaction outputs. + cosmos.bank.v1beta1.Params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is + + sendable). + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + cosmos.bank.v1beta1.QueryAllBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: balances is the balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + 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: >- + QueryAllBalancesResponse is the response type for the Query/AllBalances + RPC + + method. + cosmos.bank.v1beta1.QueryBalanceResponse: + type: object + properties: + balance: + description: balance is the balance of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QueryBalanceResponse is the response type for the Query/Balance RPC + method. + cosmos.bank.v1beta1.QueryDenomMetadataResponse: + type: object + properties: + metadata: + description: >- + metadata describes and provides all the client information for the + requested token. + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit + (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given + DenomUnit's denom + + 1 denom = 1^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a DenomUnit + of 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with + exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: ATOM). + This can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + description: >- + QueryDenomMetadataResponse is the response type for the + Query/DenomMetadata RPC + + method. + cosmos.bank.v1beta1.QueryDenomsMetadataResponse: + type: object + properties: + metadatas: + type: array + items: + type: object + properties: + description: + type: string + denom_units: + type: array + items: + type: object + properties: + denom: + type: string + description: >- + denom represents the string name of the given denom unit + (e.g uatom). + exponent: + type: integer + format: int64 + description: >- + exponent represents power of 10 exponent that one must + + raise the base_denom to in order to equal the given + DenomUnit's denom + + 1 denom = 1^exponent base_denom + + (e.g. with a base_denom of uatom, one can create a + DenomUnit of 'atom' with + + exponent = 6, thus: 1 atom = 10^6 uatom). + aliases: + type: array + items: + type: string + title: aliases is a list of string aliases for the given denom + description: |- + DenomUnit represents a struct that describes a given + denomination unit of the basic token. + title: denom_units represents the list of DenomUnit's for a given coin + base: + type: string + description: >- + base represents the base denom (should be the DenomUnit with + exponent = 0). + display: + type: string + description: |- + display indicates the suggested denom that should be + displayed in clients. + name: + type: string + description: 'Since: cosmos-sdk 0.43' + title: 'name defines the name of the token (eg: Cosmos Atom)' + symbol: + type: string + description: >- + symbol is the token symbol usually shown on exchanges (eg: + ATOM). This can + + be the same as the display. + + + Since: cosmos-sdk 0.43 + description: |- + Metadata represents a struct that describes + a basic token. + description: >- + metadata provides the client information for all the registered + tokens. + pagination: + description: pagination defines the pagination in the response. + 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: >- + QueryDenomsMetadataResponse is the response type for the + Query/DenomsMetadata RPC + + method. + cosmos.bank.v1beta1.QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + send_enabled: + type: array + items: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: >- + SendEnabled maps coin denom to a send_enabled status (whether a + denom is + + sendable). + default_send_enabled: + type: boolean + description: Params defines the parameters for the bank module. + description: >- + QueryParamsResponse defines the response type for querying x/bank + parameters. + cosmos.bank.v1beta1.QuerySpendableBalancesResponse: + type: object + properties: + balances: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: balances is the spendable balances of all the coins. + pagination: + description: pagination defines the pagination in the response. + 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: >- + QuerySpendableBalancesResponse defines the gRPC response structure for + querying + + an account's spendable balances. + cosmos.bank.v1beta1.QuerySupplyOfResponse: + type: object + properties: + amount: + description: amount is the supply of the coin. + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC + method. + cosmos.bank.v1beta1.QueryTotalSupplyResponse: + type: object + properties: + supply: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + title: supply is the supply of the coins + pagination: + description: |- + pagination defines the pagination in the response. + + Since: cosmos-sdk 0.43 + 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 + title: >- + QueryTotalSupplyResponse is the response type for the Query/TotalSupply + RPC + + method + cosmos.bank.v1beta1.SendEnabled: + type: object + properties: + denom: + type: string + enabled: + type: boolean + description: |- + SendEnabled maps coin denom to a send_enabled status (whether a denom is + sendable). + cosmos.base.v1beta1.Coin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a Tendermint + block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + description: >- + GetBlockByHeightResponse is the response type for the + Query/GetBlockByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a Tendermint + block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + description: >- + GetLatestBlockResponse is the response type for the Query/GetLatestBlock + RPC method. + cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. + 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: >- + GetLatestValidatorSetResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: + type: object + properties: + default_node_info: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + application_version: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + title: 'Since: cosmos-sdk 0.43' + description: VersionInfo is the type for the GetNodeInfoResponse message. + description: >- + GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC + method. + cosmos.base.tendermint.v1beta1.GetSyncingResponse: + type: object + properties: + syncing: + type: boolean + description: >- + GetSyncingResponse is the response type for the Query/GetSyncing RPC + method. + cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message + along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. + 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: >- + GetValidatorSetByHeightResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.Module: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos.base.tendermint.v1beta1.Validator: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + cosmos.base.tendermint.v1beta1.VersionInfo: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + title: 'Since: cosmos-sdk 0.43' + description: VersionInfo is the type for the GetNodeInfoResponse message. + tendermint.crypto.PublicKey: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: PublicKey defines the keys available for use with Tendermint Validators + tendermint.p2p.DefaultNodeInfo: + type: object + properties: + protocol_version: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + default_node_id: + type: string + listen_addr: + type: string + network: + type: string + version: + type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + tendermint.p2p.DefaultNodeInfoOther: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + tendermint.p2p.ProtocolVersion: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + tendermint.types.Block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote + from validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and + the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from + the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a Tendermint + block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for + use with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + tendermint.types.BlockID: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + tendermint.types.BlockIDFlag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + tendermint.types.Commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + tendermint.types.CommitSig: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + tendermint.types.Data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the order + first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + tendermint.types.DuplicateVoteEvidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from validators + for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from validators + for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + tendermint.types.Evidence: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, + + including all blockchain data structures and the rules + of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + tendermint.types.EvidenceList: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote represents a prevote, precommit, or commit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed + two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and the + rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a Tendermint block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use + with Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + tendermint.types.Header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + tendermint.types.LightBlock: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + tendermint.types.LightClientAttackEvidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a + block in the blockchain, + + including all blockchain data structures and the rules of + the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the previous + block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: >- + BlockIdFlag indicates which BlcokID the signature is + for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a + set of validators. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with + Tendermint Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + tendermint.types.PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + tendermint.types.SignedHeader: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + title: BlockIdFlag indicates which BlcokID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + tendermint.types.SignedMsgType: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + tendermint.types.Validator: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + tendermint.types.ValidatorSet: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + title: >- + PublicKey defines the keys available for use with Tendermint + Validators + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + total_voting_power: + type: string + format: int64 + tendermint.types.Vote: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_PREVOTE: Votes + - SIGNED_MSG_TYPE_PROPOSAL: Proposals + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + title: BlockID + description: zero if vote is nil. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: |- + Vote represents a prevote, precommit, or commit vote from validators for + consensus. + tendermint.version.Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: + type: object + description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. + cosmos.base.v1beta1.DecCoin: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + cosmos.distribution.v1beta1.DelegationDelegatorReward: + type: object + properties: + validator_address: + type: string + reward: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: |- + DelegationDelegatorReward represents the properties + of a delegator's delegation reward. + cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: + type: object + description: >- + MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response + type. + cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: + type: object + description: >- + MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response + type. + cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: + type: object + description: >- + MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward + response type. + cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: + type: object + description: >- + MsgWithdrawValidatorCommissionResponse defines the + Msg/WithdrawValidatorCommission response type. + cosmos.distribution.v1beta1.Params: + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean + description: Params defines the set of params for the distribution module. + cosmos.distribution.v1beta1.QueryCommunityPoolResponse: + type: object + properties: + pool: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: pool defines community pool's coins. + description: >- + QueryCommunityPoolResponse is the response type for the + Query/CommunityPool + + RPC method. + cosmos.distribution.v1beta1.QueryDelegationRewardsResponse: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: rewards defines the rewards accrued by a delegation. + description: |- + QueryDelegationRewardsResponse is the response type for the + Query/DelegationRewards RPC method. + cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + validator_address: + type: string + reward: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + description: |- + DelegationDelegatorReward represents the properties + of a delegator's delegation reward. + description: rewards defines all the rewards accrued by a delegator. + total: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: total defines the sum of all the rewards. + description: |- + QueryDelegationTotalRewardsResponse is the response type for the + Query/DelegationTotalRewards RPC method. + cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse: + type: object + properties: + validators: + type: array + items: + type: string + description: validators defines the validators a delegator is delegating for. + description: |- + QueryDelegatorValidatorsResponse is the response type for the + Query/DelegatorValidators RPC method. + cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse: + type: object + properties: + withdraw_address: + type: string + description: withdraw_address defines the delegator address to query for. + description: |- + QueryDelegatorWithdrawAddressResponse is the response type for the + Query/DelegatorWithdrawAddress RPC method. + cosmos.distribution.v1beta1.QueryParamsResponse: + type: object + properties: + params: + description: params defines the parameters of the module. + type: object + properties: + community_tax: + type: string + base_proposer_reward: + type: string + bonus_proposer_reward: + type: string + withdraw_addr_enabled: + type: boolean + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.distribution.v1beta1.QueryValidatorCommissionResponse: + type: object + properties: + commission: + description: commission defines the commision the validator received. + type: object + properties: + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + title: |- + QueryValidatorCommissionResponse is the response type for the + Query/ValidatorCommission RPC method + cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse: + type: object + properties: + rewards: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + DecCoin defines a token with a denomination and a decimal + amount. + + + NOTE: The amount field is an Dec which implements the custom + method + + signatures required by gogoproto. + description: >- + ValidatorOutstandingRewards represents outstanding (un-withdrawn) + rewards + + for a validator inexpensive to track, allows simple sanity checks. + description: |- + QueryValidatorOutstandingRewardsResponse is the response type for the + Query/ValidatorOutstandingRewards RPC method. + cosmos.distribution.v1beta1.QueryValidatorSlashesResponse: + type: object + properties: + slashes: + type: array + items: + type: object + properties: + validator_period: + type: string + format: uint64 + fraction: + type: string + description: |- + ValidatorSlashEvent represents a validator slash event. + Height is implicit within the store key. + This is needed to calculate appropriate amount of staking tokens + for delegations which are withdrawn after a slash has occurred. + description: slashes defines the slashes the validator received. + pagination: + description: pagination defines the pagination in the response. + 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: |- + QueryValidatorSlashesResponse is the response type for the + Query/ValidatorSlashes RPC method. + cosmos.distribution.v1beta1.ValidatorAccumulatedCommission: + type: object + properties: + commission: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: |- + ValidatorAccumulatedCommission represents accumulated commission + for a validator kept as a running counter, can be withdrawn at any time. + cosmos.distribution.v1beta1.ValidatorOutstandingRewards: + type: object + properties: + rewards: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + DecCoin defines a token with a denomination and a decimal amount. + + NOTE: The amount field is an Dec which implements the custom method + signatures required by gogoproto. + description: |- + ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards + for a validator inexpensive to track, allows simple sanity checks. + cosmos.distribution.v1beta1.ValidatorSlashEvent: + type: object + properties: + validator_period: + type: string + format: uint64 + fraction: + type: string + description: |- + ValidatorSlashEvent represents a validator slash event. + Height is implicit within the store key. + This is needed to calculate appropriate amount of staking tokens + for delegations which are withdrawn after a slash has occurred. + cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: + type: object + properties: + hash: + type: string + format: byte + description: hash defines the hash of the evidence. + description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. + cosmos.evidence.v1beta1.QueryAllEvidenceResponse: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up + a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + description: evidence returns all evidences. + pagination: + description: pagination defines the pagination in the response. + 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: >- + QueryAllEvidenceResponse is the response type for the Query/AllEvidence + RPC + + method. + cosmos.evidence.v1beta1.QueryEvidenceResponse: + type: object + properties: + evidence: + description: evidence returns the requested evidence. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + QueryEvidenceResponse is the response type for the Query/Evidence RPC + method. + cosmos.feegrant.v1beta1.Grant: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic and filtered fee allowance. type: object properties: - height: + '@type': type: string - format: int64 - round: - type: integer - format: int32 - block_id: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: + type: object + description: >- + MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response + type. + cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: + type: object + description: >- + MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse + response type. + cosmos.feegrant.v1beta1.QueryAllowanceResponse: + type: object + properties: + allowance: + description: allowance is a allowance granted for grantee by granter. + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of their + funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic and filtered fee allowance. type: object properties: - hash: + '@type': type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: >- + QueryAllowanceResponse is the response type for the Query/Allowance RPC + method. + cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: + type: object + properties: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic and filtered fee allowance. type: object properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: + '@type': type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.BlockID: - type: object - properties: - hash: - type: string - format: byte - part_set_header: + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: allowances that have been issued by the granter. + pagination: + description: pagination defines an pagination for the response. type: object properties: - total: - type: integer - format: int64 - hash: + next_key: type: string format: byte - title: PartsetHeader - title: BlockID - tendermint.types.BlockIDFlag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - tendermint.types.Commit: + 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: >- + QueryAllowancesByGranterResponse is the response type for the + Query/AllowancesByGranter RPC method. + cosmos.feegrant.v1beta1.QueryAllowancesResponse: type: object properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: + allowances: + type: array + items: + type: object + properties: + granter: + type: string + description: >- + granter is the address of the user granting an allowance of + their funds. + grantee: + type: string + description: >- + grantee is the address of the user being granted an allowance of + another user's funds. + allowance: + description: allowance can be any of basic and filtered fee allowance. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + title: Grant is stored in the KVStore to record a grant with full context + description: allowances are allowance's granted for grantee by granter. + pagination: + description: pagination defines an pagination for the response. type: object properties: - hash: + next_key: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: + 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: >- + QueryAllowancesResponse is the response type for the Query/Allowances RPC + method. + cosmos.gov.v1beta1.Deposit: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: |- + Deposit defines an amount deposited by an account address to an active + proposal. + cosmos.gov.v1beta1.DepositParams: + type: object + properties: + min_deposit: type: array items: type: object properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: + denom: type: string - format: date-time - signature: + amount: type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.CommitSig: + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: + type: string + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 + months. + description: DepositParams defines the params for deposits on governance proposals. + cosmos.gov.v1beta1.MsgDepositResponse: + type: object + description: MsgDepositResponse defines the Msg/Deposit response type. + cosmos.gov.v1beta1.MsgSubmitProposalResponse: type: object properties: - block_id_flag: + proposal_id: type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: + format: uint64 + description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. + cosmos.gov.v1beta1.MsgVoteResponse: + type: object + description: MsgVoteResponse defines the Msg/Vote response type. + cosmos.gov.v1beta1.MsgVoteWeightedResponse: + type: object + description: |- + MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. + + Since: cosmos-sdk 0.43 + cosmos.gov.v1beta1.Proposal: + type: object + properties: + proposal_id: type: string - format: byte - timestamp: + format: uint64 + content: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer message along + with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + description: TallyResult defines a standard tally for a governance proposal. + submit_time: type: string format: date-time - signature: + deposit_end_time: type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - tendermint.types.Data: - type: object - properties: - txs: + format: date-time + total_deposit: type: array items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. - NOTE: not all txs here are valid. We're just agreeing on the order - first. + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + description: Proposal defines the core field members of a governance proposal. + cosmos.gov.v1beta1.ProposalStatus: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - tendermint.types.DuplicateVoteEvidence: + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + cosmos.gov.v1beta1.QueryDepositResponse: type: object properties: - vote_a: + deposit: + description: deposit defines the requested deposit. type: object properties: - type: + proposal_id: type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + format: uint64 + depositor: type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: + amount: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + QueryDepositResponse is the response type for the Query/Deposit RPC + method. + cosmos.gov.v1beta1.QueryDepositsResponse: + type: object + properties: + deposits: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + depositor: + type: string + amount: + type: array + items: type: object properties: - total: - type: integer - format: int64 - hash: + denom: type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + Deposit defines an amount deposited by an account address to an + active + + proposal. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: type: string format: byte - validator_index: - type: integer - format: int32 - signature: + title: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently + total: type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - consensus. - vote_b: + was set, its value is undefined otherwise + description: >- + QueryDepositsResponse is the response type for the Query/Deposits RPC + method. + cosmos.gov.v1beta1.QueryParamsResponse: + type: object + properties: + voting_params: + description: voting_params defines the parameters related to voting. type: object properties: - type: + voting_period: type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + description: Length of the voting period. + deposit_params: + description: deposit_params defines the parameters related to deposit. + type: object + properties: + min_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: Minimum deposit for a proposal to enter voting period. + max_deposit_period: type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: + description: >- + Maximum period for Atom holders to deposit on a proposal. Initial + value: 2 + months. + tally_params: + description: tally_params defines the parameters related to tally. + type: object + properties: + quorum: type: string - format: date-time - validator_address: + format: byte + description: >- + Minimum percentage of total stake needed to vote for a result to + be + considered valid. + threshold: type: string format: byte - validator_index: - type: integer - format: int32 - signature: + description: >- + Minimum proportion of Yes votes for proposal to pass. Default + value: 0.5. + veto_threshold: type: string format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - tendermint.types.Evidence: + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be + vetoed. Default value: 1/3. + description: QueryParamsResponse is the response type for the Query/Params RPC method. + cosmos.gov.v1beta1.QueryProposalResponse: type: object properties: - duplicate_vote_evidence: + proposal: type: object properties: - vote_a: + proposal_id: + type: string + format: uint64 + content: type: object properties: - type: + '@type': type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + protocol buffer message. This string must contain at least - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + one "/" character. The last segment of the URL's path must + represent - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might + be + + used with implementation specific semantics. + additionalProperties: {} description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + `Any` contains an arbitrary serialized protocol buffer message + along with a - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, + URL that describes the type of the serialized message. - including all blockchain data structures and the rules - of the application's - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + Protobuf library provides support to pack/unpack Any values in the + form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + status: type: string - format: int64 - byzantine_validators: + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + final_tally_result: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + description: TallyResult defines a standard tally for a governance proposal. + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: type: array items: type: object properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: + denom: type: string - format: int64 - proposer_priority: + amount: type: string - format: int64 - total_voting_power: + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + voting_start_time: type: string - format: int64 - timestamp: + format: date-time + voting_end_time: type: string format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.EvidenceList: + description: Proposal defines the core field members of a governance proposal. + description: >- + QueryProposalResponse is the response type for the Query/Proposal RPC + method. + cosmos.gov.v1beta1.QueryProposalsResponse: type: object properties: - evidence: + proposals: type: array items: type: object properties: - duplicate_vote_evidence: + proposal_id: + type: string + format: uint64 + content: type: object properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte + '@type': + type: string description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + A URL/resource name that uniquely identifies the type of the + serialized - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. + protocol buffer message. This string must contain at least - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + one "/" character. The last segment of the URL's path must + represent - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} description: >- - DuplicateVoteEvidence contains evidence of a validator signed - two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, + `Any` contains an arbitrary serialized protocol buffer message + along with a - including all blockchain data structures and the - rules of the application's + URL that describes the type of the serialized message. - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the - previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: >- - Header defines the structure of a Tendermint block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + + Protobuf library provides support to pack/unpack Any values in + the form + + of utility functions or additional generated methods of the Any + type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by default + use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the last + '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield type + + name "y.z". + + + + JSON + + ==== + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with an + + additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "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" + } + status: + type: string + enum: + - PROPOSAL_STATUS_UNSPECIFIED + - PROPOSAL_STATUS_DEPOSIT_PERIOD + - PROPOSAL_STATUS_VOTING_PERIOD + - PROPOSAL_STATUS_PASSED + - PROPOSAL_STATUS_REJECTED + - PROPOSAL_STATUS_FAILED + default: PROPOSAL_STATUS_UNSPECIFIED + description: |- + ProposalStatus enumerates the valid statuses of a proposal. + + - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + period. + - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + period. + - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + passed. + - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + been rejected. + - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + failed. + final_tally_result: + type: object + properties: + 'yes': type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: + abstain: type: string - format: int64 - timestamp: + 'no': type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - tendermint.types.Header: + no_with_veto: + type: string + description: TallyResult defines a standard tally for a governance proposal. + submit_time: + type: string + format: date-time + deposit_end_time: + type: string + format: date-time + total_deposit: + type: array + items: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + voting_start_time: + type: string + format: date-time + voting_end_time: + type: string + format: date-time + description: Proposal defines the core field members of a governance proposal. + pagination: + description: pagination defines the pagination in the response. + 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: |- + QueryProposalsResponse is the response type for the Query/Proposals RPC + method. + cosmos.gov.v1beta1.QueryTallyResultResponse: type: object properties: - version: - title: basic block info + tally: type: object properties: - block: + 'yes': type: string - format: uint64 - app: + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + description: TallyResult defines a standard tally for a governance proposal. + description: >- + QueryTallyResultResponse is the response type for the Query/Tally RPC + method. + cosmos.gov.v1beta1.QueryVoteResponse: + type: object + properties: + vote: + description: vote defined the queried vote. + type: object + properties: + proposal_id: type: string format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, + voter: + type: string + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is set in + queries - including all blockchain data structures and the rules of the - application's + if and only if `len(options) == 1` and that option has weight 1. + In all - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given + governance proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + weight: + type: string + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + title: 'Since: cosmos-sdk 0.43' + description: QueryVoteResponse is the response type for the Query/Vote RPC method. + cosmos.gov.v1beta1.QueryVotesResponse: + type: object + properties: + votes: + type: array + items: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is set + in queries + + if and only if `len(options) == 1` and that option has weight 1. + In all + + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given + governance proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + weight: + type: string + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + title: 'Since: cosmos-sdk 0.43' + description: |- + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + description: votes defined the queried votes. + pagination: + description: pagination defines the pagination in the response. type: object properties: - hash: + next_key: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: + 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: QueryVotesResponse is the response type for the Query/Votes RPC method. + cosmos.gov.v1beta1.TallyParams: + type: object + properties: + quorum: + type: string + format: byte + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + threshold: + type: string + format: byte + description: >- + Minimum proportion of Yes votes for proposal to pass. Default value: + 0.5. + veto_threshold: + type: string + format: byte + description: |- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. Default value: 1/3. + description: TallyParams defines the params for tallying votes on governance proposals. + cosmos.gov.v1beta1.TallyResult: + type: object + properties: + 'yes': + type: string + abstain: + type: string + 'no': + type: string + no_with_veto: + type: string + description: TallyResult defines a standard tally for a governance proposal. + cosmos.gov.v1beta1.Vote: + type: object + properties: + proposal_id: + type: string + format: uint64 + voter: + type: string + option: + description: >- + Deprecated: Prefer to use `options` instead. This field is set in + queries + + if and only if `len(options) == 1` and that option has weight 1. In + all + + other cases, this field will default to VOTE_OPTION_UNSPECIFIED. + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + options: + type: array + items: + type: object + properties: + option: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given + governance proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + weight: + type: string + description: |- + WeightedVoteOption defines a unit of vote for vote split. + + Since: cosmos-sdk 0.43 + title: 'Since: cosmos-sdk 0.43' + description: |- + Vote defines a vote on a governance proposal. + A Vote consists of a proposal ID, the voter, and the vote option. + cosmos.gov.v1beta1.VoteOption: + type: string + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + cosmos.gov.v1beta1.VotingParams: + type: object + properties: + voting_period: + type: string + description: Length of the voting period. + description: VotingParams defines the params for voting on governance proposals. + cosmos.gov.v1beta1.WeightedVoteOption: + type: object + properties: + option: type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: + enum: + - VOTE_OPTION_UNSPECIFIED + - VOTE_OPTION_YES + - VOTE_OPTION_ABSTAIN + - VOTE_OPTION_NO + - VOTE_OPTION_NO_WITH_VETO + default: VOTE_OPTION_UNSPECIFIED + description: >- + VoteOption enumerates the valid vote options for a given governance + proposal. + + - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. + - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. + - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. + - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + weight: type: string - format: byte - title: transactions - validators_hash: + description: |- + 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 - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: + title: type of coin to mint + inflation_rate_change: type: string - format: byte - title: validators for the next block - consensus_hash: + title: maximum annual change in inflation rate + inflation_max: type: string - format: byte - title: consensus params for current block - app_hash: + title: maximum inflation rate + inflation_min: type: string - format: byte - title: state after txs from the previous block - last_results_hash: + title: minimum inflation rate + goal_bonded: type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: + title: goal of percent bonded atoms + 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: evidence included in the block - title: consensus info - proposer_address: + 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 - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - tendermint.types.LightBlock: + 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: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: root hash of all results from the txs from the previous block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - validator_set: + params: + description: params defines the parameters of the module. type: object properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: + mint_denom: type: string - format: int64 - tendermint.types.LightClientAttackEvidence: + 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 atoms + 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.params.v1beta1.ParamChange: type: object properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a - block in the blockchain, - - including all blockchain data structures and the rules of - the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - description: commit from validators from the last block - title: hashes of block data - data_hash: - type: string - format: byte - title: transactions - validators_hash: - type: string - format: byte - description: validators for the current block - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - title: validators for the next block - consensus_hash: - type: string - format: byte - title: consensus params for current block - app_hash: - type: string - format: byte - title: state after txs from the previous block - last_results_hash: - type: string - format: byte - title: >- - root hash of all results from the txs from the previous - block - evidence_hash: - type: string - format: byte - description: evidence included in the block - title: consensus info - proposer_address: - type: string - format: byte - title: original proposer of the block - description: Header defines the structure of a Tendermint block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlcokID the signature is - for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a - set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Tendermint Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + subspace: + type: string + key: + type: string + value: + type: string + description: |- + ParamChange defines an individual parameter change, for use in + ParameterChangeProposal. + cosmos.params.v1beta1.QueryParamsResponse: + type: object + properties: + param: + description: param defines the queried parameter. + type: object + properties: + subspace: + type: string + key: + type: string + value: + type: string + description: QueryParamsResponse is response type for the Query/Params RPC method. + cosmos.slashing.v1beta1.MsgUnjailResponse: + type: object + title: MsgUnjailResponse defines the Msg/Unjail response type + cosmos.slashing.v1beta1.Params: + type: object + properties: + signed_blocks_window: type: string format: int64 - byzantine_validators: + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: Params represents the parameters used for by the slashing module. + cosmos.slashing.v1beta1.QueryParamsResponse: + type: object + properties: + params: + type: object + properties: + signed_blocks_window: + type: string + format: int64 + min_signed_per_window: + type: string + format: byte + downtime_jail_duration: + type: string + slash_fraction_double_sign: + type: string + format: byte + slash_fraction_downtime: + type: string + format: byte + description: Params represents the parameters used for by the slashing module. + title: QueryParamsResponse is the response type for the Query/Params RPC method + cosmos.slashing.v1beta1.QuerySigningInfoResponse: + type: object + properties: + val_signing_info: + title: val_signing_info is the signing info of requested val cons address + type: object + properties: + address: + type: string + start_height: + type: string + format: int64 + title: Height at which validator was first a candidate OR was unjailed + index_offset: + type: string + format: int64 + description: >- + Index which is incremented each time the validator was a bonded + + in a block and may have signed a precommit or not. This in + conjunction with the + + `SignedBlocksWindow` param determines the index in the + `MissedBlocksBitArray`. + jailed_until: + type: string + format: date-time + description: >- + Timestamp until which the validator is jailed due to liveness + downtime. + tombstoned: + type: boolean + description: >- + Whether or not a validator has been tombstoned (killed out of + validator set). It is set + + once the validator commits an equivocation or for any other + configured misbehiavor. + missed_blocks_counter: + type: string + format: int64 + description: >- + A counter kept to avoid unnecessary array reads. + + Note that `Sum(MissedBlocksBitArray)` always equals + `MissedBlocksCounter`. + description: >- + ValidatorSigningInfo defines a validator's signing info for monitoring + their + + liveness activity. + title: >- + QuerySigningInfoResponse is the response type for the Query/SigningInfo + RPC + + method + cosmos.slashing.v1beta1.QuerySigningInfosResponse: + type: object + properties: + info: type: array items: type: object properties: address: type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: + start_height: type: string format: int64 - proposer_priority: + title: Height at which validator was first a candidate OR was unjailed + index_offset: type: string format: int64 - total_voting_power: + description: >- + Index which is incremented each time the validator was a bonded + + in a block and may have signed a precommit or not. This in + conjunction with the + + `SignedBlocksWindow` param determines the index in the + `MissedBlocksBitArray`. + jailed_until: + type: string + format: date-time + description: >- + Timestamp until which the validator is jailed due to liveness + downtime. + tombstoned: + type: boolean + description: >- + Whether or not a validator has been tombstoned (killed out of + validator set). It is set + + once the validator commits an equivocation or for any other + configured misbehiavor. + missed_blocks_counter: + type: string + format: int64 + description: >- + A counter kept to avoid unnecessary array reads. + + Note that `Sum(MissedBlocksBitArray)` always equals + `MissedBlocksCounter`. + description: >- + ValidatorSigningInfo defines a validator's signing info for + monitoring their + + liveness activity. + title: info is the signing info of all validators + 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; + } + title: >- + QuerySigningInfosResponse is the response type for the Query/SigningInfos + RPC + + method + cosmos.slashing.v1beta1.ValidatorSigningInfo: + type: object + properties: + address: + type: string + start_height: type: string format: int64 - timestamp: + title: Height at which validator was first a candidate OR was unjailed + index_offset: + type: string + format: int64 + description: >- + Index which is incremented each time the validator was a bonded + + in a block and may have signed a precommit or not. This in conjunction + with the + + `SignedBlocksWindow` param determines the index in the + `MissedBlocksBitArray`. + jailed_until: type: string format: date-time + description: >- + Timestamp until which the validator is jailed due to liveness + downtime. + tombstoned: + type: boolean + description: >- + Whether or not a validator has been tombstoned (killed out of + validator set). It is set + + once the validator commits an equivocation or for any other configured + misbehiavor. + missed_blocks_counter: + type: string + format: int64 + description: >- + A counter kept to avoid unnecessary array reads. + + Note that `Sum(MissedBlocksBitArray)` always equals + `MissedBlocksCounter`. description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.PartSetHeader: + ValidatorSigningInfo defines a validator's signing info for monitoring + their + + liveness activity. + cosmos.staking.v1beta1.BondStatus: + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + description: |- + BondStatus is the status of a validator. + + - BOND_STATUS_UNSPECIFIED: UNSPECIFIED defines an invalid validator status. + - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. + - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. + - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. + cosmos.staking.v1beta1.Commission: type: object properties: - total: - type: integer - format: int64 - hash: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be used for + creating a validator. + type: object + properties: + rate: + type: string + description: 'rate is the commission rate charged to delegators, as a fraction.' + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which validator can + ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + update_time: type: string - format: byte - title: PartsetHeader - tendermint.types.SignedHeader: + format: date-time + description: update_time is the last time the commission rate was changed. + description: Commission defines commission parameters for a given validator. + cosmos.staking.v1beta1.CommissionRates: + type: object + properties: + rate: + type: string + description: 'rate is the commission rate charged to delegators, as a fraction.' + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which validator can ever + charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the validator + commission, as a fraction. + description: >- + CommissionRates defines the initial commission rates to be used for + creating + + a validator. + cosmos.staking.v1beta1.Delegation: + type: object + properties: + delegator_address: + type: string + description: delegator_address is the bech32-encoded address of the delegator. + validator_address: + type: string + description: validator_address is the bech32-encoded address of the validator. + shares: + type: string + description: shares define the delegation shares received. + description: |- + Delegation represents the bond with tokens held by an account. It is + owned by one delegator, and is associated with the voting power of one + validator. + cosmos.staking.v1beta1.DelegationResponse: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + description: delegator_address is the bech32-encoded address of the delegator. + validator_address: + type: string + description: validator_address is the bech32-encoded address of the validator. + shares: + type: string + description: shares define the delegation shares received. + description: |- + Delegation represents the bond with tokens held by an account. It is + owned by one delegator, and is associated with the voting power of one + validator. + balance: + type: object + properties: + denom: + type: string + amount: + type: string + description: |- + Coin defines a token with a denomination and an amount. + + NOTE: The amount field is an Int which implements the custom method + signatures required by gogoproto. + description: |- + DelegationResponse is equivalent to Delegation except that it contains a + balance in addition to shares which is more suitable for client responses. + cosmos.staking.v1beta1.Description: + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: security_contact defines an optional email for security contact. + details: + type: string + description: details define other optional details. + description: Description defines a validator description. + cosmos.staking.v1beta1.HistoricalInfo: type: object properties: header: @@ -44393,6 +53473,7 @@ definitions: type: string format: date-time last_block_id: + title: prev block info type: object properties: hash: @@ -44408,7 +53489,6 @@ definitions: type: string format: byte title: PartsetHeader - title: BlockID last_commit_hash: type: string format: byte @@ -44449,460 +53529,357 @@ definitions: format: byte title: original proposer of the block description: Header defines the structure of a Tendermint block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: + valset: + type: array + items: + type: object + properties: + operator_address: + type: string + description: >- + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized + + protocol buffer message. This string must contain at least + + one "/" character. The last segment of the URL's path must + represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all + types that they + + expect it to use in the context of Any. However, for URLs + which use the + + scheme `http`, `https`, or no scheme, one can optionally set + up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning + with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from bonded + status or not. + status: + description: status is the validator status (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. type: object properties: - block_id_flag: + moniker: type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for - validator_address: + description: moniker defines a human-readable name for the validator. + identity: type: string - format: byte - timestamp: + description: >- + identity defines an optional identity signature (ex. UPort + or Keybase). + website: type: string - format: date-time - signature: + description: website defines an optional website link. + security_contact: type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.SignedMsgType: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - tendermint.types.Validator: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - tendermint.types.ValidatorSet: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: type: string - format: byte - pub_key: + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. type: object properties: - ed25519: - type: string - format: byte - secp256k1: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be + used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of + the validator commission, as a fraction. + update_time: type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: type: string - format: int64 - proposer_priority: + description: >- + min_self_delegation is the validator's self declared minimum + self delegation. + min_delegation: type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.Vote: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + description: >- + Validator defines a validator, together with the total amount of the - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - description: zero if vote is nil. - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: |- - Vote represents a prevote, precommit, or commit vote from validators for - consensus. - tendermint.version.Consensus: - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 + Validator's bond shares and their exchange rate to coins. Slashing + results in + + a decrease in the exchange rate, allowing correct calculation of + future + + undelegations without iterating over delegators. When coins are + delegated to + + this validator, the validator is credited with a delegation whose + number of + + bond shares is based on the amount of coins delegated divided by the + current + + exchange rate. Voting power can be calculated as total bonded shares + + multiplied by exchange rate. description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, + HistoricalInfo contains header and validator information for a given + block. - including all blockchain data structures and the rules of the - application's + It is stored as part of staking module's state, which persists the `n` + most - state transition machine. - cosmos.crisis.v1beta1.MsgVerifyInvariantResponse: - type: object - description: MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. - cosmos.base.v1beta1.DecCoin: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. + recent HistoricalInfo - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - cosmos.distribution.v1beta1.DelegationDelegatorReward: + (`n` is set by the staking module's `historical_entries` parameter). + cosmos.staking.v1beta1.MsgBeginRedelegateResponse: type: object properties: - validator_address: + completion_time: type: string - reward: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - DelegationDelegatorReward represents the properties - of a delegator's delegation reward. - cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse: + format: date-time + description: MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. + cosmos.staking.v1beta1.MsgCreateValidatorResponse: type: object - description: >- - MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response - type. - cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse: + description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. + cosmos.staking.v1beta1.MsgDelegateResponse: type: object - description: >- - MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response - type. - cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse: + description: MsgDelegateResponse defines the Msg/Delegate response type. + cosmos.staking.v1beta1.MsgEditValidatorResponse: type: object - description: >- - MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward - response type. - cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse: + description: MsgEditValidatorResponse defines the Msg/EditValidator response type. + cosmos.staking.v1beta1.MsgSetValidatorApprovalResponse: type: object - description: >- - MsgWithdrawValidatorCommissionResponse defines the - Msg/WithdrawValidatorCommission response type. - cosmos.distribution.v1beta1.Params: + cosmos.staking.v1beta1.MsgUndelegateResponse: type: object properties: - community_tax: - type: string - base_proposer_reward: - type: string - bonus_proposer_reward: + completion_time: type: string - withdraw_addr_enabled: - type: boolean - description: Params defines the set of params for the distribution module. - cosmos.distribution.v1beta1.QueryCommunityPoolResponse: - type: object - properties: - pool: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: pool defines community pool's coins. - description: >- - QueryCommunityPoolResponse is the response type for the - Query/CommunityPool - - RPC method. - cosmos.distribution.v1beta1.QueryDelegationRewardsResponse: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: rewards defines the rewards accrued by a delegation. - description: |- - QueryDelegationRewardsResponse is the response type for the - Query/DelegationRewards RPC method. - cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse: - type: object - properties: - rewards: - type: array - items: - type: object - properties: - validator_address: - type: string - reward: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - DecCoin defines a token with a denomination and a decimal - amount. - - - NOTE: The amount field is an Dec which implements the custom - method - - signatures required by gogoproto. - description: |- - DelegationDelegatorReward represents the properties - of a delegator's delegation reward. - description: rewards defines all the rewards accrued by a delegator. - total: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: total defines the sum of all the rewards. - description: |- - QueryDelegationTotalRewardsResponse is the response type for the - Query/DelegationTotalRewards RPC method. - cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse: + format: date-time + description: MsgUndelegateResponse defines the Msg/Undelegate response type. + cosmos.staking.v1beta1.Params: type: object properties: - validators: - type: array - items: - type: string - description: validators defines the validators a delegator is delegating for. - description: |- - QueryDelegatorValidatorsResponse is the response type for the - Query/DelegatorValidators RPC method. - cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse: + unbonding_time: + type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 + description: >- + max_entries is the max entries for either unbonding delegation or + redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: historical_entries is the number of historical entries to persist. + bond_denom: + type: string + description: bond_denom defines the bondable coin denomination. + description: Params defines the parameters for the staking module. + cosmos.staking.v1beta1.Pool: type: object properties: - withdraw_address: + not_bonded_tokens: + type: string + bonded_tokens: type: string - description: withdraw_address defines the delegator address to query for. description: |- - QueryDelegatorWithdrawAddressResponse is the response type for the - Query/DelegatorWithdrawAddress RPC method. - cosmos.distribution.v1beta1.QueryParamsResponse: + Pool is used for tracking bonded and not-bonded token supply of the bond + denomination. + cosmos.staking.v1beta1.QueryDelegationResponse: type: object properties: - params: - description: params defines the parameters of the module. + delegation_response: + description: delegation_responses defines the delegation info of a delegation. type: object properties: - community_tax: - type: string - base_proposer_reward: - type: string - bonus_proposer_reward: - type: string - withdraw_addr_enabled: - type: boolean - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.distribution.v1beta1.QueryValidatorCommissionResponse: + delegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + shares: + type: string + description: shares define the delegation shares received. + description: >- + Delegation represents the bond with tokens held by an account. It + is + + owned by one delegator, and is associated with the voting power of + one + + validator. + balance: + type: object + properties: + denom: + type: string + amount: + type: string + description: >- + Coin defines a token with a denomination and an amount. + + + NOTE: The amount field is an Int which implements the custom + method + + signatures required by gogoproto. + description: >- + QueryDelegationResponse is response type for the Query/Delegation RPC + method. + cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse: type: object properties: - commission: - description: commission defines the commision the validator received. - type: object - properties: - commission: - type: array - items: + delegation_responses: + type: array + items: + type: object + properties: + delegation: type: object properties: - denom: + delegator_address: type: string - amount: + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + shares: type: string + description: shares define the delegation shares received. description: >- - DecCoin defines a token with a denomination and a decimal - amount. - + Delegation represents the bond with tokens held by an account. + It is - NOTE: The amount field is an Dec which implements the custom - method + owned by one delegator, and is associated with the voting power + of one - signatures required by gogoproto. - title: |- - QueryValidatorCommissionResponse is the response type for the - Query/ValidatorCommission RPC method - cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse: - type: object - properties: - rewards: - type: object - properties: - rewards: - type: array - items: + validator. + balance: type: object properties: denom: @@ -44910,41 +53887,20 @@ definitions: amount: type: string description: >- - DecCoin defines a token with a denomination and a decimal - amount. + Coin defines a token with a denomination and an amount. - NOTE: The amount field is an Dec which implements the custom + NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - description: >- - ValidatorOutstandingRewards represents outstanding (un-withdrawn) - rewards + description: >- + DelegationResponse is equivalent to Delegation except that it + contains a - for a validator inexpensive to track, allows simple sanity checks. - description: |- - QueryValidatorOutstandingRewardsResponse is the response type for the - Query/ValidatorOutstandingRewards RPC method. - cosmos.distribution.v1beta1.QueryValidatorSlashesResponse: - type: object - properties: - slashes: - type: array - items: - type: object - properties: - validator_period: - type: string - format: uint64 - fraction: - type: string - description: |- - ValidatorSlashEvent represents a validator slash event. - Height is implicit within the store key. - This is needed to calculate appropriate amount of staking tokens - for delegations which are withdrawn after a slash has occurred. - description: slashes defines the slashes the validator received. + balance in addition to shares which is more suitable for client + responses. + description: delegation_responses defines all the delegations' info of a delegator. pagination: description: pagination defines the pagination in the response. type: object @@ -44964,235 +53920,61 @@ definitions: was set, its value is undefined otherwise description: |- - QueryValidatorSlashesResponse is the response type for the - Query/ValidatorSlashes RPC method. - cosmos.distribution.v1beta1.ValidatorAccumulatedCommission: - type: object - properties: - commission: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - ValidatorAccumulatedCommission represents accumulated commission - for a validator kept as a running counter, can be withdrawn at any time. - cosmos.distribution.v1beta1.ValidatorOutstandingRewards: + QueryDelegatorDelegationsResponse is response type for the + Query/DelegatorDelegations RPC method. + cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse: type: object properties: - rewards: + unbonding_responses: type: array items: type: object properties: - denom: - type: string - amount: + delegator_address: type: string - description: |- - DecCoin defines a token with a denomination and a decimal amount. - - NOTE: The amount field is an Dec which implements the custom method - signatures required by gogoproto. - description: |- - ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards - for a validator inexpensive to track, allows simple sanity checks. - cosmos.distribution.v1beta1.ValidatorSlashEvent: - type: object - properties: - validator_period: - type: string - format: uint64 - fraction: - type: string - description: |- - ValidatorSlashEvent represents a validator slash event. - Height is implicit within the store key. - This is needed to calculate appropriate amount of staking tokens - for delegations which are withdrawn after a slash has occurred. - cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse: - type: object - properties: - hash: - type: string - format: byte - description: hash defines the hash of the evidence. - description: MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. - cosmos.evidence.v1beta1.QueryAllEvidenceResponse: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - '@type': + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: type: string description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up - a type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might - be + validator_address is the bech32-encoded address of the + validator. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding took + place. + completion_time: + type: string + format: date-time + description: completion_time is the unix time for unbonding completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially scheduled to + receive at completion. + balance: + type: string + description: balance defines the tokens to receive at completion. + description: >- + UnbondingDelegationEntry defines an unbonding object with + relevant metadata. + description: |- + entries are the unbonding delegation entries. - used with implementation specific semantics. - additionalProperties: {} + unbonding delegation entries description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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][]): + UnbondingDelegation stores all of a single delegator's unbonding + bonds - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - description: evidence returns all evidences. + for a single validator in an time-ordered list. pagination: description: pagination defines the pagination in the response. type: object @@ -45208,177 +53990,28 @@ definitions: format: uint64 title: >- total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryAllEvidenceResponse is the response type for the Query/AllEvidence - RPC - - method. - cosmos.evidence.v1beta1.QueryEvidenceResponse: - type: object - properties: - evidence: - description: evidence returns the requested evidence. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - QueryEvidenceResponse is the response type for the Query/Evidence RPC - method. - cosmos.feegrant.v1beta1.Grant: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be + PageRequest.count_total - used with implementation specific semantics. - additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse: - type: object - description: >- - MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response - type. - cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse: - type: object - description: >- - MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse - response type. - cosmos.feegrant.v1beta1.QueryAllowanceResponse: + was set, its value is undefined otherwise + description: |- + QueryUnbondingDelegatorDelegationsResponse is response type for the + Query/UnbondingDelegatorDelegations RPC method. + cosmos.staking.v1beta1.QueryDelegatorValidatorResponse: type: object properties: - allowance: - description: allowance is a allowance granted for grantee by granter. + validator: + description: validator defines the the validator info. type: object properties: - granter: + operator_address: type: string description: >- - granter is the address of the user granting an allowance of their - funds. - grantee: - type: string + operator_address defines the address of the validator's operator; + bech encoded in JSON. + consensus_pubkey: description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. + consensus_pubkey is the consensus public key of the validator, as + a Protobuf Any. type: object properties: '@type': @@ -45437,133 +54070,129 @@ definitions: used with implementation specific semantics. additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: >- - QueryAllowanceResponse is the response type for the Query/Allowance RPC - method. - cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse: - type: object - properties: - allowances: - type: array - items: - type: object - properties: - granter: - type: string - description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: - type: string - description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances that have been issued by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from bonded + status or not. + status: + description: status is the validator status (bonded/unbonding/unbonded). type: string - format: byte - title: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently - total: + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryAllowancesByGranterResponse is the response type for the - Query/AllowancesByGranter RPC method. - cosmos.feegrant.v1beta1.QueryAllowancesResponse: + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be + used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + update_time: + type: string + format: date-time + description: update_time is the last time the commission rate was changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared minimum self + delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + description: |- + QueryDelegatorValidatorResponse response type for the + Query/DelegatorValidator RPC method. + cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse: type: object properties: - allowances: + validators: type: array items: type: object properties: - granter: + operator_address: type: string description: >- - granter is the address of the user granting an allowance of - their funds. - grantee: - type: string + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: description: >- - grantee is the address of the user being granted an allowance of - another user's funds. - allowance: - description: allowance can be any of basic and filtered fee allowance. + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. type: object properties: '@type': @@ -45582,457 +54211,654 @@ definitions: `path/google.protobuf.Duration`). The name should be in a canonical form - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all - types that they - - expect it to use in the context of Any. However, for URLs - which use the - - scheme `http`, `https`, or no scheme, one can optionally set - up a type - - server that maps type URLs to message definitions as - follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a - [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on - the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning - with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) - might be - - used with implementation specific semantics. - additionalProperties: {} - title: Grant is stored in the KVStore to record a grant with full context - description: allowances are allowance's granted for grantee by granter. - pagination: - description: pagination defines an pagination for the response. - 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: >- - QueryAllowancesResponse is the response type for the Query/Allowances RPC - method. - cosmos.gov.v1beta1.Deposit: - type: object - properties: - proposal_id: - type: string - format: uint64 - depositor: - type: string - amount: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: |- - Deposit defines an amount deposited by an account address to an active - proposal. - cosmos.gov.v1beta1.DepositParams: - type: object - properties: - min_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - months. - description: DepositParams defines the params for deposits on governance proposals. - cosmos.gov.v1beta1.MsgDepositResponse: - type: object - description: MsgDepositResponse defines the Msg/Deposit response type. - cosmos.gov.v1beta1.MsgSubmitProposalResponse: - type: object - properties: - proposal_id: - type: string - format: uint64 - description: MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. - cosmos.gov.v1beta1.MsgVoteResponse: - type: object - description: MsgVoteResponse defines the Msg/Vote response type. - cosmos.gov.v1beta1.MsgVoteWeightedResponse: - type: object - description: |- - MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. - - Since: cosmos-sdk 0.43 - cosmos.gov.v1beta1.Proposal: - type: object - properties: - proposal_id: - type: string - format: uint64 - content: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized - - protocol buffer message. This string must contain at least - - one "/" character. The last segment of the URL's path must - represent - - the fully qualified name of the type (as in - - `path/google.protobuf.Duration`). The name should be in a - canonical form - - (e.g., leading "." is not accepted). - - - In practice, teams usually precompile into the binary all types - that they - - expect it to use in the context of Any. However, for URLs which - use the - - scheme `http`, `https`, or no scheme, one can optionally set up a - type - - server that maps type URLs to message definitions as follows: - - - * If no scheme is provided, `https` is assumed. - - * An HTTP GET on the URL must yield a [google.protobuf.Type][] - value in binary format, or produce an error. - * Applications are allowed to cache lookup results based on the - URL, or have them precompiled into a binary to avoid any - lookup. Therefore, binary compatibility needs to be preserved - on changes to types. (Use versioned type names to manage - breaking changes.) - - Note: this functionality is not currently available in the - official - - protobuf release, and it is not used for type URLs beginning with - - type.googleapis.com. - - - Schemes other than `http`, `https` (or the empty scheme) might be - - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer message along - with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use + (e.g., leading "." is not accepted). - 'type.googleapis.com/full.type.name' as the type URL and the unpack - methods only use the fully qualified type name after the last '/' + In practice, teams usually precompile into the binary all + types that they - in the type URL, for example "foo.bar.com/x/y.z" will yield type + expect it to use in the context of Any. However, for URLs + which use the - name "y.z". + scheme `http`, `https`, or no scheme, one can optionally set + up a type + server that maps type URLs to message definitions as + follows: - JSON + * If no scheme is provided, `https` is assumed. - ==== + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on + the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) - The JSON representation of an `Any` value uses the regular + Note: this functionality is not currently available in the + official - representation of the deserialized, embedded message, with an + protobuf release, and it is not used for type URLs beginning + with - additional field `@type` which contains the type URL. Example: + type.googleapis.com. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Schemes other than `http`, `https` (or the empty scheme) + might be - If the embedded message type is well-known and has a custom JSON + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from bonded + status or not. + status: + description: status is the validator status (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort + or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be + used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of + the validator commission, as a fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared minimum + self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + description: >- + Validator defines a validator, together with the total amount of the - representation, that representation will be embedded adding a field + Validator's bond shares and their exchange rate to coins. Slashing + results in - `value` which holds the custom JSON in addition to the `@type` + a decrease in the exchange rate, allowing correct calculation of + future - field. Example (for message [google.protobuf.Duration][]): + undelegations without iterating over delegators. When coins are + delegated to - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - status: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. + this validator, the validator is credited with a delegation whose + number of - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: + bond shares is based on the amount of coins delegated divided by the + current + + exchange rate. Voting power can be calculated as total bonded shares + + multiplied by exchange rate. + description: validators defines the the validators' info of a delegator. + pagination: + description: pagination defines the pagination in the response. type: object properties: - 'yes': - type: string - abstain: - type: string - 'no': + next_key: type: string - no_with_veto: + format: byte + title: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently + total: type: string - description: TallyResult defines a standard tally for a governance proposal. - submit_time: - type: string - format: date-time - deposit_end_time: - type: string - format: date-time - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: |- - Coin defines a token with a denomination and an amount. + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. - voting_start_time: - type: string - format: date-time - voting_end_time: - type: string - format: date-time - description: Proposal defines the core field members of a governance proposal. - cosmos.gov.v1beta1.ProposalStatus: - type: string - enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED + was set, its value is undefined otherwise description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - cosmos.gov.v1beta1.QueryDepositResponse: + QueryDelegatorValidatorsResponse is response type for the + Query/DelegatorValidators RPC method. + cosmos.staking.v1beta1.QueryHistoricalInfoResponse: type: object properties: - deposit: - description: deposit defines the requested deposit. + hist: + description: hist defines the historical info at the given height. type: object properties: - proposal_id: - type: string - format: uint64 - depositor: - type: string - amount: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + title: prev block info + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + title: PartsetHeader + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a Tendermint block header. + valset: type: array items: type: object properties: - denom: + operator_address: + type: string + description: >- + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from + bonded status or not. + status: + description: status is the validator status (bonded/unbonding/unbonded). + type: string + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a + validator's delegators. + description: + description: description defines the description terms for the validator. + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. + UPort or Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: + type: string + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which + this validator has begun unbonding. + unbonding_time: + type: string + format: date-time + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates to + be used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, + as a fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase + of the validator commission, as a fraction. + update_time: + type: string + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: type: string - amount: + description: >- + min_self_delegation is the validator's self declared minimum + self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: >- - Coin defines a token with a denomination and an amount. + Validator defines a validator, together with the total amount of + the + Validator's bond shares and their exchange rate to coins. + Slashing results in - NOTE: The amount field is an Int which implements the custom - method + a decrease in the exchange rate, allowing correct calculation of + future - signatures required by gogoproto. + undelegations without iterating over delegators. When coins are + delegated to + + this validator, the validator is credited with a delegation + whose number of + + bond shares is based on the amount of coins delegated divided by + the current + + exchange rate. Voting power can be calculated as total bonded + shares + + multiplied by exchange rate. description: >- - QueryDepositResponse is the response type for the Query/Deposit RPC + QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo + RPC + method. - cosmos.gov.v1beta1.QueryDepositsResponse: + cosmos.staking.v1beta1.QueryParamsResponse: type: object properties: - deposits: + params: + description: params holds all the parameters of this module. + type: object + properties: + unbonding_time: + type: string + description: unbonding_time is the time duration of unbonding. + max_validators: + type: integer + format: int64 + description: max_validators is the maximum number of validators. + max_entries: + type: integer + format: int64 + description: >- + max_entries is the max entries for either unbonding delegation or + redelegation (per pair/trio). + historical_entries: + type: integer + format: int64 + description: historical_entries is the number of historical entries to persist. + bond_denom: + type: string + description: bond_denom defines the bondable coin denomination. + description: QueryParamsResponse is response type for the Query/Params RPC method. + cosmos.staking.v1beta1.QueryPoolResponse: + type: object + properties: + pool: + description: pool defines the pool info. + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + description: QueryPoolResponse is response type for the Query/Pool RPC method. + cosmos.staking.v1beta1.QueryRedelegationsResponse: + type: object + properties: + redelegation_responses: type: array items: type: object properties: - proposal_id: - type: string - format: uint64 - depositor: - type: string - amount: + redelegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_src_address: + type: string + description: >- + validator_src_address is the validator redelegation source + operator address. + validator_dst_address: + type: string + description: >- + validator_dst_address is the validator redelegation + destination operator address. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the + redelegation took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for redelegation + completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance when + redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of destination-validator + shares created by redelegation. + description: >- + RedelegationEntry defines a redelegation object with + relevant metadata. + description: |- + entries are the redelegation entries. + + redelegation entries + description: >- + Redelegation contains the list of a particular delegator's + redelegating bonds + + from a particular source validator to a particular destination + validator. + entries: type: array items: type: object properties: - denom: - type: string - amount: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the + redelegation took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for redelegation + completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance when + redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of destination-validator + shares created by redelegation. + description: >- + RedelegationEntry defines a redelegation object with + relevant metadata. + balance: type: string description: >- - Coin defines a token with a denomination and an amount. - + RedelegationEntryResponse is equivalent to a RedelegationEntry + except that it - NOTE: The amount field is an Int which implements the custom - method + contains a balance in addition to shares which is more + suitable for client - signatures required by gogoproto. + responses. description: >- - Deposit defines an amount deposited by an account address to an - active + RedelegationResponse is equivalent to a Redelegation except that its + entries - proposal. + contain a balance in addition to shares which is more suitable for + client + + responses. pagination: description: pagination defines the pagination in the response. type: object @@ -46052,25 +54878,99 @@ definitions: was set, its value is undefined otherwise description: >- - QueryDepositsResponse is the response type for the Query/Deposits RPC + QueryRedelegationsResponse is response type for the Query/Redelegations + RPC + method. - cosmos.gov.v1beta1.QueryParamsResponse: + cosmos.staking.v1beta1.QueryUnbondingDelegationResponse: type: object properties: - voting_params: - description: voting_params defines the parameters related to voting. + unbond: + description: unbond defines the unbonding information of a delegation. type: object properties: - voting_period: + delegator_address: type: string - description: Length of the voting period. - deposit_params: - description: deposit_params defines the parameters related to deposit. - type: object - properties: - min_deposit: + description: delegator_address is the bech32-encoded address of the delegator. + validator_address: + type: string + description: validator_address is the bech32-encoded address of the validator. + entries: type: array items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding took + place. + completion_time: + type: string + format: date-time + description: completion_time is the unix time for unbonding completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially scheduled to + receive at completion. + balance: + type: string + description: balance defines the tokens to receive at completion. + description: >- + UnbondingDelegationEntry defines an unbonding object with + relevant metadata. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries + description: |- + QueryDelegationResponse is response type for the Query/UnbondingDelegation + RPC method. + cosmos.staking.v1beta1.QueryValidatorApprovalResponse: + type: object + properties: + validator_approval: + type: object + properties: + approver_address: + type: string + enabled: + type: boolean + cosmos.staking.v1beta1.QueryValidatorDelegationsResponse: + type: object + properties: + delegation_responses: + type: array + items: + type: object + properties: + delegation: + type: object + properties: + delegator_address: + type: string + description: >- + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + shares: + type: string + description: shares define the delegation shares received. + description: >- + Delegation represents the bond with tokens held by an account. + It is + + owned by one delegator, and is associated with the voting power + of one + + validator. + balance: type: object properties: denom: @@ -46085,48 +54985,49 @@ definitions: method signatures required by gogoproto. - description: Minimum deposit for a proposal to enter voting period. - max_deposit_period: - type: string - description: >- - Maximum period for Atom holders to deposit on a proposal. Initial - value: 2 - months. - tally_params: - description: tally_params defines the parameters related to tally. + description: >- + DelegationResponse is equivalent to Delegation except that it + contains a + + balance in addition to shares which is more suitable for client + responses. + pagination: + description: pagination defines the pagination in the response. type: object properties: - quorum: - type: string - format: byte - description: >- - Minimum percentage of total stake needed to vote for a result to - be - considered valid. - threshold: + next_key: type: string format: byte - description: >- - Minimum proportion of Yes votes for proposal to pass. Default - value: 0.5. - veto_threshold: + title: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently + total: type: string - format: byte - description: >- - Minimum value of Veto votes to Total votes ratio for proposal to - be - vetoed. Default value: 1/3. - description: QueryParamsResponse is the response type for the Query/Params RPC method. - cosmos.gov.v1beta1.QueryProposalResponse: + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + title: |- + QueryValidatorDelegationsResponse is response type for the + Query/ValidatorDelegations RPC method + cosmos.staking.v1beta1.QueryValidatorResponse: type: object properties: - proposal: + validator: + description: validator defines the the validator info. type: object properties: - proposal_id: + operator_address: type: string - format: uint64 - content: + description: >- + operator_address defines the address of the validator's operator; + bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, as + a Protobuf Any. type: object properties: '@type': @@ -46185,191 +55086,201 @@ definitions: used with implementation specific semantics. additionalProperties: {} + jailed: + type: boolean description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in the - form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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" - } + jailed defined whether the validator has been jailed from bonded + status or not. status: + description: status is the validator status (bonded/unbonding/unbonded). type: string enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. type: object properties: - 'yes': + moniker: type: string - abstain: + description: moniker defines a human-readable name for the validator. + identity: type: string - 'no': + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: type: string - no_with_veto: + description: website defines an optional website link. + security_contact: type: string - description: TallyResult defines a standard tally for a governance proposal. - submit_time: + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: type: string - format: date-time - deposit_end_time: + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: type: string format: date-time - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be + used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + update_time: + type: string + format: date-time + description: update_time is the last time the commission rate was changed. + min_self_delegation: + type: string + description: >- + min_self_delegation is the validator's self declared minimum self + delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + title: QueryValidatorResponse is response type for the Query/Validator RPC method + cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse: + type: object + properties: + unbonding_responses: + type: array + items: + type: object + properties: + delegator_address: + type: string description: >- - Coin defines a token with a denomination and an amount. - + delegator_address is the bech32-encoded address of the + delegator. + validator_address: + type: string + description: >- + validator_address is the bech32-encoded address of the + validator. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height is the height which the unbonding took + place. + completion_time: + type: string + format: date-time + description: completion_time is the unix time for unbonding completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially scheduled to + receive at completion. + balance: + type: string + description: balance defines the tokens to receive at completion. + description: >- + UnbondingDelegationEntry defines an unbonding object with + relevant metadata. + description: |- + entries are the unbonding delegation entries. - NOTE: The amount field is an Int which implements the custom - method + unbonding delegation entries + description: >- + UnbondingDelegation stores all of a single delegator's unbonding + bonds - signatures required by gogoproto. - voting_start_time: + for a single validator in an time-ordered list. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: type: string - format: date-time - voting_end_time: + 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: date-time - description: Proposal defines the core field members of a governance proposal. - description: >- - QueryProposalResponse is the response type for the Query/Proposal RPC - method. - cosmos.gov.v1beta1.QueryProposalsResponse: + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: |- + QueryValidatorUnbondingDelegationsResponse is response type for the + Query/ValidatorUnbondingDelegations RPC method. + cosmos.staking.v1beta1.QueryValidatorsResponse: type: object properties: - proposals: + validators: type: array items: type: object properties: - proposal_id: + operator_address: type: string - format: uint64 - content: + description: >- + operator_address defines the address of the validator's + operator; bech encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. type: object properties: '@type': @@ -46430,341 +55341,133 @@ definitions: used with implementation specific semantics. additionalProperties: {} + jailed: + type: boolean description: >- - `Any` contains an arbitrary serialized protocol buffer message - along with a - - URL that describes the type of the serialized message. - - - Protobuf library provides support to pack/unpack Any values in - the form - - of utility functions or additional generated methods of the Any - type. - - - Example 1: Pack and unpack a message in C++. - - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } - - Example 2: Pack and unpack a message in Java. - - Foo foo = ...; - Any any = Any.pack(foo); - ... - if (any.is(Foo.class)) { - foo = any.unpack(Foo.class); - } - - Example 3: Pack and unpack a message in Python. - - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... - - Example 4: Pack and unpack a message in Go - - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } - - The pack methods provided by protobuf library will by default - use - - 'type.googleapis.com/full.type.name' as the type URL and the - unpack - - methods only use the fully qualified type name after the last - '/' - - in the type URL, for example "foo.bar.com/x/y.z" will yield type - - name "y.z". - - - - JSON - - ==== - - The JSON representation of an `Any` value uses the regular - - representation of the deserialized, embedded message, with an - - additional field `@type` which contains the type URL. Example: - - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } - - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "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" - } + jailed defined whether the validator has been jailed from bonded + status or not. status: + description: status is the validator status (bonded/unbonding/unbonded). type: string enum: - - PROPOSAL_STATUS_UNSPECIFIED - - PROPOSAL_STATUS_DEPOSIT_PERIOD - - PROPOSAL_STATUS_VOTING_PERIOD - - PROPOSAL_STATUS_PASSED - - PROPOSAL_STATUS_REJECTED - - PROPOSAL_STATUS_FAILED - default: PROPOSAL_STATUS_UNSPECIFIED - description: |- - ProposalStatus enumerates the valid statuses of a proposal. - - - PROPOSAL_STATUS_UNSPECIFIED: PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. - - PROPOSAL_STATUS_DEPOSIT_PERIOD: PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit - period. - - PROPOSAL_STATUS_VOTING_PERIOD: PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting - period. - - PROPOSAL_STATUS_PASSED: PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has - passed. - - PROPOSAL_STATUS_REJECTED: PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has - been rejected. - - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has - failed. - final_tally_result: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: + type: string + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. type: object properties: - 'yes': + moniker: type: string - abstain: + description: moniker defines a human-readable name for the validator. + identity: type: string - 'no': + description: >- + identity defines an optional identity signature (ex. UPort + or Keybase). + website: type: string - no_with_veto: + description: website defines an optional website link. + security_contact: type: string - description: TallyResult defines a standard tally for a governance proposal. - submit_time: - type: string - format: date-time - deposit_end_time: - type: string - format: date-time - total_deposit: - type: array - items: - type: object - properties: - denom: - type: string - amount: - type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. - voting_start_time: + description: >- + security_contact defines an optional email for security + contact. + details: + type: string + description: details define other optional details. + unbonding_height: type: string - format: date-time - voting_end_time: + format: int64 + description: >- + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: type: string format: date-time - description: Proposal defines the core field members of a governance proposal. - pagination: - description: pagination defines the pagination in the response. - 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: |- - QueryProposalsResponse is the response type for the Query/Proposals RPC - method. - cosmos.gov.v1beta1.QueryTallyResultResponse: - type: object - properties: - tally: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: TallyResult defines a standard tally for a governance proposal. - description: >- - QueryTallyResultResponse is the response type for the Query/Tally RPC - method. - cosmos.gov.v1beta1.QueryVoteResponse: - type: object - properties: - vote: - description: vote defined the queried vote. - type: object - properties: - proposal_id: - type: string - format: uint64 - voter: - type: string - option: - description: >- - Deprecated: Prefer to use `options` instead. This field is set in - queries - - if and only if `len(options) == 1` and that option has weight 1. - In all - - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: + description: >- + unbonding_time defines, if unbonding, the min time for the + validator to complete unbonding. + commission: + description: commission defines the commission parameters. type: object properties: - option: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED + commission_rates: description: >- - VoteOption enumerates the valid vote options for a given - governance proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - weight: + commission_rates defines the initial commission rates to be + used for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which + validator can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of + the validator commission, as a fraction. + update_time: type: string - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 - title: 'Since: cosmos-sdk 0.43' - description: QueryVoteResponse is the response type for the Query/Vote RPC method. - cosmos.gov.v1beta1.QueryVotesResponse: - type: object - properties: - votes: - type: array - items: - type: object - properties: - proposal_id: - type: string - format: uint64 - voter: + format: date-time + description: >- + update_time is the last time the commission rate was + changed. + min_self_delegation: type: string - option: description: >- - Deprecated: Prefer to use `options` instead. This field is set - in queries + min_self_delegation is the validator's self declared minimum + self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + description: >- + Validator defines a validator, together with the total amount of the - if and only if `len(options) == 1` and that option has weight 1. - In all + Validator's bond shares and their exchange rate to coins. Slashing + results in - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: - type: array - items: - type: object - properties: - option: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: >- - VoteOption enumerates the valid vote options for a given - governance proposal. + a decrease in the exchange rate, allowing correct calculation of + future - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - weight: - type: string - description: |- - WeightedVoteOption defines a unit of vote for vote split. + undelegations without iterating over delegators. When coins are + delegated to - Since: cosmos-sdk 0.43 - title: 'Since: cosmos-sdk 0.43' - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - description: votes defined the queried votes. + this validator, the validator is credited with a delegation whose + number of + + bond shares is based on the amount of coins delegated divided by the + current + + exchange rate. Voting power can be calculated as total bonded shares + + multiplied by exchange rate. + description: validators contains all the queried validators. pagination: description: pagination defines the pagination in the response. type: object @@ -46783,477 +55486,489 @@ definitions: PageRequest.count_total was set, its value is undefined otherwise - description: QueryVotesResponse is the response type for the Query/Votes RPC method. - cosmos.gov.v1beta1.TallyParams: + title: >- + QueryValidatorsResponse is response type for the Query/Validators RPC + method + cosmos.staking.v1beta1.Redelegation: type: object properties: - quorum: + delegator_address: type: string - format: byte - description: |- - Minimum percentage of total stake needed to vote for a result to be - considered valid. - threshold: + description: delegator_address is the bech32-encoded address of the delegator. + validator_src_address: type: string - format: byte description: >- - Minimum proportion of Yes votes for proposal to pass. Default value: - 0.5. - veto_threshold: - type: string - format: byte - description: |- - Minimum value of Veto votes to Total votes ratio for proposal to be - vetoed. Default value: 1/3. - description: TallyParams defines the params for tallying votes on governance proposals. - cosmos.gov.v1beta1.TallyResult: - type: object - properties: - 'yes': - type: string - abstain: - type: string - 'no': - type: string - no_with_veto: - type: string - description: TallyResult defines a standard tally for a governance proposal. - cosmos.gov.v1beta1.Vote: - type: object - properties: - proposal_id: - type: string - format: uint64 - voter: + validator_src_address is the validator redelegation source operator + address. + validator_dst_address: type: string - option: description: >- - Deprecated: Prefer to use `options` instead. This field is set in - queries - - if and only if `len(options) == 1` and that option has weight 1. In - all - - other cases, this field will default to VOTE_OPTION_UNSPECIFIED. - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - options: + validator_dst_address is the validator redelegation destination + operator address. + entries: type: array items: type: object properties: - option: + creation_height: type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED + format: int64 description: >- - VoteOption enumerates the valid vote options for a given - governance proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - weight: + creation_height defines the height which the redelegation took + place. + completion_time: type: string - description: |- - WeightedVoteOption defines a unit of vote for vote split. + format: date-time + description: >- + completion_time defines the unix time for redelegation + completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance when redelegation + started. + shares_dst: + type: string + description: >- + shares_dst is the amount of destination-validator shares created + by redelegation. + description: >- + RedelegationEntry defines a redelegation object with relevant + metadata. + description: |- + entries are the redelegation entries. - Since: cosmos-sdk 0.43 - title: 'Since: cosmos-sdk 0.43' - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. - cosmos.gov.v1beta1.VoteOption: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED + redelegation entries description: >- - VoteOption enumerates the valid vote options for a given governance - proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - cosmos.gov.v1beta1.VotingParams: - type: object - properties: - voting_period: - type: string - description: Length of the voting period. - description: VotingParams defines the params for voting on governance proposals. - cosmos.gov.v1beta1.WeightedVoteOption: - type: object - properties: - option: - type: string - enum: - - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_YES - - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_NO - - VOTE_OPTION_NO_WITH_VETO - default: VOTE_OPTION_UNSPECIFIED - description: >- - VoteOption enumerates the valid vote options for a given governance - proposal. - - - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_YES: VOTE_OPTION_YES defines a yes vote option. - - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines an abstain vote option. - - VOTE_OPTION_NO: VOTE_OPTION_NO defines a no vote option. - - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. - weight: - type: string - description: |- - WeightedVoteOption defines a unit of vote for vote split. + Redelegation contains the list of a particular delegator's redelegating + bonds - 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 atoms - 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 atoms - 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.params.v1beta1.ParamChange: - type: object - properties: - subspace: - type: string - key: - type: string - value: - type: string - description: |- - ParamChange defines an individual parameter change, for use in - ParameterChangeProposal. - cosmos.params.v1beta1.QueryParamsResponse: - type: object - properties: - param: - description: param defines the queried parameter. - type: object - properties: - subspace: - type: string - key: - type: string - value: - type: string - description: QueryParamsResponse is response type for the Query/Params RPC method. - cosmos.slashing.v1beta1.MsgUnjailResponse: - type: object - title: MsgUnjailResponse defines the Msg/Unjail response type - cosmos.slashing.v1beta1.Params: + from a particular source validator to a particular destination validator. + cosmos.staking.v1beta1.RedelegationEntry: type: object properties: - signed_blocks_window: + creation_height: type: string format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: + description: creation_height defines the height which the redelegation took place. + completion_time: type: string - slash_fraction_double_sign: + format: date-time + description: completion_time defines the unix time for redelegation completion. + initial_balance: type: string - format: byte - slash_fraction_downtime: + description: initial_balance defines the initial balance when redelegation started. + shares_dst: type: string - format: byte - description: Params represents the parameters used for by the slashing module. - cosmos.slashing.v1beta1.QueryParamsResponse: + description: >- + shares_dst is the amount of destination-validator shares created by + redelegation. + description: RedelegationEntry defines a redelegation object with relevant metadata. + cosmos.staking.v1beta1.RedelegationEntryResponse: type: object properties: - params: + redelegation_entry: type: object properties: - signed_blocks_window: + creation_height: type: string format: int64 - min_signed_per_window: - type: string - format: byte - downtime_jail_duration: + description: >- + creation_height defines the height which the redelegation took + place. + completion_time: type: string - slash_fraction_double_sign: + format: date-time + description: completion_time defines the unix time for redelegation completion. + initial_balance: type: string - format: byte - slash_fraction_downtime: + description: >- + initial_balance defines the initial balance when redelegation + started. + shares_dst: type: string - format: byte - description: Params represents the parameters used for by the slashing module. - title: QueryParamsResponse is the response type for the Query/Params RPC method - cosmos.slashing.v1beta1.QuerySigningInfoResponse: + description: >- + shares_dst is the amount of destination-validator shares created + by redelegation. + description: >- + RedelegationEntry defines a redelegation object with relevant + metadata. + balance: + type: string + description: >- + RedelegationEntryResponse is equivalent to a RedelegationEntry except that + it + + contains a balance in addition to shares which is more suitable for client + + responses. + cosmos.staking.v1beta1.RedelegationResponse: type: object properties: - val_signing_info: - title: val_signing_info is the signing info of requested val cons address + redelegation: type: object properties: - address: + delegator_address: type: string - start_height: + description: delegator_address is the bech32-encoded address of the delegator. + validator_src_address: type: string - format: int64 - title: Height at which validator was first a candidate OR was unjailed - index_offset: + description: >- + validator_src_address is the validator redelegation source + operator address. + validator_dst_address: type: string - format: int64 description: >- - Index which is incremented each time the validator was a bonded + validator_dst_address is the validator redelegation destination + operator address. + entries: + type: array + items: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the redelegation + took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for redelegation + completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance when + redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of destination-validator shares + created by redelegation. + description: >- + RedelegationEntry defines a redelegation object with relevant + metadata. + description: |- + entries are the redelegation entries. - in a block and may have signed a precommit or not. This in - conjunction with the + redelegation entries + description: >- + Redelegation contains the list of a particular delegator's + redelegating bonds - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. - jailed_until: - type: string - format: date-time - description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator set). It is set + from a particular source validator to a particular destination + validator. + entries: + type: array + items: + type: object + properties: + redelegation_entry: + type: object + properties: + creation_height: + type: string + format: int64 + description: >- + creation_height defines the height which the redelegation + took place. + completion_time: + type: string + format: date-time + description: >- + completion_time defines the unix time for redelegation + completion. + initial_balance: + type: string + description: >- + initial_balance defines the initial balance when + redelegation started. + shares_dst: + type: string + description: >- + shares_dst is the amount of destination-validator shares + created by redelegation. + description: >- + RedelegationEntry defines a redelegation object with relevant + metadata. + balance: + type: string + description: >- + RedelegationEntryResponse is equivalent to a RedelegationEntry + except that it - once the validator commits an equivocation or for any other - configured misbehiavor. - missed_blocks_counter: - type: string - format: int64 - description: >- - A counter kept to avoid unnecessary array reads. + contains a balance in addition to shares which is more suitable for + client - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. - description: >- - ValidatorSigningInfo defines a validator's signing info for monitoring - their + responses. + description: >- + RedelegationResponse is equivalent to a Redelegation except that its + entries - liveness activity. - title: >- - QuerySigningInfoResponse is the response type for the Query/SigningInfo - RPC + contain a balance in addition to shares which is more suitable for client - method - cosmos.slashing.v1beta1.QuerySigningInfosResponse: + responses. + cosmos.staking.v1beta1.UnbondingDelegation: type: object properties: - info: + delegator_address: + type: string + description: delegator_address is the bech32-encoded address of the delegator. + validator_address: + type: string + description: validator_address is the bech32-encoded address of the validator. + entries: type: array items: type: object properties: - address: - type: string - start_height: - type: string - format: int64 - title: Height at which validator was first a candidate OR was unjailed - index_offset: + creation_height: type: string format: int64 - description: >- - Index which is incremented each time the validator was a bonded - - in a block and may have signed a precommit or not. This in - conjunction with the - - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. - jailed_until: + description: creation_height is the height which the unbonding took place. + completion_time: type: string format: date-time - description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator set). It is set - - once the validator commits an equivocation or for any other - configured misbehiavor. - missed_blocks_counter: + description: completion_time is the unix time for unbonding completion. + initial_balance: type: string - format: int64 description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + initial_balance defines the tokens initially scheduled to + receive at completion. + balance: + type: string + description: balance defines the tokens to receive at completion. description: >- - ValidatorSigningInfo defines a validator's signing info for - monitoring their + UnbondingDelegationEntry defines an unbonding object with relevant + metadata. + description: |- + entries are the unbonding delegation entries. - liveness activity. - title: info is the signing info of all validators - pagination: + unbonding delegation entries + description: |- + UnbondingDelegation stores all of a single delegator's unbonding bonds + for a single validator in an time-ordered list. + cosmos.staking.v1beta1.UnbondingDelegationEntry: + type: object + properties: + creation_height: + type: string + format: int64 + description: creation_height is the height which the unbonding took place. + completion_time: + type: string + format: date-time + description: completion_time is the unix time for unbonding completion. + initial_balance: + type: string + description: >- + initial_balance defines the tokens initially scheduled to receive at + completion. + balance: + type: string + description: balance defines the tokens to receive at completion. + description: >- + UnbondingDelegationEntry defines an unbonding object with relevant + metadata. + cosmos.staking.v1beta1.Validator: + type: object + properties: + operator_address: + type: string + description: >- + operator_address defines the address of the validator's operator; bech + encoded in JSON. + consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, as a + Protobuf Any. 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': type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - 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. + protocol buffer message. This string must contain at least - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - title: >- - QuerySigningInfosResponse is the response type for the Query/SigningInfos - RPC + one "/" character. The last segment of the URL's path must + represent - method - cosmos.slashing.v1beta1.ValidatorSigningInfo: - type: object - properties: - address: + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary all types + that they + + expect it to use in the context of Any. However, for URLs which + use the + + scheme `http`, `https`, or no scheme, one can optionally set up a + type + + server that maps type URLs to message definitions as follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in the + official + + protobuf release, and it is not used for type URLs beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + jailed: + type: boolean + description: >- + jailed defined whether the validator has been jailed from bonded + status or not. + status: + description: status is the validator status (bonded/unbonding/unbonded). type: string - start_height: + enum: + - BOND_STATUS_UNSPECIFIED + - BOND_STATUS_UNBONDED + - BOND_STATUS_UNBONDING + - BOND_STATUS_BONDED + default: BOND_STATUS_UNSPECIFIED + tokens: type: string - format: int64 - title: Height at which validator was first a candidate OR was unjailed - index_offset: + description: tokens define the delegated tokens (incl. self-delegation). + delegator_shares: + type: string + description: >- + delegator_shares defines total shares issued to a validator's + delegators. + description: + description: description defines the description terms for the validator. + type: object + properties: + moniker: + type: string + description: moniker defines a human-readable name for the validator. + identity: + type: string + description: >- + identity defines an optional identity signature (ex. UPort or + Keybase). + website: + type: string + description: website defines an optional website link. + security_contact: + type: string + description: security_contact defines an optional email for security contact. + details: + type: string + description: details define other optional details. + unbonding_height: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded - - in a block and may have signed a precommit or not. This in conjunction - with the - - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. - jailed_until: + unbonding_height defines, if unbonding, the height at which this + validator has begun unbonding. + unbonding_time: type: string format: date-time description: >- - Timestamp until which the validator is jailed due to liveness - downtime. - tombstoned: - type: boolean - description: >- - Whether or not a validator has been tombstoned (killed out of - validator set). It is set - - once the validator commits an equivocation or for any other configured - misbehiavor. - missed_blocks_counter: + unbonding_time defines, if unbonding, the min time for the validator + to complete unbonding. + commission: + description: commission defines the commission parameters. + type: object + properties: + commission_rates: + description: >- + commission_rates defines the initial commission rates to be used + for creating a validator. + type: object + properties: + rate: + type: string + description: >- + rate is the commission rate charged to delegators, as a + fraction. + max_rate: + type: string + description: >- + max_rate defines the maximum commission rate which validator + can ever charge, as a fraction. + max_change_rate: + type: string + description: >- + max_change_rate defines the maximum daily increase of the + validator commission, as a fraction. + update_time: + type: string + format: date-time + description: update_time is the last time the commission rate was changed. + min_self_delegation: type: string - format: int64 description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + min_self_delegation is the validator's self declared minimum self + delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean description: >- - ValidatorSigningInfo defines a validator's signing info for monitoring - their + Validator defines a validator, together with the total amount of the - liveness activity. - cosmos.staking.v1beta1.BondStatus: + Validator's bond shares and their exchange rate to coins. Slashing results + in + + a decrease in the exchange rate, allowing correct calculation of future + + undelegations without iterating over delegators. When coins are delegated + to + + this validator, the validator is credited with a delegation whose number + of + + bond shares is based on the amount of coins delegated divided by the + current + + exchange rate. Voting power can be calculated as total bonded shares + + multiplied by exchange rate. + cosmos.staking.v1beta1.ValidatorApproval: + type: object + properties: + approver_address: + type: string + enabled: + type: boolean + cosmos.staking.v2beta1.BondStatus: type: string enum: - BOND_STATUS_UNSPECIFIED @@ -47268,7 +55983,7 @@ definitions: - BOND_STATUS_UNBONDED: UNBONDED defines a validator that is not bonded. - BOND_STATUS_UNBONDING: UNBONDING defines a validator that is unbonding. - BOND_STATUS_BONDED: BONDED defines a validator that is bonded. - cosmos.staking.v1beta1.Commission: + cosmos.staking.v2beta1.Commission: type: object properties: commission_rates: @@ -47295,7 +56010,7 @@ definitions: format: date-time description: update_time is the last time the commission rate was changed. description: Commission defines commission parameters for a given validator. - cosmos.staking.v1beta1.CommissionRates: + cosmos.staking.v2beta1.CommissionRates: type: object properties: rate: @@ -47316,7 +56031,7 @@ definitions: creating a validator. - cosmos.staking.v1beta1.Delegation: + cosmos.staking.v2beta1.Delegation: type: object properties: delegator_address: @@ -47332,7 +56047,7 @@ definitions: Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator. - cosmos.staking.v1beta1.DelegationResponse: + cosmos.staking.v2beta1.DelegationResponse: type: object properties: delegation: @@ -47366,7 +56081,7 @@ definitions: description: |- DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses. - cosmos.staking.v1beta1.Description: + cosmos.staking.v2beta1.Description: type: object properties: moniker: @@ -47387,7 +56102,7 @@ definitions: type: string description: details define other optional details. description: Description defines a validator description. - cosmos.staking.v1beta1.HistoricalInfo: + cosmos.staking.v2beta1.HistoricalInfo: type: object properties: header: @@ -47643,6 +56358,20 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -47674,30 +56403,44 @@ definitions: recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter). - cosmos.staking.v1beta1.MsgBeginRedelegateResponse: + cosmos.staking.v2beta1.MsgBeginRedelegateResponse: type: object properties: completion_time: type: string format: date-time description: MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. - cosmos.staking.v1beta1.MsgCreateValidatorResponse: + cosmos.staking.v2beta1.MsgCreateValidatorResponse: type: object description: MsgCreateValidatorResponse defines the Msg/CreateValidator response type. - cosmos.staking.v1beta1.MsgDelegateResponse: + cosmos.staking.v2beta1.MsgDelegateResponse: type: object description: MsgDelegateResponse defines the Msg/Delegate response type. - cosmos.staking.v1beta1.MsgEditValidatorResponse: + cosmos.staking.v2beta1.MsgEditValidatorResponse: type: object description: MsgEditValidatorResponse defines the Msg/EditValidator response type. - cosmos.staking.v1beta1.MsgUndelegateResponse: + cosmos.staking.v2beta1.MsgSetValidatorApprovalResponse: + type: object + cosmos.staking.v2beta1.MsgUndelegateResponse: type: object properties: completion_time: type: string format: date-time description: MsgUndelegateResponse defines the Msg/Undelegate response type. - cosmos.staking.v1beta1.Params: + cosmos.staking.v2beta1.MsgWhitelistDelegatorResponse: + type: object + properties: + whitelist_delegator: + type: object + properties: + validator_address: + type: string + delegator_address: + type: array + items: + type: string + cosmos.staking.v2beta1.Params: type: object properties: unbonding_time: @@ -47721,7 +56464,7 @@ definitions: type: string description: bond_denom defines the bondable coin denomination. description: Params defines the parameters for the staking module. - cosmos.staking.v1beta1.Pool: + cosmos.staking.v2beta1.Pool: type: object properties: not_bonded_tokens: @@ -47731,7 +56474,46 @@ definitions: description: |- Pool is used for tracking bonded and not-bonded token supply of the bond denomination. - cosmos.staking.v1beta1.QueryDelegationResponse: + cosmos.staking.v2beta1.QueryAllWhitelistdelegatorResponse: + type: object + properties: + whitelist_delegator: + type: array + items: + type: object + properties: + validator_address: + type: string + delegator_address: + 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; + } + cosmos.staking.v2beta1.QueryDelegationResponse: type: object properties: delegation_response: @@ -47780,7 +56562,7 @@ definitions: description: >- QueryDelegationResponse is response type for the Query/Delegation RPC method. - cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse: + cosmos.staking.v2beta1.QueryDelegatorDelegationsResponse: type: object properties: delegation_responses: @@ -47855,7 +56637,7 @@ definitions: description: |- QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method. - cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse: + cosmos.staking.v2beta1.QueryDelegatorUnbondingDelegationsResponse: type: object properties: unbonding_responses: @@ -47929,7 +56711,7 @@ definitions: description: |- QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method. - cosmos.staking.v1beta1.QueryDelegatorValidatorResponse: + cosmos.staking.v2beta1.QueryDelegatorValidatorResponse: type: object properties: validator: @@ -48094,10 +56876,24 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: |- QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method. - cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse: + cosmos.staking.v2beta1.QueryDelegatorValidatorsResponse: type: object properties: validators: @@ -48267,6 +57063,20 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -48310,7 +57120,19 @@ definitions: description: |- QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method. - cosmos.staking.v1beta1.QueryHistoricalInfoResponse: + cosmos.staking.v2beta1.QueryGetWhitelistDelegatorResponse: + type: object + properties: + whitelist_delegator: + type: object + properties: + validator_address: + type: string + delegator_address: + type: array + items: + type: string + cosmos.staking.v2beta1.QueryHistoricalInfoResponse: type: object properties: hist: @@ -48571,6 +57393,20 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -48599,7 +57435,7 @@ definitions: RPC method. - cosmos.staking.v1beta1.QueryParamsResponse: + cosmos.staking.v2beta1.QueryParamsResponse: type: object properties: params: @@ -48627,7 +57463,7 @@ definitions: type: string description: bond_denom defines the bondable coin denomination. description: QueryParamsResponse is response type for the Query/Params RPC method. - cosmos.staking.v1beta1.QueryPoolResponse: + cosmos.staking.v2beta1.QueryPoolResponse: type: object properties: pool: @@ -48639,7 +57475,7 @@ definitions: bonded_tokens: type: string description: QueryPoolResponse is response type for the Query/Pool RPC method. - cosmos.staking.v1beta1.QueryRedelegationsResponse: + cosmos.staking.v2beta1.QueryRedelegationsResponse: type: object properties: redelegation_responses: @@ -48779,7 +57615,7 @@ definitions: RPC method. - cosmos.staking.v1beta1.QueryUnbondingDelegationResponse: + cosmos.staking.v2beta1.QueryUnbondingDelegationResponse: type: object properties: unbond: @@ -48825,7 +57661,17 @@ definitions: description: |- QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method. - cosmos.staking.v1beta1.QueryValidatorDelegationsResponse: + cosmos.staking.v2beta1.QueryValidatorApprovalResponse: + type: object + properties: + validator_approval: + type: object + properties: + approver_address: + type: string + enabled: + type: boolean + cosmos.staking.v2beta1.QueryValidatorDelegationsResponse: type: object properties: delegation_responses: @@ -48899,7 +57745,7 @@ definitions: title: |- QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method - cosmos.staking.v1beta1.QueryValidatorResponse: + cosmos.staking.v2beta1.QueryValidatorResponse: type: object properties: validator: @@ -49064,8 +57910,22 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean title: QueryValidatorResponse is response type for the Query/Validator RPC method - cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse: + cosmos.staking.v2beta1.QueryValidatorUnbondingDelegationsResponse: type: object properties: unbonding_responses: @@ -49139,7 +57999,7 @@ definitions: description: |- QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method. - cosmos.staking.v1beta1.QueryValidatorsResponse: + cosmos.staking.v2beta1.QueryValidatorsResponse: type: object properties: validators: @@ -49309,6 +58169,20 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -49352,7 +58226,7 @@ definitions: title: >- QueryValidatorsResponse is response type for the Query/Validators RPC method - cosmos.staking.v1beta1.Redelegation: + cosmos.staking.v2beta1.Redelegation: type: object properties: delegator_address: @@ -49407,7 +58281,7 @@ definitions: bonds from a particular source validator to a particular destination validator. - cosmos.staking.v1beta1.RedelegationEntry: + cosmos.staking.v2beta1.RedelegationEntry: type: object properties: creation_height: @@ -49427,7 +58301,7 @@ definitions: shares_dst is the amount of destination-validator shares created by redelegation. description: RedelegationEntry defines a redelegation object with relevant metadata. - cosmos.staking.v1beta1.RedelegationEntryResponse: + cosmos.staking.v2beta1.RedelegationEntryResponse: type: object properties: redelegation_entry: @@ -49465,7 +58339,7 @@ definitions: contains a balance in addition to shares which is more suitable for client responses. - cosmos.staking.v1beta1.RedelegationResponse: + cosmos.staking.v2beta1.RedelegationResponse: type: object properties: redelegation: @@ -49574,7 +58448,7 @@ definitions: contain a balance in addition to shares which is more suitable for client responses. - cosmos.staking.v1beta1.UnbondingDelegation: + cosmos.staking.v2beta1.UnbondingDelegation: type: object properties: delegator_address: @@ -49614,7 +58488,7 @@ definitions: description: |- UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list. - cosmos.staking.v1beta1.UnbondingDelegationEntry: + cosmos.staking.v2beta1.UnbondingDelegationEntry: type: object properties: creation_height: @@ -49636,7 +58510,7 @@ definitions: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - cosmos.staking.v1beta1.Validator: + cosmos.staking.v2beta1.Validator: type: object properties: operator_address: @@ -49792,6 +58666,20 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. + min_delegation: + type: string + delegation_increment: + type: string + max_license: + type: string + license_count: + type: string + license_mode: + type: boolean + enable_redelegation: + type: boolean + special_mode: + type: boolean description: >- Validator defines a validator, together with the total amount of the @@ -49812,6 +58700,22 @@ definitions: exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate. + cosmos.staking.v2beta1.ValidatorApproval: + type: object + properties: + approver_address: + type: string + enabled: + type: boolean + cosmos.staking.v2beta1.WhitelistDelegator: + type: object + properties: + validator_address: + type: string + delegator_address: + type: array + items: + type: string cosmos.base.abci.v1beta1.ABCIMessageLog: type: object properties: @@ -58232,6 +67136,19 @@ definitions: value: type: string title: ActionParameter + thesixnetwork.sixnft.nftmngr.ActionParams: + type: object + properties: + name: + type: string + desc: + type: string + data_type: + type: string + required: + type: boolean + default_value: + type: string thesixnetwork.sixnft.nftmngr.AllowedActioner: type: string enum: @@ -58357,286 +67274,109 @@ definitions: type: string opensea: type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - thesixnetwork.sixnft.nftmngr.ExecutorOfSchema: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: array - items: - type: string - thesixnetwork.sixnft.nftmngr.FeeConfig: - type: object - properties: - fee_amount: - type: string - fee_distributions: - type: array - items: - type: object - properties: - method: - type: string - enum: - - BURN - - REWARD_POOL - - TRANSFER - default: BURN - portion: - type: number - format: float - thesixnetwork.sixnft.nftmngr.FeeDistribution: - type: object - properties: - method: - type: string - enum: - - BURN - - REWARD_POOL - - TRANSFER - default: BURN - portion: - type: number - format: float - thesixnetwork.sixnft.nftmngr.FeeDistributionMethod: - type: string - enum: - - BURN - - REWARD_POOL - - TRANSFER - default: BURN - thesixnetwork.sixnft.nftmngr.FeeSubject: - type: string - enum: - - CREATE_NFT_SCHEMA - default: CREATE_NFT_SCHEMA - thesixnetwork.sixnft.nftmngr.FlagStatus: - type: object - properties: - status_name: - type: string - status_value: - type: boolean - thesixnetwork.sixnft.nftmngr.FloatAttributeValue: - type: object - properties: - value: - type: number - format: double - thesixnetwork.sixnft.nftmngr.MapTokenToMinter: - type: object - properties: - token_id: - type: string - minter: - type: string - thesixnetwork.sixnft.nftmngr.MetadataCreator: - type: object - properties: - nftSchemaCode: - type: string - metadataMintedBy: - type: array - items: - type: object - properties: - token_id: - type: string - minter: - type: string - thesixnetwork.sixnft.nftmngr.MsgAddActionResponse: - type: object - properties: - code: - type: string - name: - type: string - onchainData: - type: object - properties: - nft_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - token_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - actions: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - disable: - type: boolean - when: - type: string - then: - type: array - items: - type: string - allowed_actioner: - type: string - enum: - - ALLOWED_ACTIONER_ALL - - ALLOWED_ACTIONER_SYSTEM_ONLY - - ALLOWED_ACTIONER_USER_ONLY - default: ALLOWED_ACTIONER_ALL - params: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string - status: - type: array - items: - type: object - properties: - status_name: - type: string - status_value: - type: boolean + properties: + display_type: + type: string + trait_type: + type: string + max_value: + type: string + format: uint64 + thesixnetwork.sixnft.nftmngr.ExecutorOfSchema: + type: object + properties: + nftSchemaCode: + type: string + executorAddress: + type: array + items: + type: string + thesixnetwork.sixnft.nftmngr.FeeConfig: + type: object + properties: + fee_amount: + type: string + fee_distributions: + type: array + items: + type: object + properties: + method: + type: string + enum: + - BURN + - REWARD_POOL + - TRANSFER + default: BURN + portion: + type: number + format: float + thesixnetwork.sixnft.nftmngr.FeeDistribution: + type: object + properties: + method: + type: string + enum: + - BURN + - REWARD_POOL + - TRANSFER + default: BURN + portion: + type: number + format: float + thesixnetwork.sixnft.nftmngr.FeeDistributionMethod: + type: string + enum: + - BURN + - REWARD_POOL + - TRANSFER + default: BURN + thesixnetwork.sixnft.nftmngr.FeeSubject: + type: string + enum: + - CREATE_NFT_SCHEMA + default: CREATE_NFT_SCHEMA + thesixnetwork.sixnft.nftmngr.FlagStatus: + type: object + properties: + status_name: + type: string + status_value: + type: boolean + thesixnetwork.sixnft.nftmngr.FloatAttributeValue: + type: object + properties: + value: + type: number + format: double + thesixnetwork.sixnft.nftmngr.MapTokenToMinter: + type: object + properties: + token_id: + type: string + minter: + type: string + thesixnetwork.sixnft.nftmngr.MetadataCreator: + type: object + properties: + nftSchemaCode: + type: string + metadataMintedBy: + type: array + items: + type: object + properties: + token_id: + type: string + minter: + type: string + thesixnetwork.sixnft.nftmngr.MsgAddActionResponse: + type: object + properties: + code: + type: string + name: + type: string thesixnetwork.sixnft.nftmngr.MsgAddAttributeResponse: type: object properties: @@ -58644,183 +67384,6 @@ definitions: type: string name: type: string - onchainData: - type: object - properties: - nft_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - token_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - actions: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - disable: - type: boolean - when: - type: string - then: - type: array - items: - type: string - allowed_actioner: - type: string - enum: - - ALLOWED_ACTIONER_ALL - - ALLOWED_ACTIONER_SYSTEM_ONLY - - ALLOWED_ACTIONER_USER_ONLY - default: ALLOWED_ACTIONER_ALL - params: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string - status: - type: array - items: - type: object - properties: - status_name: - type: string - status_value: - type: boolean thesixnetwork.sixnft.nftmngr.MsgChangeOrgOwnerResponse: type: object properties: @@ -58897,6 +67460,8 @@ definitions: properties: nftSchemaCode: type: string + tokenId: + type: string thesixnetwork.sixnft.nftmngr.MsgSetAttributeOveridingResponse: type: object properties: @@ -58958,190 +67523,8 @@ definitions: type: string name: type: string - onchainDataAction: - type: object - properties: - nft_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - token_attributes: - type: array - items: - type: object - properties: - name: - type: string - data_type: - type: string - required: - type: boolean - display_value_field: - type: string - display_option: - type: object - properties: - bool_true_value: - type: string - bool_false_value: - type: string - opensea: - type: object - properties: - display_type: - type: string - trait_type: - type: string - max_value: - type: string - format: uint64 - default_mint_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - hidden_overide: - type: boolean - title: flag that allows action to override hidden - hidden_to_marketplace: - type: boolean - index: - type: string - format: uint64 - actions: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - disable: - type: boolean - when: - type: string - then: - type: array - items: - type: string - allowed_actioner: - type: string - enum: - - ALLOWED_ACTIONER_ALL - - ALLOWED_ACTIONER_SYSTEM_ONLY - - ALLOWED_ACTIONER_USER_ONLY - default: ALLOWED_ACTIONER_ALL - params: - type: array - items: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string - status: - type: array - items: - type: object - properties: - status_name: - type: string - status_value: - type: boolean - thesixnetwork.sixnft.nftmngr.MsgUpdateActionExecutorResponse: - type: object - properties: - nftSchemaCode: - type: string - executorAddress: - type: string + status: + type: boolean thesixnetwork.sixnft.nftmngr.MsgUpdateActionResponse: type: object properties: @@ -59156,42 +67539,6 @@ definitions: type: string name: type: string - new_attribute: - type: object - properties: - nftSchemaCode: - type: string - name: - type: string - data_type: - type: string - current_value: - type: object - properties: - number_attribute_value: - type: object - properties: - value: - type: string - format: uint64 - string_attribute_value: - type: object - properties: - value: - type: string - boolean_attribute_value: - type: object - properties: - value: - type: boolean - float_attribute_value: - type: object - properties: - value: - type: number - format: double - creator: - type: string thesixnetwork.sixnft.nftmngr.NFTFeeBalance: type: object properties: @@ -61453,19 +69800,6 @@ definitions: - BASE - TOKEN default: BASE - thesixnetwork.sixnft.nftmngr.action_params: - type: object - properties: - name: - type: string - desc: - type: string - data_type: - type: string - required: - type: boolean - default_value: - type: string thesixnetwork.sixnft.nftoracle.ActionOracleRequest: type: object properties: diff --git a/go.mod b/go.mod index 0ed1be87..4a1caed8 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,11 @@ module github.com/thesixnetwork/sixnft go 1.18 require ( - github.com/cosmos/cosmos-sdk v0.45.5 + github.com/cosmos/cosmos-sdk v0.45.6 github.com/cosmos/ibc-go/v3 v3.0.1 github.com/ethereum/go-ethereum v1.9.25 github.com/gogo/protobuf v1.3.3 - github.com/golang/protobuf v1.5.3 + github.com/golang/protobuf v1.5.4 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hyperjumptech/grule-rule-engine v1.11.0 @@ -18,9 +18,9 @@ require ( github.com/tendermint/spn v0.2.1-0.20220708132853-26a17f03c072 github.com/tendermint/tendermint v0.34.19 github.com/tendermint/tm-db v0.6.7 - google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d - google.golang.org/grpc v1.58.0 - google.golang.org/protobuf v1.31.0 + google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 + google.golang.org/grpc v1.64.1 + google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v2 v2.4.0 ) @@ -41,6 +41,7 @@ require ( github.com/blang/semver v3.5.1+incompatible // indirect github.com/bmatcuk/doublestar v1.3.2 // indirect github.com/btcsuite/btcd v0.22.0-beta // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff v2.2.1+incompatible // indirect github.com/cespare/xxhash v1.1.0 // indirect @@ -53,10 +54,10 @@ require ( github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gorocksdb v1.2.0 // indirect github.com/cosmos/iavl v0.17.3 // indirect - github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect - github.com/cosmos/ledger-go v0.9.2 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/danieljoos/wincred v1.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.2 // indirect github.com/dgraph-io/ristretto v0.0.3 // indirect @@ -81,8 +82,9 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/gateway v1.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/snappy v0.0.3 // indirect + github.com/golang/snappy v0.0.4 // indirect github.com/google/btree v1.0.0 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/orderedcode v0.0.1 // indirect github.com/google/uuid v1.2.0 // indirect github.com/gookit/color v1.5.0 // indirect @@ -93,7 +95,7 @@ require ( github.com/gtank/merlin v0.1.1 // indirect github.com/gtank/ristretto255 v0.1.2 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect github.com/iancoleman/strcase v0.2.0 // indirect @@ -152,7 +154,7 @@ require ( github.com/spf13/viper v1.10.1 // indirect github.com/src-d/gcfg v1.4.0 // indirect github.com/subosito/gotenv v1.2.0 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca // indirect + github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect github.com/takuoki/gocase v1.0.0 // indirect github.com/tendermint/btcd v0.1.1 // indirect github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect @@ -161,23 +163,23 @@ require ( github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce // indirect github.com/xanzy/ssh-agent v0.2.1 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect - github.com/zondax/hid v0.9.0 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.6 // indirect go.opencensus.io v0.23.0 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.7.0 // indirect go.uber.org/zap v1.21.0 // indirect - golang.org/x/crypto v0.13.0 // indirect - golang.org/x/mod v0.8.0 // indirect - golang.org/x/net v0.15.0 // indirect - golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect - golang.org/x/sys v0.12.0 // indirect - golang.org/x/term v0.12.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/crypto v0.24.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.26.0 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/term v0.21.0 // indirect + golang.org/x/text v0.17.0 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect gopkg.in/ini.v1 v1.66.3 // indirect gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect gopkg.in/src-d/go-git.v4 v4.13.1 // indirect @@ -187,6 +189,8 @@ require ( ) replace ( + github.com/cosmos/cosmos-sdk => github.com/thesixnetwork/cosmos-sdk v0.45.6-six-special-node + github.com/ethereum/go-ethereum => github.com/thesixnetwork/go-ethereum v1.10.20-0.20240807055744-ccf1400f91dd github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 google.golang.org/grpc => google.golang.org/grpc v1.33.2 diff --git a/go.sum b/go.sum index 4c1b4d62..8d299c1d 100644 --- a/go.sum +++ b/go.sum @@ -2,12 +2,14 @@ bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxo bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= 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= cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= @@ -35,6 +37,7 @@ cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvf cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= @@ -49,6 +52,7 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.0.0-beta.2 h1:/BZRNzm8N4K4eWfK28dL4yescorxtO7YG1yun8fy+pI= filippo.io/edwards25519 v1.0.0-beta.2/go.mod h1:X+pm78QAUPtFLi1z9PYIlS/bdDnvbCOGKtZ+ACWEf7o= @@ -56,41 +60,32 @@ github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMb github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.1.6 h1:kVDC2uCgVwecxCk+9zoCt2uEL6dt+dfVzMvGgnVcIuM= github.com/99designs/keyring v1.1.6/go.mod h1:16e0ds7LGQQcT59QqkTg72Hh5ShM51Byv5PEmW6uoRU= -github.com/Azure/azure-pipeline-go v0.2.1/go.mod h1:UGSo8XybXnIGZ3epmeBw7Jdz+HiUVpqIlpz/HKHylF4= -github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.11.0/go.mod h1:HcM1YX14R7CJcghJGOYCgdezslRSVzqwLf/q+4Y2r/0= github.com/Azure/azure-sdk-for-go/sdk/internal v0.7.0/go.mod h1:yqy467j36fJxcRV2TzfVZ1pCb5vxm4BtZPUdYWe/Xo8= -github.com/Azure/azure-storage-blob-go v0.7.0/go.mod h1:f9YQKtsG1nMisotuTPpO0tjNuEjKRYAcJU8/ydDI++4= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= 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/Azure/go-autorest v10.8.1+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= 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= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= +github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= @@ -135,7 +130,7 @@ github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:H github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= -github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= +github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= 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/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= @@ -159,14 +154,15 @@ github.com/alexflint/go-filemutex v0.0.0-20171022225611-72bdc8eae2ae/go.mod h1:C github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/andrew-d/go-termutil v0.0.0-20150726205930-009166a695a2 h1:axBiC50cNZOs7ygH5BgQp4N+aYrZ2DNpWZ1KG3VOSOM= github.com/andrew-d/go-termutil v0.0.0-20150726205930-009166a695a2/go.mod h1:jnzFpU88PccN/tPPhCpnNU8mZphvKxYM9lLNkd8e+os= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220527190237-ee62e23da966 h1:mEzJ8SH4M5wDL8C4a17yX2YeD/FIXV5w8FJekByaBi0= github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220527190237-ee62e23da966/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY= +github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847/go.mod h1:D/tb0zPVXnP7fmsLZjtdUhSsumbK/ij54UXjjVgMGxQ= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= @@ -181,12 +177,20 @@ github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6l github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= -github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.40.45/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo= github.com/aws/aws-sdk-go-v2 v1.9.1/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= +github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.8.1/go.mod h1:CM+19rL1+4dFWnOQKwDc7H1KwXTz+h61oUSHyhV0b3o= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= +github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= +github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= +github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= +github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= @@ -206,16 +210,19 @@ github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnweb github.com/bmatcuk/doublestar v1.3.2 h1:mzUncgFmpzNUhIITFqGdZ8nUU0O7JTJzRO8VdkeLCSo= github.com/bmatcuk/doublestar v1.3.2/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= +github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= +github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bshuster-repo/logrus-logstash-hook v0.4.1/go.mod h1:zsTqEiSzDgAa/8GZR7E1qaXrhYNDKBYy5/dWPTIflbk= -github.com/btcsuite/btcd v0.0.0-20171128150713-2e60448ffcc6/go.mod h1:Dmm/EzmjnCiweXmzRIAiUWCInVmPgjkzgv5k4tVyXiQ= -github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0= github.com/btcsuite/btcd v0.0.0-20190315201642-aa6e0f35703c/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo= github.com/btcsuite/btcd v0.22.0-beta/go.mod h1:9n5ntfhhHQBIhUvlhDvD3Qg6fRUj4jkN0VB8L8svzOA= +github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU= +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/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20180706230648-ab6388e0c60a/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= 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= @@ -234,6 +241,7 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2 github.com/bugsnag/bugsnag-go v0.0.0-20141110184014-b1d153021fcd/go.mod h1:2oa8nejYd4cQ/b0hMIopN0lCRxU0bueqREvZLWFrtK8= github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b/go.mod h1:obH5gd0BsqsP2LwDJ9aOkm/6J86V6lyAXCoQWGw3K50= github.com/bugsnag/panicwrap v0.0.0-20151223152923-e2c28503fcd0/go.mod h1:D/8v3kj0zr8ZAKg1AQ6crr+5VwKN5eIywRkfhyM/+dE= +github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= github.com/casbin/casbin/v2 v2.37.0/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= @@ -263,7 +271,7 @@ github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6D github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5PVGJng= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= -github.com/cloudflare/cloudflare-go v0.10.2-0.20190916151808-a80f83b9add9/go.mod h1:1MxXX1Ux4x6mqPmjkUgTP1CdXIBXKX7T+Jk9Gxrmx+U= +github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= @@ -276,6 +284,8 @@ github.com/coinbase/rosetta-sdk-go v0.7.0/go.mod h1:7nD3oBPIiHqhRprqvMgPoGxe/nyq github.com/confio/ics23/go v0.6.6/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= github.com/confio/ics23/go v0.7.0 h1:00d2kukk7sPoHWL4zZBZwzxnpA2pec1NPdwbSokJ5w8= github.com/confio/ics23/go v0.7.0/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg= +github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ= +github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= github.com/containerd/aufs v0.0.0-20200908144142-dab0cbea06f4/go.mod h1:nukgQABAEopAHvB6j7cnP5zJ+/3aVcE7hCYqvIwAHyE= github.com/containerd/aufs v0.0.0-20201003224125-76a6863f2989/go.mod h1:AkGGQs9NM2vtYHaUen+NljV0/baGCAPELGm2q9ZXpWU= github.com/containerd/aufs v0.0.0-20210316121734-20793ff83c97/go.mod h1:kL5kd6KM5TzQjR79jljyi4olc1Vrx6XBlcyj3gNv2PU= @@ -387,8 +397,6 @@ github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfc github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44= github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= -github.com/cosmos/cosmos-sdk v0.45.5 h1:GVrZM+lss6y626Pq6loxh/3KLRgK/J6/alTkcKkYmGU= -github.com/cosmos/cosmos-sdk v0.45.5/go.mod h1:WOqtDxN3eCCmnYLVla10xG7lEXkFjpTaqm2a2WasgCc= 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= @@ -398,16 +406,15 @@ github.com/cosmos/iavl v0.17.3 h1:s2N819a2olOmiauVa0WAhoIJq9EhSXE9HDBAoR9k+8Y= github.com/cosmos/iavl v0.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w= github.com/cosmos/ibc-go/v3 v3.0.1 h1:JMQhAHYt/chIm240kIXeFIJfQr8m6FR3sE/eDqbpxWA= github.com/cosmos/ibc-go/v3 v3.0.1/go.mod h1:DbOlOa4yKumaHGKApKkJN90L88PCjSD9ZBdAfL9tT40= -github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4= -github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY= -github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI= -github.com/cosmos/ledger-go v0.9.2/go.mod h1:oZJ2hHAZROdlHiwTg4t7kP+GKIIkBT+o6c9QWFanOyI= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4= github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1SMSibvLzxjeJLnrYEVLULFNiHY9YfQ= @@ -416,12 +423,20 @@ github.com/d2g/dhcp4server v0.0.0-20181031114812-7d4a0a7f59a5/go.mod h1:Eo87+Kg/ github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjIciD2oAxI7DmWRx6gbeqrkoLqv3MV0vzNad+I= github.com/danieljoos/wincred v1.0.2 h1:zf4bhty2iLuwgjgpraD2E9UbvO+fe54XXGJbOwe23fU= github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= +github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= 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/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= +github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= +github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= +github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfzrpArPY/aFvc9yU= github.com/denverdino/aliyungo v0.0.0-20190125010748-a747050bb1ba/go.mod h1:dV8lFg6daOBZbT6/BDGIz6Y3WFGn8juu6G+CQ6LHtl0= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= @@ -433,19 +448,21 @@ github.com/dgraph-io/ristretto v0.0.3 h1:jh22xisGBjrEVnRZ1DVTpBVQm0Xndu8sMl0CWDz github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgrijalva/jwt-go v0.0.0-20170104182250-a601269ab70c/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMaSuZ+SZcx/wljOQKvp5srsbCiKDEb6K2wC4+PiBmQ= 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-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dlclark/regexp2 v1.2.0/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= +github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= +github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= github.com/docker/distribution v0.0.0-20190905152932-14b96e55d84c/go.mod h1:0+TTO4EOBfRPhZXAeF1Vu+W3hHZ8eLp8PgKVZlcvtFY= github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/docker v1.6.2/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v20.10.7+incompatible h1:Z6O9Nhsjv+ayUEeI1IojKbYcsGdgYSNqxe1s2MYzUhQ= github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= @@ -460,18 +477,18 @@ github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE= github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dop251/goja v0.0.0-20200721192441-a695b0cdd498/go.mod h1:Mw6PkjjMXWbTj+nnj4s3QPXq1jaT0s5pC0iFD4+BOAA= +github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= +github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= 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-0.20200219035652-afde56e7acac h1:opbrjaN/L8gg6Xh5D04Tem+8xVcz6ajZlGCs49mQgyg= github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b h1:HBah4D48ypg3J7Np4N+HY/ZR76fx3HEUGxDU6Uk39oQ= github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b/go.mod h1:7BvyPhdbLxMXIYTFPLsyJRFMsKmOZnQmzh6Gb+uquuM= -github.com/dvyukov/go-fuzz v0.0.0-20200318091601-be3528f3a813/go.mod h1:11Gm+ccJnvAhCNLlf5+cS9KjtbaD5I5zaZpFMsTHWTw= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= @@ -484,8 +501,6 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= -github.com/ethereum/go-ethereum v1.9.25 h1:mMiw/zOOtCLdGLWfcekua0qPrJTe7FVIiHJ4IKNTfR0= -github.com/ethereum/go-ethereum v1.9.25/go.mod h1:vMkFiYLHI4tgPw4k2j4MHKoovchFE8plZ0M9VMk4/oM= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64= github.com/facebookgo/ensure v0.0.0-20200202191622-63f1cf65ac4c h1:8ISkoahWXwZR41ois5lSJBSVw4D0OV19Ht/JSTzvSv0= @@ -493,7 +508,6 @@ github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojt github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg= github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0= github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk= -github.com/fatih/color v1.3.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= @@ -502,7 +516,8 @@ github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= +github.com/fjl/gencodec v0.0.0-20220412091415-8bb9e558978c/go.mod h1:AzA8Lj6YtixmJWL+wkKoBGsLWy9gFrAzi4g+5bCKwpY= +github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= @@ -517,8 +532,11 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4 github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA= +github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61/go.mod h1:Q0X6pkwTILDlzrGEckF6HKjXe48EgsY/l7K7vhY4MW8= github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY= github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= +github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= +github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -528,6 +546,9 @@ github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwv github.com/gin-gonic/gin v1.7.0 h1:jGB9xAJQ12AIGNB4HguylppmDK1Am9ppF7XnGXXJuoU= github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= +github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= +github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= +github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= github.com/go-git/go-billy/v5 v5.0.0 h1:7NQHvd9FVid8VL4qVUMm8XifBK+2xCoZ2lSk0agRrHM= @@ -559,6 +580,7 @@ github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dT github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= @@ -575,8 +597,9 @@ github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+ github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= -github.com/go-sourcemap/sourcemap v2.1.2+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= +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-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= @@ -597,14 +620,17 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6 github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/gateway v1.1.0 h1:u0SuhL9+Il+UbjM9VIE3ntfRujKbvVpFvNB4HbjeVQ0= github.com/gogo/gateway v1.1.0/go.mod h1:S7rR8FRQyG3QFESeSv4l2WnsyzlCLG0CzBbUUo/mbic= github.com/gogo/googleapis v1.2.0/go.mod h1:Njal3psf3qN6dwBtQfUmBZh2ybovJ0tlu3o/AC7HYjU= github.com/gogo/googleapis v1.4.0/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= +github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188/go.mod h1:vXjM/+wXQnTPR4KqTKDgJukSZ6amVRtWMPEjE6sQoK8= github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 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= @@ -640,16 +666,18 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -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/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= 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-0.20201103224600-674baa8c7fc3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -662,7 +690,8 @@ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-containerregistry v0.5.1/go.mod h1:Ct15B4yir3PLOP5jsy0GNeYVaIZs/MK/Jz5any1wFW0= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -716,13 +745,12 @@ 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-0.20190629185528-ae1634f6a989/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/gorilla/websocket v1.4.2/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 v0.0.0-20191115155744-f33e81362277/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= +github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= 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= @@ -751,6 +779,7 @@ github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyN github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= @@ -776,8 +805,9 @@ github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09 github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= +github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -792,11 +822,12 @@ github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKEN github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 h1:uUjLpLt6bVvZ72SQc/B4dXcPBw4Vgd7soowdRl52qEM= github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87/go.mod h1:XGsKKeXxeRr95aEOgipvluMPlgjr7dGlk9ZTWOjcUcg= -github.com/holiman/uint256 v1.1.1/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= +github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= +github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/hudl/fargo v1.4.0/go.mod h1:9Ai6uvFy5fQNq6VPKtg+Ceq1+eTY4nKUlR2JElEOcDo= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= +github.com/huin/goupnp v1.0.3/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= github.com/hyperjumptech/grule-rule-engine v1.11.0 h1:WTgeHnrXtZj90XeCGGDPnMBW+BXGP5TOWUSvtFeVc7Y= github.com/hyperjumptech/grule-rule-engine v1.11.0/go.mod h1:+DY0pvYAdj1w7Z3g0YJ7EYkEi3umjqAigbNqpXkiwY4= @@ -817,11 +848,21 @@ github.com/improbable-eng/grpc-web v0.14.1 h1:NrN4PY71A6tAz2sKDvC5JCauENWp0ykG8O github.com/improbable-eng/grpc-web v0.14.1/go.mod h1:zEjGHa8DAlkoOXmswrNvhUGEYQA9UI7DhrGeHR1DMGU= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY= +github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= +github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= +github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= +github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= +github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= +github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= +github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19ybifQhZoQNF5D8= +github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE= +github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0= +github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA= -github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= @@ -858,17 +899,19 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.1.1-0.20170430222011-975b5c4c7c21/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= +github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= +github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd h1:Coekwdh0v2wtGp9Gmz1Ze3eVRAWJMLokvN3QjdzCHLY= github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= 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.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= @@ -876,6 +919,9 @@ github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdY github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.13.6 h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= +github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -892,9 +938,14 @@ github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= 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/kylelemons/godebug v0.0.0-20170224010052-a616ab194758/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= +github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= +github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= @@ -914,20 +965,20 @@ github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho= +github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-ieproxy v0.0.0-20190610004146-91bb50d98149/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= -github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d/go.mod h1:31jz6HNzdxOmlERGGEc4v/dMssOfmp2p5bT/okiKFFc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= @@ -935,10 +986,12 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9 github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-shellwords v1.0.3/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= github.com/mattn/go-shellwords v1.0.6/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= +github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= +github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= github.com/mattn/go-zglob v0.0.3 h1:6Ry4EYsScDyt5di4OI6xw1bYhOqfE5S33Z1OPy+d+To= github.com/mattn/go-zglob v0.0.3/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -967,10 +1020,12 @@ github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0Qu github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3 h1:OVowDSCllw/YjdLkam3/sm7wEtOy59d8ndGgCcyj8cs= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/osext v0.0.0-20151018003038-5e2d6d41470f/go.mod h1:OkQIRizQZAeMln+1tSwduZz7+Af5oFlKirV/MSYes2A= +github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= github.com/moby/locker v1.0.1/go.mod h1:S7SDdo5zpBK84bzzVlKr2V0hz+7x9hWbYC/kq7oQppc= github.com/moby/sys/mount v0.3.1 h1:RX1K0x95oR8j5P1YefKDt7tE1C2kCCixV0H8Aza3GaI= github.com/moby/sys/mount v0.3.1/go.mod h1:6IZknFQiqjLpwuYJD5Zk0qYEuJiws36M88MIXnZHya0= @@ -991,6 +1046,7 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= +github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= @@ -1025,8 +1081,7 @@ github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtb 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/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= github.com/onsi/ginkgo v0.0.0-20151202141238-7f8ab55aaf3b/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -1086,6 +1141,7 @@ github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuh 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= +github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= @@ -1106,7 +1162,7 @@ github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIw 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 v0.0.0-20170112150404-1b00554d8222/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= +github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= @@ -1116,9 +1172,11 @@ github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCko github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/performancecopilot/speed/v4 v4.0.0/go.mod h1:qxrSyuDGrTOWfV+uKRFhfxw6h/4HXRGUiZiufxo49BM= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= 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= @@ -1132,6 +1190,7 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= @@ -1188,7 +1247,6 @@ github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/radovskyb/watcher v1.0.7 h1:AYePLih6dpmS32vlHfhCeli8127LzkIgwJGcwwe8tUE= github.com/radovskyb/watcher v1.0.7/go.mod h1:78okwvY5wPdzcb1UYnip1pvrZNIVEIh/Cm+ZuvsUYIg= @@ -1201,17 +1259,16 @@ github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzy github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= +github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= 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.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.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubrpZHtQLnOf6EwhN2hEMusxZOhcW9H3UQ= github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.26.1 h1:/ihwxqH+4z8UxyI70wM1z9yCvkWcfz/a3mj48k/Zngc= github.com/rs/zerolog v1.26.1/go.mod h1:/wSSJWX7lVrsOwlbyTRSOJvqRlc+WjWlfes+CiJ+tmc= @@ -1230,10 +1287,12 @@ github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo= github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY= +github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= +github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= 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/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.0.4-0.20170822132746-89742aefa4b2/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= github.com/sirupsen/logrus v1.0.6/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= @@ -1287,8 +1346,6 @@ github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8q github.com/src-d/gcfg v1.4.0 h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4= github.com/src-d/gcfg v1.4.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= -github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw= -github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= @@ -1301,6 +1358,7 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -1312,11 +1370,13 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/supranational/blst v0.3.8-0.20220526154634-513d2456b344/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca h1:Ld/zXl5t4+D69SiV4JoN7kkfvJdOWlPpfxrzxpLMoUk= github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/takuoki/gocase v1.0.0 h1:gPwLJTWVm2T1kUiCsKirg/faaIUGVTI0FA3SYr75a44= github.com/takuoki/gocase v1.0.0/go.mod h1:QgOKJrbuJoDrtoKswBX1/Dw8mJrkOV9tbQZJaxaJ6zc= github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= @@ -1338,11 +1398,18 @@ github.com/tendermint/tm-db v0.6.4/go.mod h1:dptYhIpJ2M5kUuenLr+Yyf3zQOv1SgBZcl8 github.com/tendermint/tm-db v0.6.6/go.mod h1:wP8d49A85B7/erz/r4YbKssKw6ylsO/hKtFk7E1aWZI= github.com/tendermint/tm-db v0.6.7 h1:fE00Cbl0jayAoqlExN6oyQJ7fR/ZtoVOmvPJ//+shu8= github.com/tendermint/tm-db v0.6.7/go.mod h1:byQDzFkZV1syXr/ReXS808NxA2xvyuuVgXOJ/088L6I= +github.com/thesixnetwork/cosmos-sdk v0.45.6-six-special-node h1:U+uoH859zMY5LR/pRoLQt3ruhLO6APCg6J9sJgTxGuQ= +github.com/thesixnetwork/cosmos-sdk v0.45.6-six-special-node/go.mod h1:7SccqVMzyfZpUuZwetAJSsQeuUqgtEu4cmGYnEs9Bog= +github.com/thesixnetwork/go-ethereum v1.10.20-0.20240807055744-ccf1400f91dd h1:QQLCxxs6rkOQrwVcvX7rX6/8bEv0anc55PqACCY8dAw= +github.com/thesixnetwork/go-ethereum v1.10.20-0.20240807055744-ccf1400f91dd/go.mod h1:IJBNMtzKcNHPtllYihy6BL2IgK1u+32JriaTbdt4v+w= github.com/tidwall/gjson v1.6.7/go.mod h1:zeFuBCIqD4sN/gmqBzZ4j7Jd6UcA2Fc56x7QFsv+8fI= github.com/tidwall/match v1.0.3/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.0.2/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tidwall/sjson v1.1.4/go.mod h1:wXpKXu8CtDjKAZ+3DrKY5ROCorDFahq8l0tey/Lx1fg= +github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg= +github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= +github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= 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/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce h1:fb190+cK2Xz/dvi9Hv8eCYJYvIGUTN2/KLq1pT6CjEc= @@ -1362,6 +1429,10 @@ github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= +github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/vishvananda/netlink v0.0.0-20181108222139-023a6dafdcdf/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk= github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho= @@ -1370,15 +1441,16 @@ github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17 github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= github.com/vmihailenco/msgpack/v5 v5.1.4/go.mod h1:C5gboKD0TJPqWDTVTtrQNfRbiBwHZGo8UTqP/9/XvLI= github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= +github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= -github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees= github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70= github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= @@ -1389,11 +1461,14 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yvasiyarov/go-metrics v0.0.0-20140926110328-57bccd1ccd43/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs= github.com/yvasiyarov/gorelic v0.0.0-20141212073537-a9bba5b9ab50/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA= github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg= -github.com/zondax/hid v0.9.0 h1:eiT3P6vNxAEVxXMw66eZUAAnU2zD33JBkfG/EnfAKl8= -github.com/zondax/hid v0.9.0/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= 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.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= @@ -1436,6 +1511,7 @@ go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9i go.uber.org/multierr v1.7.0 h1:zaiO/rmgFjbmCXdSYJWQcdvOCsthmdaHfr3Gm2Kx4Ec= go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= @@ -1470,23 +1546,24 @@ golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210915214749-c084706c2272/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/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= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= @@ -1495,6 +1572,7 @@ 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-20220426173459-3bcf042a4bf5/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= 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= @@ -1511,20 +1589,20 @@ golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20200801112145-973feb4309de/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 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.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= +golang.org/x/mod v0.6.0-dev.0.20211013180041-c96bc1413d57/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1570,12 +1648,14 @@ golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= @@ -1590,9 +1670,10 @@ golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211208012354-db4efeb81f4b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= 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-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1620,8 +1701,9 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1651,6 +1733,7 @@ golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190812073006-9eafafc0a87e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1668,6 +1751,7 @@ golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1693,7 +1777,7 @@ golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200817155316-9781c653f443/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200824131525-c12d262b63d8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200916030750-2334cc1a136f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1715,10 +1799,12 @@ golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1739,6 +1825,7 @@ golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1746,13 +1833,13 @@ golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.12.0 h1:/ZfYdc3zq+q02Rv9vGqTeSItdzZTSNDmfTi0mBAuidU= -golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= +golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= +golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= 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= @@ -1762,14 +1849,16 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 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.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.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= 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= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1801,11 +1890,12 @@ golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191126055441-b0650ceb63d9/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1844,13 +1934,17 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= +golang.org/x/tools v0.1.8-0.20211029000441-d6a9af8af023/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= +gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= google.golang.org/api v0.0.0-20160322025152-9bf6e6e569ff/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= @@ -1903,6 +1997,7 @@ google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190522204451-c2c4e71fbf69/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= @@ -1910,6 +2005,7 @@ google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvx google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200117163144-32f20d992d24/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= @@ -1969,12 +2065,12 @@ google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 h1:L6iMMGrtzgHsWofoFcihmDEMYeDR9KN/ThbPWGrh++g= -google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5/go.mod h1:oH/ZOT02u4kWEp7oYBGYFFkCdKS/uYR9Z7+0/xuuFp8= -google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d h1:DoPTO70H+bcDXcd39vOqb2viZxgqeBeSGtZ55yZU4/Q= -google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d/go.mod h1:KjSP20unUpOx5kyQUFa7k4OJg0qeJ7DEZflGDu2p6Bk= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac h1:ZL/Teoy/ZGnzyrqK/Optxxp2pmVh+fmJ97slxSRyzUg= +google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac/go.mod h1:+Rvu7ElI+aLzyDQhpHMFMMltsD6m7nqpuWDd2CwJw3k= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= @@ -1991,8 +2087,8 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -2015,7 +2111,6 @@ gopkg.in/ini.v1 v1.66.3 h1:jRskFVxYaMGAMUbN0UZ7niA9gzL9B49DOqE78vg0k3w= gopkg.in/ini.v1 v1.66.3/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= -gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= @@ -2057,6 +2152,7 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo= k8s.io/api v0.20.4/go.mod h1:++lNL1AJMkDymriNniQsWRkMDzRaX2Y/POTUi8yvqYQ= k8s.io/api v0.20.6/go.mod h1:X9e8Qag6JV/bL5G6bU8sdVRltWKmdHsFUGS3eVndqE8= diff --git a/proto/nftmngr/latest/action.proto b/proto/nftmngr/latest/action.proto new file mode 100644 index 00000000..1c629ac4 --- /dev/null +++ b/proto/nftmngr/latest/action.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message ActionParams { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated ActionParams params = 7 [(gogoproto.nullable) = true]; +} + diff --git a/proto/nftmngr/action_by_ref_id.proto b/proto/nftmngr/latest/action_by_ref_id.proto similarity index 100% rename from proto/nftmngr/action_by_ref_id.proto rename to proto/nftmngr/latest/action_by_ref_id.proto diff --git a/proto/nftmngr/action_executor.proto b/proto/nftmngr/latest/action_executor.proto similarity index 100% rename from proto/nftmngr/action_executor.proto rename to proto/nftmngr/latest/action_executor.proto diff --git a/proto/nftmngr/action_of_schema.proto b/proto/nftmngr/latest/action_of_schema.proto similarity index 100% rename from proto/nftmngr/action_of_schema.proto rename to proto/nftmngr/latest/action_of_schema.proto diff --git a/proto/nftmngr/attribute_definition.proto b/proto/nftmngr/latest/attribute_definition.proto similarity index 88% rename from proto/nftmngr/attribute_definition.proto rename to proto/nftmngr/latest/attribute_definition.proto index 816b5835..42606969 100644 --- a/proto/nftmngr/attribute_definition.proto +++ b/proto/nftmngr/latest/attribute_definition.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/display_option.proto"; -import "nftmngr/nft_attribute_value.proto"; +import "nftmngr/latest/display_option.proto"; +import "nftmngr/latest/nft_attribute_value.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; message DefaultMintValue { diff --git a/proto/nftmngr/latest/attribute_of_schema.proto b/proto/nftmngr/latest/attribute_of_schema.proto new file mode 100644 index 00000000..c11f9a42 --- /dev/null +++ b/proto/nftmngr/latest/attribute_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr; +import "nftmngr/latest/schema_attribute.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; + +message AttributeOfSchema { + string nftSchemaCode = 1; + repeated SchemaAttribute schemaAttributes = 2; + +} + diff --git a/proto/nftmngr/display_option.proto b/proto/nftmngr/latest/display_option.proto similarity index 82% rename from proto/nftmngr/display_option.proto rename to proto/nftmngr/latest/display_option.proto index 1c02cc4c..6af2e8e9 100644 --- a/proto/nftmngr/display_option.proto +++ b/proto/nftmngr/latest/display_option.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/opensea_display_option.proto"; +import "nftmngr/latest/opensea_display_option.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; diff --git a/proto/nftmngr/executor_of_schema.proto b/proto/nftmngr/latest/executor_of_schema.proto similarity index 100% rename from proto/nftmngr/executor_of_schema.proto rename to proto/nftmngr/latest/executor_of_schema.proto diff --git a/proto/nftmngr/genesis.proto b/proto/nftmngr/latest/genesis.proto similarity index 68% rename from proto/nftmngr/genesis.proto rename to proto/nftmngr/latest/genesis.proto index b78a231e..211270b1 100644 --- a/proto/nftmngr/genesis.proto +++ b/proto/nftmngr/latest/genesis.proto @@ -2,20 +2,20 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; import "gogoproto/gogo.proto"; -import "nftmngr/params.proto"; -import "nftmngr/nft_schema.proto"; -import "nftmngr/nft_data.proto"; -import "nftmngr/action_by_ref_id.proto"; -import "nftmngr/organization.proto"; -import "nftmngr/nft_schema_by_contract.proto"; -import "nftmngr/nft_fee_config.proto"; -import "nftmngr/nft_fee_balance.proto"; -import "nftmngr/metadata_creator.proto"; -import "nftmngr/nft_collection.proto"; -import "nftmngr/action_executor.proto"; -import "nftmngr/schema_attribute.proto"; -import "nftmngr/action_of_schema.proto"; -import "nftmngr/executor_of_schema.proto"; +import "nftmngr/latest/params.proto"; +import "nftmngr/latest/nft_schema.proto"; +import "nftmngr/latest/nft_data.proto"; +import "nftmngr/latest/action_by_ref_id.proto"; +import "nftmngr/latest/organization.proto"; +import "nftmngr/latest/nft_schema_by_contract.proto"; +import "nftmngr/latest/nft_fee_config.proto"; +import "nftmngr/latest/nft_fee_balance.proto"; +import "nftmngr/latest/metadata_creator.proto"; +import "nftmngr/latest/nft_collection.proto"; +import "nftmngr/latest/action_executor.proto"; +import "nftmngr/latest/schema_attribute.proto"; +import "nftmngr/latest/action_of_schema.proto"; +import "nftmngr/latest/executor_of_schema.proto"; // this line is used by starport scaffolding # genesis/proto/import option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; diff --git a/proto/nftmngr/metadata_creator.proto b/proto/nftmngr/latest/metadata_creator.proto similarity index 100% rename from proto/nftmngr/metadata_creator.proto rename to proto/nftmngr/latest/metadata_creator.proto diff --git a/proto/nftmngr/nft_attribute_value.proto b/proto/nftmngr/latest/nft_attribute_value.proto similarity index 100% rename from proto/nftmngr/nft_attribute_value.proto rename to proto/nftmngr/latest/nft_attribute_value.proto diff --git a/proto/nftmngr/nft_collection.proto b/proto/nftmngr/latest/nft_collection.proto similarity index 85% rename from proto/nftmngr/nft_collection.proto rename to proto/nftmngr/latest/nft_collection.proto index 7e5b5ae0..bd0ad5fb 100644 --- a/proto/nftmngr/nft_collection.proto +++ b/proto/nftmngr/latest/nft_collection.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; -import "nftmngr/nft_data.proto"; +import "nftmngr/latest/nft_data.proto"; message NftCollection { string nftSchemaCode = 1; diff --git a/proto/nftmngr/nft_data.proto b/proto/nftmngr/latest/nft_data.proto similarity index 91% rename from proto/nftmngr/nft_data.proto rename to proto/nftmngr/latest/nft_data.proto index f0595fd6..12c328c6 100644 --- a/proto/nftmngr/nft_data.proto +++ b/proto/nftmngr/latest/nft_data.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/nft_attribute_value.proto"; +import "nftmngr/latest/nft_attribute_value.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; enum OwnerAddressType { diff --git a/proto/nftmngr/nft_fee_balance.proto b/proto/nftmngr/latest/nft_fee_balance.proto similarity index 100% rename from proto/nftmngr/nft_fee_balance.proto rename to proto/nftmngr/latest/nft_fee_balance.proto diff --git a/proto/nftmngr/nft_fee_config.proto b/proto/nftmngr/latest/nft_fee_config.proto similarity index 100% rename from proto/nftmngr/nft_fee_config.proto rename to proto/nftmngr/latest/nft_fee_config.proto diff --git a/proto/nftmngr/nft_schema.proto b/proto/nftmngr/latest/nft_schema.proto similarity index 53% rename from proto/nftmngr/nft_schema.proto rename to proto/nftmngr/latest/nft_schema.proto index fe70a982..a9ab1878 100644 --- a/proto/nftmngr/nft_schema.proto +++ b/proto/nftmngr/latest/nft_schema.proto @@ -1,8 +1,8 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/on_chain_data.proto"; -import "nftmngr/origin_data.proto"; +import "nftmngr/latest/on_chain_data.proto"; +import "nftmngr/latest/origin_data.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; @@ -17,17 +17,6 @@ message NFTSchema { string mint_authorization = 8; } -message NFTSchemaV2 { - string code = 1; - string name = 2; - string owner = 3; - string description = 4; - OriginData origin_data = 5; - OnChainDataV2 onchain_data = 6; - bool isVerified = 7; - string mint_authorization = 8; -} - message NFTSchemaINPUT { string code = 1; string name = 2; @@ -39,15 +28,3 @@ message NFTSchemaINPUT { bool isVerified = 8; string mint_authorization = 9; } - - -message NFTSchemaV1 { - string code = 1; - string name = 2; - string owner = 3; - repeated string system_actioners = 4; - OriginData origin_data = 5; - OnChainDataV1 onchain_data = 6; - bool isVerified = 7; - string mint_authorization = 8; -} \ No newline at end of file diff --git a/proto/nftmngr/nft_schema_by_contract.proto b/proto/nftmngr/latest/nft_schema_by_contract.proto similarity index 100% rename from proto/nftmngr/nft_schema_by_contract.proto rename to proto/nftmngr/latest/nft_schema_by_contract.proto diff --git a/proto/nftmngr/latest/on_chain_data.proto b/proto/nftmngr/latest/on_chain_data.proto new file mode 100644 index 00000000..0b963ecf --- /dev/null +++ b/proto/nftmngr/latest/on_chain_data.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr; +import "nftmngr/latest/attribute_definition.proto"; +import "nftmngr/latest/action.proto"; +import "nftmngr/latest/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + repeated AttributeDefinition nft_attributes = 1; + repeated AttributeDefinition token_attributes = 2; + repeated Action actions = 3; + repeated FlagStatus status = 4; +} + diff --git a/proto/nftmngr/opensea_display_option.proto b/proto/nftmngr/latest/opensea_display_option.proto similarity index 100% rename from proto/nftmngr/opensea_display_option.proto rename to proto/nftmngr/latest/opensea_display_option.proto diff --git a/proto/nftmngr/organization.proto b/proto/nftmngr/latest/organization.proto similarity index 100% rename from proto/nftmngr/organization.proto rename to proto/nftmngr/latest/organization.proto diff --git a/proto/nftmngr/origin_data.proto b/proto/nftmngr/latest/origin_data.proto similarity index 91% rename from proto/nftmngr/origin_data.proto rename to proto/nftmngr/latest/origin_data.proto index f566024f..808a9983 100644 --- a/proto/nftmngr/origin_data.proto +++ b/proto/nftmngr/latest/origin_data.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/attribute_definition.proto"; +import "nftmngr/latest/attribute_definition.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; enum AttributeOverriding { diff --git a/proto/nftmngr/params.proto b/proto/nftmngr/latest/params.proto similarity index 100% rename from proto/nftmngr/params.proto rename to proto/nftmngr/latest/params.proto diff --git a/proto/nftmngr/query.proto b/proto/nftmngr/latest/query.proto similarity index 94% rename from proto/nftmngr/query.proto rename to proto/nftmngr/latest/query.proto index 4194b7de..a11d6921 100644 --- a/proto/nftmngr/query.proto +++ b/proto/nftmngr/latest/query.proto @@ -4,21 +4,21 @@ package thesixnetwork.sixnft.nftmngr; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "nftmngr/params.proto"; -import "nftmngr/nft_schema.proto"; -import "nftmngr/action_by_ref_id.proto"; -import "nftmngr/organization.proto"; -import "nftmngr/nft_collection.proto"; -import "nftmngr/nft_schema_by_contract.proto"; -import "nftmngr/nft_fee_config.proto"; -import "nftmngr/nft_fee_balance.proto"; -import "nftmngr/metadata_creator.proto"; -import "nftmngr/action_executor.proto"; -import "nftmngr/schema_attribute.proto"; -import "nftmngr/action_of_schema.proto"; -import "nftmngr/executor_of_schema.proto"; +import "nftmngr/latest/params.proto"; +import "nftmngr/latest/nft_schema.proto"; +import "nftmngr/latest/action_by_ref_id.proto"; +import "nftmngr/latest/organization.proto"; +import "nftmngr/latest/nft_collection.proto"; +import "nftmngr/latest/nft_schema_by_contract.proto"; +import "nftmngr/latest/nft_fee_config.proto"; +import "nftmngr/latest/nft_fee_balance.proto"; +import "nftmngr/latest/metadata_creator.proto"; +import "nftmngr/latest/action_executor.proto"; +import "nftmngr/latest/schema_attribute.proto"; +import "nftmngr/latest/action_of_schema.proto"; +import "nftmngr/latest/executor_of_schema.proto"; // this line is used by starport scaffolding # 1 -import "nftmngr/nft_data.proto"; +import "nftmngr/latest/nft_data.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; diff --git a/proto/nftmngr/latest/schema_attribute.proto b/proto/nftmngr/latest/schema_attribute.proto new file mode 100644 index 00000000..a7dda2b0 --- /dev/null +++ b/proto/nftmngr/latest/schema_attribute.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr; +import "nftmngr/latest/display_option.proto"; +import "nftmngr/latest/nft_attribute_value.proto"; +import "nftmngr/latest/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; + +message SchemaAttribute { + string nftSchemaCode = 1; + string name = 2; + string data_type = 3; + SchemaAttributeValue current_value = 4; + string creator = 5; +} + + + +message SchemaAttributeValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} \ No newline at end of file diff --git a/proto/nftmngr/tx.proto b/proto/nftmngr/latest/tx.proto similarity index 95% rename from proto/nftmngr/tx.proto rename to proto/nftmngr/latest/tx.proto index ed5c3843..24922c09 100644 --- a/proto/nftmngr/tx.proto +++ b/proto/nftmngr/latest/tx.proto @@ -1,12 +1,12 @@ syntax = "proto3"; package thesixnetwork.sixnft.nftmngr; -import "nftmngr/action_executor.proto"; -import "nftmngr/schema_attribute.proto"; +import "nftmngr/latest/action_executor.proto"; +import "nftmngr/latest/schema_attribute.proto"; // this line is used by starport scaffolding # proto/tx/import -import "nftmngr/on_chain_data.proto"; -import "nftmngr/attribute_definition.proto"; -import "nftmngr/nft_attribute_value.proto"; +import "nftmngr/latest/on_chain_data.proto"; +import "nftmngr/latest/attribute_definition.proto"; +import "nftmngr/latest/nft_attribute_value.proto"; import "google/protobuf/any.proto"; option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; @@ -34,7 +34,7 @@ service Msg { rpc SetAttributeOveriding(MsgSetAttributeOveriding) returns (MsgSetAttributeOveridingResponse); rpc SetMetadataFormat(MsgSetMetadataFormat) returns (MsgSetMetadataFormatResponse); rpc CreateActionExecutor(MsgCreateActionExecutor) returns (MsgCreateActionExecutorResponse); - rpc UpdateActionExecutor(MsgUpdateActionExecutor) returns (MsgUpdateActionExecutorResponse); + //rpc UpdateActionExecutor(MsgUpdateActionExecutor) returns (MsgUpdateActionExecutorResponse); rpc DeleteActionExecutor(MsgDeleteActionExecutor) returns (MsgDeleteActionExecutorResponse); rpc UpdateSchemaAttribute(MsgUpdateSchemaAttribute) returns (MsgUpdateSchemaAttributeResponse); // rpc DeleteSchemaAttribute(MsgDeleteSchemaAttribute) returns (MsgDeleteSchemaAttributeResponse); @@ -189,7 +189,6 @@ message MsgAddAttribute { message MsgAddAttributeResponse { string code = 1; string name = 2; - OnChainData onchainData = 3; } message MsgAddAction { @@ -201,10 +200,8 @@ message MsgAddAction { message MsgAddActionResponse { string code = 1; string name = 2; - OnChainData onchainData = 3; } - message MsgSetBaseUri { string creator = 1; string code = 2; @@ -220,13 +217,13 @@ message MsgToggleAction { string creator = 1; string code = 2; string action = 3; - bool disable = 4; + bool status = 4; } message MsgToggleActionResponse { string code = 1; string name = 2; - OnChainData onchainDataAction = 3; + bool status = 3; } message MsgChangeSchemaOwner { @@ -242,6 +239,7 @@ message MsgChangeSchemaOwnerResponse { message MsgResyncAttributesResponse { string nftSchemaCode = 1; + string tokenId = 2; } message MsgShowAttributes { @@ -263,6 +261,7 @@ message MsgResyncAttributes { enum FeeSubject { CREATE_NFT_SCHEMA = 0; } + message MsgSetFeeConfig { string creator = 1; string newFeeConfigBase64 = 2; @@ -390,7 +389,6 @@ message MsgUpdateSchemaAttribute { message MsgUpdateSchemaAttributeResponse { string nftSchemaCode = 1; string name = 2; - SchemaAttribute new_attribute = 3; } // message MsgDeleteSchemaAttribute { diff --git a/proto/nftmngr/on_chain_data.proto b/proto/nftmngr/on_chain_data.proto deleted file mode 100644 index 13f572a0..00000000 --- a/proto/nftmngr/on_chain_data.proto +++ /dev/null @@ -1,35 +0,0 @@ -syntax = "proto3"; -package thesixnetwork.sixnft.nftmngr; -import "nftmngr/attribute_definition.proto"; -import "nftmngr/action.proto"; -import "nftmngr/nft_attribute_value.proto"; -option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; - -message FlagStatus { - string status_name = 1; - bool status_value = 2; -} - -message OnChainData { - repeated AttributeDefinition nft_attributes = 1; - repeated AttributeDefinition token_attributes = 2; - repeated Action actions = 3; - repeated FlagStatus status = 4; -} - -message OnChainDataV2 { - repeated AttributeDefinition token_attributes = 1; - repeated Action actions = 2; - repeated FlagStatus status = 3; -} - -message OnChainDataV1 { - bool reveal_required = 1; - bytes reveal_secret = 2; - repeated AttributeDefinition nft_attributes = 3; - repeated AttributeDefinition token_attributes = 4; - repeated Action actions = 5; - repeated FlagStatus status = 6; - repeated NftAttributeValue nft_attributes_value = 7; -} - diff --git a/proto/nftmngr/v062/action.proto b/proto/nftmngr/v062/action.proto new file mode 100644 index 00000000..f3125023 --- /dev/null +++ b/proto/nftmngr/v062/action.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message Action { + + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; +} diff --git a/proto/nftmngr/v062/action_by_ref_id.proto b/proto/nftmngr/v062/action_by_ref_id.proto new file mode 100644 index 00000000..25bc9dfc --- /dev/null +++ b/proto/nftmngr/v062/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v062/attribute_definition.proto b/proto/nftmngr/v062/attribute_definition.proto new file mode 100644 index 00000000..49eaef10 --- /dev/null +++ b/proto/nftmngr/v062/attribute_definition.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; +import "nftmngr/v062/display_option.proto"; +import "nftmngr/v062/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_to_marketplace = 7; + uint64 index = 8; +} diff --git a/proto/nftmngr/v062/display_option.proto b/proto/nftmngr/v062/display_option.proto new file mode 100644 index 00000000..4a801c3c --- /dev/null +++ b/proto/nftmngr/v062/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; +import "nftmngr/v062/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v062/metadata_creator.proto b/proto/nftmngr/v062/metadata_creator.proto new file mode 100644 index 00000000..ca5eda68 --- /dev/null +++ b/proto/nftmngr/v062/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v062/nft_attribute_value.proto b/proto/nftmngr/v062/nft_attribute_value.proto new file mode 100644 index 00000000..8e35f6ac --- /dev/null +++ b/proto/nftmngr/v062/nft_attribute_value.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v062/nft_collection.proto b/proto/nftmngr/v062/nft_collection.proto new file mode 100644 index 00000000..34026070 --- /dev/null +++ b/proto/nftmngr/v062/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; +import "nftmngr/v062/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v062/nft_data.proto b/proto/nftmngr/v062/nft_data.proto new file mode 100644 index 00000000..92d3c299 --- /dev/null +++ b/proto/nftmngr/v062/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +import "nftmngr/v062/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v062/nft_fee_balance.proto b/proto/nftmngr/v062/nft_fee_balance.proto new file mode 100644 index 00000000..50aa6055 --- /dev/null +++ b/proto/nftmngr/v062/nft_fee_balance.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message NFTFeeBalance { + map fee_balances = 1; +} diff --git a/proto/nftmngr/v062/nft_fee_config.proto b/proto/nftmngr/v062/nft_fee_config.proto new file mode 100644 index 00000000..e6ffa44d --- /dev/null +++ b/proto/nftmngr/v062/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v062/nft_schema.proto b/proto/nftmngr/v062/nft_schema.proto new file mode 100644 index 00000000..2c3ae299 --- /dev/null +++ b/proto/nftmngr/v062/nft_schema.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + + +import "nftmngr/v062/on_chain_data.proto"; +import "nftmngr/v062/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + repeated string system_actioners = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + diff --git a/proto/nftmngr/v062/nft_schema_by_contract.proto b/proto/nftmngr/v062/nft_schema_by_contract.proto new file mode 100644 index 00000000..cd14edf1 --- /dev/null +++ b/proto/nftmngr/v062/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v062/on_chain_data.proto b/proto/nftmngr/v062/on_chain_data.proto new file mode 100644 index 00000000..f2711e4c --- /dev/null +++ b/proto/nftmngr/v062/on_chain_data.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; +import "nftmngr/v062/attribute_definition.proto"; +import "nftmngr/v062/action.proto"; +import "nftmngr/v062/status.proto"; +import "nftmngr/v062/on_off_switch.proto"; +import "nftmngr/v062/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message OnChainData { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition nft_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + map status = 6; + map on_off_switch = 7; + repeated NftAttributeValue nft_attributes_value = 8; +} diff --git a/proto/nftmngr/v062/on_off_switch.proto b/proto/nftmngr/v062/on_off_switch.proto new file mode 100644 index 00000000..3fb7c5a2 --- /dev/null +++ b/proto/nftmngr/v062/on_off_switch.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message OnOffSwitch { + + bool active = 1; +} diff --git a/proto/nftmngr/v062/opensea_display_option.proto b/proto/nftmngr/v062/opensea_display_option.proto new file mode 100644 index 00000000..ff60cc6d --- /dev/null +++ b/proto/nftmngr/v062/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v062/organization.proto b/proto/nftmngr/v062/organization.proto new file mode 100644 index 00000000..73f9faef --- /dev/null +++ b/proto/nftmngr/v062/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v062/origin_data.proto b/proto/nftmngr/v062/origin_data.proto new file mode 100644 index 00000000..5cc965c3 --- /dev/null +++ b/proto/nftmngr/v062/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; +import "nftmngr/v062/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} diff --git a/proto/nftmngr/v062/status.proto b/proto/nftmngr/v062/status.proto new file mode 100644 index 00000000..706adc95 --- /dev/null +++ b/proto/nftmngr/v062/status.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v062; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v062"; + +message Status { + + bool first_mint_complete = 1; +} diff --git a/proto/nftmngr/v063/action.proto b/proto/nftmngr/v063/action.proto new file mode 100644 index 00000000..38aa4a90 --- /dev/null +++ b/proto/nftmngr/v063/action.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message Action { + + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; +} diff --git a/proto/nftmngr/v063/action_by_ref_id.proto b/proto/nftmngr/v063/action_by_ref_id.proto new file mode 100644 index 00000000..a104538d --- /dev/null +++ b/proto/nftmngr/v063/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v063/attribute_definition.proto b/proto/nftmngr/v063/attribute_definition.proto new file mode 100644 index 00000000..2523bf0f --- /dev/null +++ b/proto/nftmngr/v063/attribute_definition.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; +import "nftmngr/v063/display_option.proto"; +import "nftmngr/v063/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_to_marketplace = 7; + uint64 index = 8; +} diff --git a/proto/nftmngr/v063/display_option.proto b/proto/nftmngr/v063/display_option.proto new file mode 100644 index 00000000..3509fbd7 --- /dev/null +++ b/proto/nftmngr/v063/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; +import "nftmngr/v063/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v063/metadata_creator.proto b/proto/nftmngr/v063/metadata_creator.proto new file mode 100644 index 00000000..3213ed29 --- /dev/null +++ b/proto/nftmngr/v063/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v063/nft_attribute_value.proto b/proto/nftmngr/v063/nft_attribute_value.proto new file mode 100644 index 00000000..a0f25b91 --- /dev/null +++ b/proto/nftmngr/v063/nft_attribute_value.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v063/nft_collection.proto b/proto/nftmngr/v063/nft_collection.proto new file mode 100644 index 00000000..62c2bf17 --- /dev/null +++ b/proto/nftmngr/v063/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; +import "nftmngr/v063/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v063/nft_data.proto b/proto/nftmngr/v063/nft_data.proto new file mode 100644 index 00000000..8386169f --- /dev/null +++ b/proto/nftmngr/v063/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +import "nftmngr/v063/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v063/nft_fee_balance.proto b/proto/nftmngr/v063/nft_fee_balance.proto new file mode 100644 index 00000000..cabd434f --- /dev/null +++ b/proto/nftmngr/v063/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v063/nft_fee_config.proto b/proto/nftmngr/v063/nft_fee_config.proto new file mode 100644 index 00000000..5a571d17 --- /dev/null +++ b/proto/nftmngr/v063/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v063/nft_schema.proto b/proto/nftmngr/v063/nft_schema.proto new file mode 100644 index 00000000..33d02f53 --- /dev/null +++ b/proto/nftmngr/v063/nft_schema.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + + +import "nftmngr/v063/on_chain_data.proto"; +import "nftmngr/v063/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + repeated string system_actioners = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + diff --git a/proto/nftmngr/v063/nft_schema_by_contract.proto b/proto/nftmngr/v063/nft_schema_by_contract.proto new file mode 100644 index 00000000..9053553c --- /dev/null +++ b/proto/nftmngr/v063/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v063/on_chain_data.proto b/proto/nftmngr/v063/on_chain_data.proto new file mode 100644 index 00000000..1f6af3bf --- /dev/null +++ b/proto/nftmngr/v063/on_chain_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; +import "nftmngr/v063/attribute_definition.proto"; +import "nftmngr/v063/action.proto"; +import "nftmngr/v063/status.proto"; +import "nftmngr/v063/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition nft_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; + repeated NftAttributeValue nft_attributes_value = 8; +} diff --git a/proto/nftmngr/v063/opensea_display_option.proto b/proto/nftmngr/v063/opensea_display_option.proto new file mode 100644 index 00000000..9e54c20b --- /dev/null +++ b/proto/nftmngr/v063/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v063/organization.proto b/proto/nftmngr/v063/organization.proto new file mode 100644 index 00000000..6107fbaf --- /dev/null +++ b/proto/nftmngr/v063/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v063/origin_data.proto b/proto/nftmngr/v063/origin_data.proto new file mode 100644 index 00000000..87d55fec --- /dev/null +++ b/proto/nftmngr/v063/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; +import "nftmngr/v063/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} diff --git a/proto/nftmngr/v063/status.proto b/proto/nftmngr/v063/status.proto new file mode 100644 index 00000000..b61a35e8 --- /dev/null +++ b/proto/nftmngr/v063/status.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v063; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v063"; + +message Status { + + bool first_mint_complete = 1; +} diff --git a/proto/nftmngr/v072/action.proto b/proto/nftmngr/v072/action.proto new file mode 100644 index 00000000..26f6b06e --- /dev/null +++ b/proto/nftmngr/v072/action.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} diff --git a/proto/nftmngr/v072/action_by_ref_id.proto b/proto/nftmngr/v072/action_by_ref_id.proto new file mode 100644 index 00000000..8f43df17 --- /dev/null +++ b/proto/nftmngr/v072/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v072/attribute_definition.proto b/proto/nftmngr/v072/attribute_definition.proto new file mode 100644 index 00000000..63bc69b2 --- /dev/null +++ b/proto/nftmngr/v072/attribute_definition.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; +import "nftmngr/v072/display_option.proto"; +import "nftmngr/v072/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_to_marketplace = 7; + uint64 index = 8; +} diff --git a/proto/nftmngr/v072/display_option.proto b/proto/nftmngr/v072/display_option.proto new file mode 100644 index 00000000..3e8d7c62 --- /dev/null +++ b/proto/nftmngr/v072/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; +import "nftmngr/v072/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v072/metadata_creator.proto b/proto/nftmngr/v072/metadata_creator.proto new file mode 100644 index 00000000..9d293237 --- /dev/null +++ b/proto/nftmngr/v072/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v072/nft_attribute_value.proto b/proto/nftmngr/v072/nft_attribute_value.proto new file mode 100644 index 00000000..a29691c3 --- /dev/null +++ b/proto/nftmngr/v072/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v072/nft_collection.proto b/proto/nftmngr/v072/nft_collection.proto new file mode 100644 index 00000000..0c3b52c7 --- /dev/null +++ b/proto/nftmngr/v072/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; +import "nftmngr/v072/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v072/nft_data.proto b/proto/nftmngr/v072/nft_data.proto new file mode 100644 index 00000000..bf6e1638 --- /dev/null +++ b/proto/nftmngr/v072/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +import "nftmngr/v072/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v072/nft_fee_balance.proto b/proto/nftmngr/v072/nft_fee_balance.proto new file mode 100644 index 00000000..f2ae1764 --- /dev/null +++ b/proto/nftmngr/v072/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v072/nft_fee_config.proto b/proto/nftmngr/v072/nft_fee_config.proto new file mode 100644 index 00000000..566cd0e5 --- /dev/null +++ b/proto/nftmngr/v072/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v072/nft_schema.proto b/proto/nftmngr/v072/nft_schema.proto new file mode 100644 index 00000000..439520eb --- /dev/null +++ b/proto/nftmngr/v072/nft_schema.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + + +import "nftmngr/v072/on_chain_data.proto"; +import "nftmngr/v072/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + repeated string system_actioners = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} diff --git a/proto/nftmngr/v072/nft_schema_by_contract.proto b/proto/nftmngr/v072/nft_schema_by_contract.proto new file mode 100644 index 00000000..ea1fe189 --- /dev/null +++ b/proto/nftmngr/v072/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v072/on_chain_data.proto b/proto/nftmngr/v072/on_chain_data.proto new file mode 100644 index 00000000..e3d3cf1e --- /dev/null +++ b/proto/nftmngr/v072/on_chain_data.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; +import "nftmngr/v072/attribute_definition.proto"; +import "nftmngr/v072/action.proto"; +import "nftmngr/v072/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition nft_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; + repeated NftAttributeValue nft_attributes_value = 8; +} diff --git a/proto/nftmngr/v072/opensea_display_option.proto b/proto/nftmngr/v072/opensea_display_option.proto new file mode 100644 index 00000000..82b47f7a --- /dev/null +++ b/proto/nftmngr/v072/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v072/organization.proto b/proto/nftmngr/v072/organization.proto new file mode 100644 index 00000000..268cda31 --- /dev/null +++ b/proto/nftmngr/v072/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v072/origin_data.proto b/proto/nftmngr/v072/origin_data.proto new file mode 100644 index 00000000..0067fd0b --- /dev/null +++ b/proto/nftmngr/v072/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v072; +import "nftmngr/v072/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v072"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} diff --git a/proto/nftmngr/v080/action.proto b/proto/nftmngr/v080/action.proto new file mode 100644 index 00000000..7ba202e6 --- /dev/null +++ b/proto/nftmngr/v080/action.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} diff --git a/proto/nftmngr/v080/action_by_ref_id.proto b/proto/nftmngr/v080/action_by_ref_id.proto new file mode 100644 index 00000000..63abad02 --- /dev/null +++ b/proto/nftmngr/v080/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v080/attribute_definition.proto b/proto/nftmngr/v080/attribute_definition.proto new file mode 100644 index 00000000..245a6f97 --- /dev/null +++ b/proto/nftmngr/v080/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; +import "nftmngr/v080/display_option.proto"; +import "nftmngr/v080/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} diff --git a/proto/nftmngr/v080/display_option.proto b/proto/nftmngr/v080/display_option.proto new file mode 100644 index 00000000..7fe5d47e --- /dev/null +++ b/proto/nftmngr/v080/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; +import "nftmngr/v080/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v080/metadata_creator.proto b/proto/nftmngr/v080/metadata_creator.proto new file mode 100644 index 00000000..50f3e834 --- /dev/null +++ b/proto/nftmngr/v080/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v080/nft_attribute_value.proto b/proto/nftmngr/v080/nft_attribute_value.proto new file mode 100644 index 00000000..5d799077 --- /dev/null +++ b/proto/nftmngr/v080/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v080/nft_collection.proto b/proto/nftmngr/v080/nft_collection.proto new file mode 100644 index 00000000..67579f58 --- /dev/null +++ b/proto/nftmngr/v080/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; +import "nftmngr/v080/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v080/nft_data.proto b/proto/nftmngr/v080/nft_data.proto new file mode 100644 index 00000000..914118eb --- /dev/null +++ b/proto/nftmngr/v080/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +import "nftmngr/v080/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v080/nft_fee_balance.proto b/proto/nftmngr/v080/nft_fee_balance.proto new file mode 100644 index 00000000..0ac17e84 --- /dev/null +++ b/proto/nftmngr/v080/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v080/nft_fee_config.proto b/proto/nftmngr/v080/nft_fee_config.proto new file mode 100644 index 00000000..e6efa902 --- /dev/null +++ b/proto/nftmngr/v080/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v080/nft_schema.proto b/proto/nftmngr/v080/nft_schema.proto new file mode 100644 index 00000000..d7225037 --- /dev/null +++ b/proto/nftmngr/v080/nft_schema.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + + +import "nftmngr/v080/on_chain_data.proto"; +import "nftmngr/v080/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + repeated string system_actioners = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} diff --git a/proto/nftmngr/v080/nft_schema_by_contract.proto b/proto/nftmngr/v080/nft_schema_by_contract.proto new file mode 100644 index 00000000..b8b1ccd6 --- /dev/null +++ b/proto/nftmngr/v080/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v080/on_chain_data.proto b/proto/nftmngr/v080/on_chain_data.proto new file mode 100644 index 00000000..79151ba4 --- /dev/null +++ b/proto/nftmngr/v080/on_chain_data.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; +import "nftmngr/v080/attribute_definition.proto"; +import "nftmngr/v080/action.proto"; +import "nftmngr/v080/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition nft_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; + repeated NftAttributeValue nft_attributes_value = 8; +} diff --git a/proto/nftmngr/v080/opensea_display_option.proto b/proto/nftmngr/v080/opensea_display_option.proto new file mode 100644 index 00000000..80bcf9ec --- /dev/null +++ b/proto/nftmngr/v080/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v080/organization.proto b/proto/nftmngr/v080/organization.proto new file mode 100644 index 00000000..9d64cb78 --- /dev/null +++ b/proto/nftmngr/v080/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v080/origin_data.proto b/proto/nftmngr/v080/origin_data.proto new file mode 100644 index 00000000..26dfa139 --- /dev/null +++ b/proto/nftmngr/v080/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v080; +import "nftmngr/v080/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v080"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} diff --git a/proto/nftmngr/v090/action.proto b/proto/nftmngr/v090/action.proto new file mode 100644 index 00000000..a4b106f7 --- /dev/null +++ b/proto/nftmngr/v090/action.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} diff --git a/proto/nftmngr/v090/action_by_ref_id.proto b/proto/nftmngr/v090/action_by_ref_id.proto new file mode 100644 index 00000000..b8990b26 --- /dev/null +++ b/proto/nftmngr/v090/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v090/attribute_definition.proto b/proto/nftmngr/v090/attribute_definition.proto new file mode 100644 index 00000000..e6866566 --- /dev/null +++ b/proto/nftmngr/v090/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; +import "nftmngr/v090/display_option.proto"; +import "nftmngr/v090/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v090/display_option.proto b/proto/nftmngr/v090/display_option.proto new file mode 100644 index 00000000..eec2eee2 --- /dev/null +++ b/proto/nftmngr/v090/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; +import "nftmngr/v090/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v090/metadata_creator.proto b/proto/nftmngr/v090/metadata_creator.proto new file mode 100644 index 00000000..8d9b1c6b --- /dev/null +++ b/proto/nftmngr/v090/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v090/nft_attribute_value.proto b/proto/nftmngr/v090/nft_attribute_value.proto new file mode 100644 index 00000000..0cd5bdd8 --- /dev/null +++ b/proto/nftmngr/v090/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v090/nft_collection.proto b/proto/nftmngr/v090/nft_collection.proto new file mode 100644 index 00000000..9d658dc8 --- /dev/null +++ b/proto/nftmngr/v090/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; +import "nftmngr/v090/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v090/nft_data.proto b/proto/nftmngr/v090/nft_data.proto new file mode 100644 index 00000000..54bc4023 --- /dev/null +++ b/proto/nftmngr/v090/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +import "nftmngr/v090/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v090/nft_fee_balance.proto b/proto/nftmngr/v090/nft_fee_balance.proto new file mode 100644 index 00000000..af4ab307 --- /dev/null +++ b/proto/nftmngr/v090/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v090/nft_fee_config.proto b/proto/nftmngr/v090/nft_fee_config.proto new file mode 100644 index 00000000..4a6bb9b4 --- /dev/null +++ b/proto/nftmngr/v090/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v090/nft_schema.proto b/proto/nftmngr/v090/nft_schema.proto new file mode 100644 index 00000000..6cfe1c1b --- /dev/null +++ b/proto/nftmngr/v090/nft_schema.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + + +import "nftmngr/v090/on_chain_data.proto"; +import "nftmngr/v090/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + repeated string system_actioners = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} diff --git a/proto/nftmngr/v090/nft_schema_by_contract.proto b/proto/nftmngr/v090/nft_schema_by_contract.proto new file mode 100644 index 00000000..17aceed1 --- /dev/null +++ b/proto/nftmngr/v090/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v090/on_chain_data.proto b/proto/nftmngr/v090/on_chain_data.proto new file mode 100644 index 00000000..907ac872 --- /dev/null +++ b/proto/nftmngr/v090/on_chain_data.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; +import "nftmngr/v090/attribute_definition.proto"; +import "nftmngr/v090/action.proto"; +import "nftmngr/v090/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition nft_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; + repeated NftAttributeValue nft_attributes_value = 8; +} diff --git a/proto/nftmngr/v090/opensea_display_option.proto b/proto/nftmngr/v090/opensea_display_option.proto new file mode 100644 index 00000000..e31f7ff2 --- /dev/null +++ b/proto/nftmngr/v090/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v090/organization.proto b/proto/nftmngr/v090/organization.proto new file mode 100644 index 00000000..ff5b2b5e --- /dev/null +++ b/proto/nftmngr/v090/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v090/origin_data.proto b/proto/nftmngr/v090/origin_data.proto new file mode 100644 index 00000000..4932481b --- /dev/null +++ b/proto/nftmngr/v090/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v090; +import "nftmngr/v090/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v090"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} diff --git a/proto/nftmngr/action.proto b/proto/nftmngr/v091/action.proto similarity index 92% rename from proto/nftmngr/action.proto rename to proto/nftmngr/v091/action.proto index 0dfff6d3..e44be77d 100644 --- a/proto/nftmngr/action.proto +++ b/proto/nftmngr/v091/action.proto @@ -1,8 +1,8 @@ syntax = "proto3"; -package thesixnetwork.sixnft.nftmngr; +package thesixnetwork.sixnft.nftmngr.v091; import "gogoproto/gogo.proto"; -option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; enum AllowedActioner { ALLOWED_ACTIONER_ALL = 0; diff --git a/proto/nftmngr/v091/action_by_ref_id.proto b/proto/nftmngr/v091/action_by_ref_id.proto new file mode 100644 index 00000000..ae2de138 --- /dev/null +++ b/proto/nftmngr/v091/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v091/action_executor.proto b/proto/nftmngr/v091/action_executor.proto new file mode 100644 index 00000000..1d6b4d93 --- /dev/null +++ b/proto/nftmngr/v091/action_executor.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message ActionExecutor { + string nftSchemaCode = 1; + string executorAddress = 2; + string creator = 3; +} + +message ActionExecutorBySchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; +} diff --git a/proto/nftmngr/v091/action_of_schema.proto b/proto/nftmngr/v091/action_of_schema.proto new file mode 100644 index 00000000..9d3d1a54 --- /dev/null +++ b/proto/nftmngr/v091/action_of_schema.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message ActionOfSchema { + string nftSchemaCode = 1; + string name = 2; + uint64 index = 3; + +} + diff --git a/proto/nftmngr/v091/attribute_definition.proto b/proto/nftmngr/v091/attribute_definition.proto new file mode 100644 index 00000000..9523e452 --- /dev/null +++ b/proto/nftmngr/v091/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; +import "nftmngr/v091/display_option.proto"; +import "nftmngr/v091/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} diff --git a/proto/nftmngr/v091/display_option.proto b/proto/nftmngr/v091/display_option.proto new file mode 100644 index 00000000..fe487414 --- /dev/null +++ b/proto/nftmngr/v091/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; +import "nftmngr/v091/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v091/metadata_creator.proto b/proto/nftmngr/v091/metadata_creator.proto new file mode 100644 index 00000000..5677c897 --- /dev/null +++ b/proto/nftmngr/v091/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v091/nft_attribute_value.proto b/proto/nftmngr/v091/nft_attribute_value.proto new file mode 100644 index 00000000..16409f91 --- /dev/null +++ b/proto/nftmngr/v091/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v091/nft_collection.proto b/proto/nftmngr/v091/nft_collection.proto new file mode 100644 index 00000000..294d5966 --- /dev/null +++ b/proto/nftmngr/v091/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; +import "nftmngr/v091/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v091/nft_data.proto b/proto/nftmngr/v091/nft_data.proto new file mode 100644 index 00000000..6a94d89d --- /dev/null +++ b/proto/nftmngr/v091/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +import "nftmngr/v091/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v091/nft_fee_balance.proto b/proto/nftmngr/v091/nft_fee_balance.proto new file mode 100644 index 00000000..d0712e37 --- /dev/null +++ b/proto/nftmngr/v091/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v091/nft_fee_config.proto b/proto/nftmngr/v091/nft_fee_config.proto new file mode 100644 index 00000000..3b53d303 --- /dev/null +++ b/proto/nftmngr/v091/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v091/nft_schema.proto b/proto/nftmngr/v091/nft_schema.proto new file mode 100644 index 00000000..b3d6e039 --- /dev/null +++ b/proto/nftmngr/v091/nft_schema.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + + +import "nftmngr/v091/on_chain_data.proto"; +import "nftmngr/v091/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + +message NFTSchemaINPUT { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + repeated string system_actioners = 5; + OriginData origin_data = 6; + OnChainDataInput onchain_data = 7; + bool isVerified = 8; + string mint_authorization = 9; +} diff --git a/proto/nftmngr/v091/nft_schema_by_contract.proto b/proto/nftmngr/v091/nft_schema_by_contract.proto new file mode 100644 index 00000000..04c245d8 --- /dev/null +++ b/proto/nftmngr/v091/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v091/on_chain_data.proto b/proto/nftmngr/v091/on_chain_data.proto new file mode 100644 index 00000000..665a1e6b --- /dev/null +++ b/proto/nftmngr/v091/on_chain_data.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; +import "nftmngr/v091/attribute_definition.proto"; +import "nftmngr/v091/action.proto"; +import "nftmngr/v091/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + repeated AttributeDefinition token_attributes = 1; + repeated Action actions = 2; + repeated FlagStatus status = 3; +} + +message OnChainDataInput { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition schema_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; +} diff --git a/proto/nftmngr/v091/opensea_display_option.proto b/proto/nftmngr/v091/opensea_display_option.proto new file mode 100644 index 00000000..0e064ae3 --- /dev/null +++ b/proto/nftmngr/v091/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v091/organization.proto b/proto/nftmngr/v091/organization.proto new file mode 100644 index 00000000..3ac824d0 --- /dev/null +++ b/proto/nftmngr/v091/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v091/origin_data.proto b/proto/nftmngr/v091/origin_data.proto new file mode 100644 index 00000000..2450a591 --- /dev/null +++ b/proto/nftmngr/v091/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v091; +import "nftmngr/v091/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} \ No newline at end of file diff --git a/proto/nftmngr/schema_attribute.proto b/proto/nftmngr/v091/schema_attribute.proto similarity index 67% rename from proto/nftmngr/schema_attribute.proto rename to proto/nftmngr/v091/schema_attribute.proto index 409884d4..55a81471 100644 --- a/proto/nftmngr/schema_attribute.proto +++ b/proto/nftmngr/v091/schema_attribute.proto @@ -1,19 +1,11 @@ syntax = "proto3"; -package thesixnetwork.sixnft.nftmngr; -import "nftmngr/display_option.proto"; -import "nftmngr/nft_attribute_value.proto"; -import "nftmngr/attribute_definition.proto"; -option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types"; +package thesixnetwork.sixnft.nftmngr.v091; +import "nftmngr/v091/display_option.proto"; +import "nftmngr/v091/nft_attribute_value.proto"; +import "nftmngr/v091/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v091"; message SchemaAttribute { - string nftSchemaCode = 1; - string name = 2; - string data_type = 3; - SchemaAttributeValue current_value = 4; - string creator = 5; -} - -message SchemaAttributeV1 { string nftSchemaCode = 1; string name = 2; string data_type = 3; @@ -27,7 +19,6 @@ message SchemaAttributeV1 { } - message SchemaAttributeValue { oneof value { NumberAttributeValue number_attribute_value = 1; diff --git a/proto/nftmngr/v092/action.proto b/proto/nftmngr/v092/action.proto new file mode 100644 index 00000000..17437ea7 --- /dev/null +++ b/proto/nftmngr/v092/action.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} + diff --git a/proto/nftmngr/v092/action_by_ref_id.proto b/proto/nftmngr/v092/action_by_ref_id.proto new file mode 100644 index 00000000..ef3ba02c --- /dev/null +++ b/proto/nftmngr/v092/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v092/action_executor.proto b/proto/nftmngr/v092/action_executor.proto new file mode 100644 index 00000000..608a4501 --- /dev/null +++ b/proto/nftmngr/v092/action_executor.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message ActionExecutor { + string nftSchemaCode = 1; + string executorAddress = 2; + string creator = 3; +} + +message ActionExecutorBySchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; +} diff --git a/proto/nftmngr/v092/action_of_schema.proto b/proto/nftmngr/v092/action_of_schema.proto new file mode 100644 index 00000000..213034f0 --- /dev/null +++ b/proto/nftmngr/v092/action_of_schema.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message ActionOfSchema { + string nftSchemaCode = 1; + string name = 2; + uint64 index = 3; + +} + diff --git a/proto/nftmngr/v092/attribute_definition.proto b/proto/nftmngr/v092/attribute_definition.proto new file mode 100644 index 00000000..e93ea4b1 --- /dev/null +++ b/proto/nftmngr/v092/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/display_option.proto"; +import "nftmngr/v092/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} diff --git a/proto/nftmngr/v092/attribute_of_schema.proto b/proto/nftmngr/v092/attribute_of_schema.proto new file mode 100644 index 00000000..ace7611d --- /dev/null +++ b/proto/nftmngr/v092/attribute_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/schema_attribute.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message AttributeOfSchema { + string nftSchemaCode = 1; + repeated SchemaAttribute schemaAttributes = 2; + +} + diff --git a/proto/nftmngr/v092/display_option.proto b/proto/nftmngr/v092/display_option.proto new file mode 100644 index 00000000..b771b343 --- /dev/null +++ b/proto/nftmngr/v092/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v092/executor_of_schema.proto b/proto/nftmngr/v092/executor_of_schema.proto new file mode 100644 index 00000000..bd24aaf0 --- /dev/null +++ b/proto/nftmngr/v092/executor_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message ExecutorOfSchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; + +} + diff --git a/proto/nftmngr/v092/metadata_creator.proto b/proto/nftmngr/v092/metadata_creator.proto new file mode 100644 index 00000000..8b146a90 --- /dev/null +++ b/proto/nftmngr/v092/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v092/nft_attribute_value.proto b/proto/nftmngr/v092/nft_attribute_value.proto new file mode 100644 index 00000000..79c7a8c3 --- /dev/null +++ b/proto/nftmngr/v092/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v092/nft_collection.proto b/proto/nftmngr/v092/nft_collection.proto new file mode 100644 index 00000000..032d8d27 --- /dev/null +++ b/proto/nftmngr/v092/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; +import "nftmngr/v092/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v092/nft_data.proto b/proto/nftmngr/v092/nft_data.proto new file mode 100644 index 00000000..88d1bdbf --- /dev/null +++ b/proto/nftmngr/v092/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +import "nftmngr/v092/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v092/nft_fee_balance.proto b/proto/nftmngr/v092/nft_fee_balance.proto new file mode 100644 index 00000000..d7b72e18 --- /dev/null +++ b/proto/nftmngr/v092/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v092/nft_fee_config.proto b/proto/nftmngr/v092/nft_fee_config.proto new file mode 100644 index 00000000..6205bb77 --- /dev/null +++ b/proto/nftmngr/v092/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v092/nft_schema.proto b/proto/nftmngr/v092/nft_schema.proto new file mode 100644 index 00000000..705156a3 --- /dev/null +++ b/proto/nftmngr/v092/nft_schema.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + + +import "nftmngr/v092/on_chain_data.proto"; +import "nftmngr/v092/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + +message NFTSchemaINPUT { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + repeated string system_actioners = 5; + OriginData origin_data = 6; + OnChainDataInput onchain_data = 7; + bool isVerified = 8; + string mint_authorization = 9; +} diff --git a/proto/nftmngr/v092/nft_schema_by_contract.proto b/proto/nftmngr/v092/nft_schema_by_contract.proto new file mode 100644 index 00000000..63a796e7 --- /dev/null +++ b/proto/nftmngr/v092/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v092/on_chain_data.proto b/proto/nftmngr/v092/on_chain_data.proto new file mode 100644 index 00000000..42a54ae7 --- /dev/null +++ b/proto/nftmngr/v092/on_chain_data.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/attribute_definition.proto"; +import "nftmngr/v092/action.proto"; +import "nftmngr/v092/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + repeated AttributeDefinition token_attributes = 1; + repeated Action actions = 2; + repeated FlagStatus status = 3; +} + +message OnChainDataInput { + bool reveal_required = 1; + bytes reveal_secret = 2; + repeated AttributeDefinition schema_attributes = 3; + repeated AttributeDefinition token_attributes = 4; + repeated Action actions = 5; + repeated FlagStatus status = 6; +} + diff --git a/proto/nftmngr/v092/opensea_display_option.proto b/proto/nftmngr/v092/opensea_display_option.proto new file mode 100644 index 00000000..28608d31 --- /dev/null +++ b/proto/nftmngr/v092/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v092/organization.proto b/proto/nftmngr/v092/organization.proto new file mode 100644 index 00000000..a4f997fd --- /dev/null +++ b/proto/nftmngr/v092/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v092/origin_data.proto b/proto/nftmngr/v092/origin_data.proto new file mode 100644 index 00000000..752b4c1b --- /dev/null +++ b/proto/nftmngr/v092/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} \ No newline at end of file diff --git a/proto/nftmngr/v092/schema_attribute.proto b/proto/nftmngr/v092/schema_attribute.proto new file mode 100644 index 00000000..eed650a3 --- /dev/null +++ b/proto/nftmngr/v092/schema_attribute.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v092; +import "nftmngr/v092/display_option.proto"; +import "nftmngr/v092/nft_attribute_value.proto"; +import "nftmngr/v092/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092"; + +message SchemaAttribute { + string nftSchemaCode = 1; + string name = 2; + string data_type = 3; + bool required = 4; + string display_value_field = 5; + DisplayOption display_option = 6; + SchemaAttributeValue current_value = 7; + bool hidden_overide = 8; // flag that allows action to override hidden + bool hidden_to_marketplace = 9; + string creator = 10; +} + + +message SchemaAttributeValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} \ No newline at end of file diff --git a/proto/nftmngr/v093/action.proto b/proto/nftmngr/v093/action.proto new file mode 100644 index 00000000..8ac927a1 --- /dev/null +++ b/proto/nftmngr/v093/action.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} + diff --git a/proto/nftmngr/v093/action_by_ref_id.proto b/proto/nftmngr/v093/action_by_ref_id.proto new file mode 100644 index 00000000..627c6ea9 --- /dev/null +++ b/proto/nftmngr/v093/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v093/action_executor.proto b/proto/nftmngr/v093/action_executor.proto new file mode 100644 index 00000000..882ca064 --- /dev/null +++ b/proto/nftmngr/v093/action_executor.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message ActionExecutor { + string nftSchemaCode = 1; + string executorAddress = 2; + string creator = 3; +} + +message ActionExecutorBySchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; +} diff --git a/proto/nftmngr/v093/action_of_schema.proto b/proto/nftmngr/v093/action_of_schema.proto new file mode 100644 index 00000000..900cf18f --- /dev/null +++ b/proto/nftmngr/v093/action_of_schema.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message ActionOfSchema { + string nftSchemaCode = 1; + string name = 2; + uint64 index = 3; + +} + diff --git a/proto/nftmngr/v093/attribute_definition.proto b/proto/nftmngr/v093/attribute_definition.proto new file mode 100644 index 00000000..d4f5b689 --- /dev/null +++ b/proto/nftmngr/v093/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "nftmngr/v093/display_option.proto"; +import "nftmngr/v093/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} diff --git a/proto/nftmngr/v093/display_option.proto b/proto/nftmngr/v093/display_option.proto new file mode 100644 index 00000000..b69e8ada --- /dev/null +++ b/proto/nftmngr/v093/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "nftmngr/v093/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v093/executor_of_schema.proto b/proto/nftmngr/v093/executor_of_schema.proto new file mode 100644 index 00000000..bb3d2c04 --- /dev/null +++ b/proto/nftmngr/v093/executor_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message ExecutorOfSchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; + +} + diff --git a/proto/nftmngr/v093/metadata_creator.proto b/proto/nftmngr/v093/metadata_creator.proto new file mode 100644 index 00000000..ea9b5ca3 --- /dev/null +++ b/proto/nftmngr/v093/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v093/nft_attribute_value.proto b/proto/nftmngr/v093/nft_attribute_value.proto new file mode 100644 index 00000000..ad4a47e7 --- /dev/null +++ b/proto/nftmngr/v093/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v093/nft_collection.proto b/proto/nftmngr/v093/nft_collection.proto new file mode 100644 index 00000000..4c980c37 --- /dev/null +++ b/proto/nftmngr/v093/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; +import "nftmngr/v093/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v093/nft_data.proto b/proto/nftmngr/v093/nft_data.proto new file mode 100644 index 00000000..9e501701 --- /dev/null +++ b/proto/nftmngr/v093/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +import "nftmngr/v093/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v093/nft_fee_balance.proto b/proto/nftmngr/v093/nft_fee_balance.proto new file mode 100644 index 00000000..44cbde97 --- /dev/null +++ b/proto/nftmngr/v093/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v093/nft_fee_config.proto b/proto/nftmngr/v093/nft_fee_config.proto new file mode 100644 index 00000000..bd0fc176 --- /dev/null +++ b/proto/nftmngr/v093/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v093/nft_schema.proto b/proto/nftmngr/v093/nft_schema.proto new file mode 100644 index 00000000..74f1366e --- /dev/null +++ b/proto/nftmngr/v093/nft_schema.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +import "nftmngr/v093/on_chain_data.proto"; +import "nftmngr/v093/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + +message NFTSchemaINPUT { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + repeated string system_actioners = 5; + OriginData origin_data = 6; + OnChainData onchain_data = 7; + bool isVerified = 8; + string mint_authorization = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v093/nft_schema_by_contract.proto b/proto/nftmngr/v093/nft_schema_by_contract.proto new file mode 100644 index 00000000..473a141b --- /dev/null +++ b/proto/nftmngr/v093/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v093/on_chain_data.proto b/proto/nftmngr/v093/on_chain_data.proto new file mode 100644 index 00000000..c631f080 --- /dev/null +++ b/proto/nftmngr/v093/on_chain_data.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "nftmngr/v093/attribute_definition.proto"; +import "nftmngr/v093/action.proto"; +import "nftmngr/v093/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + repeated AttributeDefinition nft_attributes = 1; + repeated AttributeDefinition token_attributes = 2; + repeated Action actions = 3; + repeated FlagStatus status = 4; +} \ No newline at end of file diff --git a/proto/nftmngr/v093/opensea_display_option.proto b/proto/nftmngr/v093/opensea_display_option.proto new file mode 100644 index 00000000..a4b66766 --- /dev/null +++ b/proto/nftmngr/v093/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v093/organization.proto b/proto/nftmngr/v093/organization.proto new file mode 100644 index 00000000..fdb46028 --- /dev/null +++ b/proto/nftmngr/v093/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v093/origin_data.proto b/proto/nftmngr/v093/origin_data.proto new file mode 100644 index 00000000..81bd8b2f --- /dev/null +++ b/proto/nftmngr/v093/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "nftmngr/v093/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} \ No newline at end of file diff --git a/proto/nftmngr/v093/schema_attribute.proto b/proto/nftmngr/v093/schema_attribute.proto new file mode 100644 index 00000000..66f9d93d --- /dev/null +++ b/proto/nftmngr/v093/schema_attribute.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v093; +import "nftmngr/v093/display_option.proto"; +import "nftmngr/v093/nft_attribute_value.proto"; +import "nftmngr/v093/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v093"; + +message SchemaAttribute { + string nftSchemaCode = 1; + string name = 2; + string data_type = 3; + SchemaAttributeValue current_value = 4; + string creator = 5; +} + +message SchemaAttributeValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} \ No newline at end of file diff --git a/proto/nftmngr/v094/action.proto b/proto/nftmngr/v094/action.proto new file mode 100644 index 00000000..37a31743 --- /dev/null +++ b/proto/nftmngr/v094/action.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +enum AllowedActioner { + ALLOWED_ACTIONER_ALL = 0; + ALLOWED_ACTIONER_SYSTEM_ONLY = 1; + ALLOWED_ACTIONER_USER_ONLY = 2; +} + +message action_params { + string name = 1; + string desc = 2; + string data_type = 3; + bool required = 4; + string default_value = 5; +} + +message Action { + string name = 1; + string desc = 2; + bool disable = 3; + string when = 4; + repeated string then = 5; + AllowedActioner allowed_actioner = 6 [(gogoproto.nullable) = true]; + repeated action_params params = 7 [(gogoproto.nullable) = true]; +} + diff --git a/proto/nftmngr/v094/action_by_ref_id.proto b/proto/nftmngr/v094/action_by_ref_id.proto new file mode 100644 index 00000000..cdac3d7b --- /dev/null +++ b/proto/nftmngr/v094/action_by_ref_id.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message ActionByRefId { + string refId = 1; + string creator = 2; + string nftSchemaCode = 3; + string tokenId = 4; + string action = 5; + +} + diff --git a/proto/nftmngr/v094/action_executor.proto b/proto/nftmngr/v094/action_executor.proto new file mode 100644 index 00000000..f64acd04 --- /dev/null +++ b/proto/nftmngr/v094/action_executor.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message ActionExecutor { + string nftSchemaCode = 1; + string executorAddress = 2; + string creator = 3; +} + +message ActionExecutorBySchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; +} diff --git a/proto/nftmngr/v094/action_of_schema.proto b/proto/nftmngr/v094/action_of_schema.proto new file mode 100644 index 00000000..f2532546 --- /dev/null +++ b/proto/nftmngr/v094/action_of_schema.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message ActionOfSchema { + string nftSchemaCode = 1; + string name = 2; + uint64 index = 3; + +} + diff --git a/proto/nftmngr/v094/attribute_definition.proto b/proto/nftmngr/v094/attribute_definition.proto new file mode 100644 index 00000000..ac87f96b --- /dev/null +++ b/proto/nftmngr/v094/attribute_definition.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/display_option.proto"; +import "nftmngr/v094/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message DefaultMintValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} + +message AttributeDefinition { + + string name = 1; + string data_type = 2; + bool required = 3; + string display_value_field = 4; + DisplayOption display_option = 5; + DefaultMintValue default_mint_value = 6; + bool hidden_overide = 7; // flag that allows action to override hidden + bool hidden_to_marketplace = 8; + uint64 index = 9; +} diff --git a/proto/nftmngr/v094/attribute_of_schema.proto b/proto/nftmngr/v094/attribute_of_schema.proto new file mode 100644 index 00000000..c5184744 --- /dev/null +++ b/proto/nftmngr/v094/attribute_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/schema_attribute.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message AttributeOfSchema { + string nftSchemaCode = 1; + repeated SchemaAttribute schemaAttributes = 2; + +} + diff --git a/proto/nftmngr/v094/display_option.proto b/proto/nftmngr/v094/display_option.proto new file mode 100644 index 00000000..a317a465 --- /dev/null +++ b/proto/nftmngr/v094/display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/opensea_display_option.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + + +message DisplayOption { + string bool_true_value = 1 ; + string bool_false_value = 2; + OpenseaDisplayOption opensea = 3 ; +} diff --git a/proto/nftmngr/v094/executor_of_schema.proto b/proto/nftmngr/v094/executor_of_schema.proto new file mode 100644 index 00000000..796219aa --- /dev/null +++ b/proto/nftmngr/v094/executor_of_schema.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message ExecutorOfSchema { + string nftSchemaCode = 1; + repeated string executorAddress = 2; + +} + diff --git a/proto/nftmngr/v094/metadata_creator.proto b/proto/nftmngr/v094/metadata_creator.proto new file mode 100644 index 00000000..19462dc4 --- /dev/null +++ b/proto/nftmngr/v094/metadata_creator.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message MapTokenToMinter { + string token_id = 1; + string minter = 2; +} + + +message MetadataCreator { + string nftSchemaCode = 1; + repeated MapTokenToMinter metadataMintedBy = 2; +} + diff --git a/proto/nftmngr/v094/nft_attribute_value.proto b/proto/nftmngr/v094/nft_attribute_value.proto new file mode 100644 index 00000000..91b3c254 --- /dev/null +++ b/proto/nftmngr/v094/nft_attribute_value.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +import "google/protobuf/any.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message NftAttributeValue { + + string name = 1; + oneof value { + NumberAttributeValue number_attribute_value = 2; + StringAttributeValue string_attribute_value = 3; + BooleanAttributeValue boolean_attribute_value = 4; + FloatAttributeValue float_attribute_value = 5; + } + bool hidden_to_marketplace = 6; +} + +message NumberAttributeValue { + uint64 value = 1; +} + +message StringAttributeValue { + string value = 1; +} + +message BooleanAttributeValue { + bool value = 1; +} + +message FloatAttributeValue { + double value = 1; +} \ No newline at end of file diff --git a/proto/nftmngr/v094/nft_collection.proto b/proto/nftmngr/v094/nft_collection.proto new file mode 100644 index 00000000..a7d934c9 --- /dev/null +++ b/proto/nftmngr/v094/nft_collection.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; +import "nftmngr/v094/nft_data.proto"; + +message NftCollection { + string nftSchemaCode = 1; + uint64 total = 2; + repeated NftData nftDatas = 3; + +} + diff --git a/proto/nftmngr/v094/nft_data.proto b/proto/nftmngr/v094/nft_data.proto new file mode 100644 index 00000000..07071913 --- /dev/null +++ b/proto/nftmngr/v094/nft_data.proto @@ -0,0 +1,22 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +import "nftmngr/v094/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +enum OwnerAddressType { + ORIGIN_ADDRESS = 0; + INTERNAL_ADDRESS = 1; +} + +message NftData { + string nft_schema_code = 1; + string token_id = 2; + string token_owner = 3; + OwnerAddressType owner_address_type = 4; + string origin_image = 5; + string onchain_image = 6; + string token_uri = 7; + repeated NftAttributeValue origin_attributes = 8; + repeated NftAttributeValue onchain_attributes = 9; +} \ No newline at end of file diff --git a/proto/nftmngr/v094/nft_fee_balance.proto b/proto/nftmngr/v094/nft_fee_balance.proto new file mode 100644 index 00000000..93046348 --- /dev/null +++ b/proto/nftmngr/v094/nft_fee_balance.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message NFTFeeBalance { + // map fee_balances = 1; + repeated string fee_balances = 1; +} diff --git a/proto/nftmngr/v094/nft_fee_config.proto b/proto/nftmngr/v094/nft_fee_config.proto new file mode 100644 index 00000000..02b53d3e --- /dev/null +++ b/proto/nftmngr/v094/nft_fee_config.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + + +enum FeeDistributionMethod { + BURN = 0; + REWARD_POOL = 1; + TRANSFER = 2; +} + +message FeeDistribution { + FeeDistributionMethod method = 1; + float portion = 2; +} + +message FeeConfig { + string fee_amount = 1; + repeated FeeDistribution fee_distributions = 2; +} + +message NFTFeeConfig { + FeeConfig schema_fee = 1; +} diff --git a/proto/nftmngr/v094/nft_schema.proto b/proto/nftmngr/v094/nft_schema.proto new file mode 100644 index 00000000..5d45f7b2 --- /dev/null +++ b/proto/nftmngr/v094/nft_schema.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +import "nftmngr/v094/on_chain_data.proto"; +import "nftmngr/v094/origin_data.proto"; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message NFTSchema { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + OriginData origin_data = 5; + OnChainData onchain_data = 6; + bool isVerified = 7; + string mint_authorization = 8; +} + +message NFTSchemaINPUT { + string code = 1; + string name = 2; + string owner = 3; + string description = 4; + repeated string system_actioners = 5; + OriginData origin_data = 6; + OnChainData onchain_data = 7; + bool isVerified = 8; + string mint_authorization = 9; +} diff --git a/proto/nftmngr/v094/nft_schema_by_contract.proto b/proto/nftmngr/v094/nft_schema_by_contract.proto new file mode 100644 index 00000000..36eff754 --- /dev/null +++ b/proto/nftmngr/v094/nft_schema_by_contract.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message NFTSchemaByContract { + string originContractAddress = 1; + repeated string schemaCodes = 2; + +} + diff --git a/proto/nftmngr/v094/on_chain_data.proto b/proto/nftmngr/v094/on_chain_data.proto new file mode 100644 index 00000000..271736e3 --- /dev/null +++ b/proto/nftmngr/v094/on_chain_data.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/attribute_definition.proto"; +import "nftmngr/v094/action.proto"; +import "nftmngr/v094/nft_attribute_value.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message FlagStatus { + string status_name = 1; + bool status_value = 2; +} + +message OnChainData { + repeated AttributeDefinition nft_attributes = 1; + repeated AttributeDefinition token_attributes = 2; + repeated Action actions = 3; + repeated FlagStatus status = 4; +} diff --git a/proto/nftmngr/v094/opensea_display_option.proto b/proto/nftmngr/v094/opensea_display_option.proto new file mode 100644 index 00000000..0a970b83 --- /dev/null +++ b/proto/nftmngr/v094/opensea_display_option.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message OpenseaDisplayOption { + + string display_type = 1; + string trait_type = 2; + uint64 max_value = 3; +} diff --git a/proto/nftmngr/v094/organization.proto b/proto/nftmngr/v094/organization.proto new file mode 100644 index 00000000..66083850 --- /dev/null +++ b/proto/nftmngr/v094/organization.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; + +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message Organization { + string name = 1; + string owner = 2; + +} + diff --git a/proto/nftmngr/v094/origin_data.proto b/proto/nftmngr/v094/origin_data.proto new file mode 100644 index 00000000..162b3a8e --- /dev/null +++ b/proto/nftmngr/v094/origin_data.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +enum AttributeOverriding { + ORIGIN = 0; + CHAIN = 1; +} + +enum URIRetrievalMethod { + BASE = 0; + TOKEN = 1; +} + +message OriginData { + + string origin_chain = 1; + string origin_contract_address = 2; + string origin_base_uri = 3; + AttributeOverriding attribute_overriding = 4; + string metadata_format = 5; + repeated AttributeDefinition origin_attributes = 6; + URIRetrievalMethod uri_retrieval_method = 7; +} \ No newline at end of file diff --git a/proto/nftmngr/v094/schema_attribute.proto b/proto/nftmngr/v094/schema_attribute.proto new file mode 100644 index 00000000..cfc0e34f --- /dev/null +++ b/proto/nftmngr/v094/schema_attribute.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; +package thesixnetwork.sixnft.nftmngr.v094; +import "nftmngr/v094/display_option.proto"; +import "nftmngr/v094/nft_attribute_value.proto"; +import "nftmngr/v094/attribute_definition.proto"; +option go_package = "github.com/thesixnetwork/sixnft/x/nftmngr/types/v094"; + +message SchemaAttribute { + string nftSchemaCode = 1; + string name = 2; + string data_type = 3; + SchemaAttributeValue current_value = 4; + string creator = 5; +} + + +message SchemaAttributeValue { + oneof value { + NumberAttributeValue number_attribute_value = 1; + StringAttributeValue string_attribute_value = 2; + BooleanAttributeValue boolean_attribute_value = 3; + FloatAttributeValue float_attribute_value = 4; + } +} \ No newline at end of file diff --git a/scripts/evmsign b/scripts/evmsign deleted file mode 100755 index 270e5961..00000000 Binary files a/scripts/evmsign and /dev/null differ diff --git a/scripts/init_data.sh b/scripts/init_data.sh deleted file mode 100755 index 084374db..00000000 --- a/scripts/init_data.sh +++ /dev/null @@ -1,27 +0,0 @@ -grantOracle() -{ - echo "Grant 'oracle' to $1" - sixnftd tx nftadmin grant-permission oracle $1 --from alice --gas auto --gas-adjustment 1.5 --gas-prices 0.1stake -y \ - --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} | grep -q 'msg_index: 0'; -} - -RPC_ENDPOINT=http://localhost:26657 -CHAIN_ID=sixnft -BASE64_SCHEMA=`cat ./mock-data/nft-schema.json | base64 | tr -d '\n'` - -# sixnftd tx nftadmin grant-permission oracle_admin $(sixnftd keys show alice -a) --from alice -y --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} | grep -q 'msg_index: 0'; -# sixnftd tx nftadmin grant-permission admin_signer_config $(sixnftd keys show alice -a) --from alice -y \ - # --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake | grep -q 'msg_index: 0'; - -sixnftd tx nftoracle set-minimum-confirmation 1 --from alice --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} -y | grep -q 'msg_index: 0'; -sixnftd tx nftmngr create-nft-schema ${BASE64_SCHEMA} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 0.1stake -y \ - --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} | grep -q 'msg_index: 0' - -# grantOracle $(sixnftd keys show oracle1 -a) -# grantOracle $(sixnftd keys show oracle2 -a) -# grantOracle $(sixnftd keys show oracle3 -a) -# grantOracle $(sixnftd keys show oracle4 -a) - -# sixnftd tx nftoracle create-action-signer-config baobab 0xe2762507764fE0d20bfb490Fc6Eb3EB837042c35 --from alice -y --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake | grep -q 'msg_index: 0'; - -# sixnftd q nftadmin show-authorization --node ${RPC_ENDPOINT} --chain-id ${CHAIN_ID} diff --git a/scripts/menu.sh b/scripts/menu.sh deleted file mode 100755 index ea5f1455..00000000 --- a/scripts/menu.sh +++ /dev/null @@ -1,410 +0,0 @@ -EVMSIGN=./evmsign -default_schema_code=$1 -timestamp=$(date -u +"%Y-%m-%dT%H:%M:%S.000z") -echo "#############################################" -echo "## ##" -echo "## Welcome to the menu script ##" -echo "## ##" -echo "## Please select an option ##" -echo "## ##" -echo "## 1. Show Schema ##" -echo "## 2. Show NFTs ##" -echo "## 3. Mockup Token ##" -echo "## 4. Mockup Multi Token ##" -echo "## 5. Do Action ##" -echo "## 6. Do Action Multi Tokens ##" -echo "## 7. Set NFT Attribute ##" -echo "## 8. Oracle - Create Mint Request ##" -echo "## 9. Oracle - Get Mint Request ##" -echo "## 10. Oracle - Submit Mint Response ##" -echo "## 11. Oracle - Create Action Request ##" -echo "## 12. Oracle - Get Action Request ##" -echo "## 13. Oracle - Submit Action Response ##" -echo "## 14. Oracle - Create Verfify Request ##" -echo "## 15. Oracle - Get Verify Request ##" -echo "## 16. Oracle - Submit Verify Response ##" -echo "## 17. Add Attribute ##" -echo "## 18. Add Action ##" -echo "## 19. Oracle - Set Signer ##" -echo "## 20. Show ActionSigner By Address ##" -echo "## 21. Oracle - Action Request By Signer ##" -echo "## 22. Oracle - Request Sync Signer ##" -echo "## 23. Oracle - Submit Sync Signer ##" -echo "## Your choice: ##" -echo "## ##" -echo "#############################################" -read -p "Your choice: " choice -case $choice in -1) - echo "Showing Schema" - read -p "Enter Schema Code: " schema_code - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - sixnftd q nftmngr show-nft-schema ${schema_code} --output json | jq . - ;; -2) - echo "Showing NFT" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - sixnftd q nftmngr show-nft-data ${schema_code} ${token_id} --output json | jq . - ;; -3) - echo "Mockup Token" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - BASE64_META=$(cat ./mock-data/nft-data.json | sed "s/TOKENID/${token_id}/g" | sed "s/SCHEMA_CODE/${schema_code}/g" | base64 | tr -d '\n') - sixnftd tx nftmngr create-metadata "${schema_code}" ${token_id} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 0.1stake -y \ - ${BASE64_META} --chain-id sixnft - ;; -4) echo "Mockup Multi Token" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token IDs: " token_id - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - BASE64_META=`cat ./mock-data/nft-data.json | sed "s/TOKENID/MULTIMINT/g" | sed "s/SCHEMA_CODE/${schema_code}/g" | base64 | tr -d '\n'` - sixnftd tx nftmngr create-multi-metadata ${schema_code} ${token_id} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - ${BASE64_META} --chain-id sixnft - ;; -5) echo "Do Action" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - read -p "Enter Action: " action - read -p "Enter Ref ID: " ref_id - read -p "Enter Required Params: " num_params - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - if [ -z "$ref_id" ]; then - ref_id=$timestamp - fi - # check if required_params is empty - if [[ -z "$num_params" || "$num_params" -eq 0 ]]; then - required_params="[]" - else - for ((i = 1; i <= num_params; i++)); do - read -p "Enter name of param $i: " param_name - read -p "Enter value of >> $param_name << : " param_value - required_params+=("{\"name\":\"$param_name\",\"value\":\"$param_value\"}") - done - required_params=$(echo ${required_params[@]} | tr ' ' ',') - required_params="["$required_params"]" - $required_params - fi - - sixnftd tx nftmngr perform-action-by-nftadmin ${schema_code} ${token_id} ${action} ${ref_id} ${required_params} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft -o json | jq . - ;; -6) echo "Do Action Multi token" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token IDs: " token_id - read -p "Enter Action: " action - read -p "Enter Ref ID: " ref_id - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - if [ -z "$ref_id" ]; then - ref_id=$timestamp - fi - # array from action - arrAction=(${action//,/ }) - all_required_params=() - # iterate through array using for loop - for i in "${arrAction[@]}" - do - echo "$i" - read -p "Enter number of Required Params of $i: " num_params - required_params=() - # check if required_params is empty - if [[ -z "$num_params" || "$num_params" -eq 0 ]]; then - required_params="[]" - else - for ((j=1; j<=num_params; j++)); do - read -p "Enter name of param $j: " param_name - read -p "Enter value of >> $param_name << : " param_value - required_params+=( "{\"name\":\"$param_name\",\"value\":\"$param_value\"}" ) - done - required_params="["$(echo ${required_params[@]} | tr ' ' ',')"]" - echo $required_params - fi - all_required_params+=($required_params) - done - all_required_params="["$(echo ${all_required_params[@]} | tr ' ' ',')"]" - sixnftd tx nftmngr perform-multi-token-action ${schema_code} ${token_id} ${action} ${ref_id} ${all_required_params} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -7) - echo "Set NFT Attribute" - read -p "Enter Schema Code: " schema_code - read -p "Enter Value (attribute_name=N[value]): " value - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - - ATTRIBUTE_NAME=$(echo $value | cut -d'=' -f1) - ATTRIBUTE_VALUE_STRING=$(echo $value | cut -d'=' -f2) - # get one character from ATTRIBUTE_VALUE - ATTRIBUTE_VALUE_CHAR=$(echo $ATTRIBUTE_VALUE_STRING | cut -c1) - # get characters between [] from ATTRIBUTE_VALUE_CHAR - ATTRIBUTE_VALUE_VALUE=$(echo $ATTRIBUTE_VALUE_STRING | cut -d'[' -f2 | cut -d']' -f1) - - if [ "$ATTRIBUTE_VALUE_CHAR" = "N" ]; then - ATTRIBUTE_VALUE_TYPE="number" - ATTRIBUTE_VALUE_TYPE_VALUE=${ATTRIBUTE_VALUE_VALUE} - elif [ "$ATTRIBUTE_VALUE_CHAR" = "S" ]; then - ATTRIBUTE_VALUE_TYPE="string" - ATTRIBUTE_VALUE_TYPE_VALUE="\"${ATTRIBUTE_VALUE_VALUE}\"" - elif [ "$ATTRIBUTE_VALUE_CHAR" = "B" ]; then - ATTRIBUTE_VALUE_TYPE="boolean" - # check if ATTRIBUTE_VALUE_VALUE is true or false - if [ "$ATTRIBUTE_VALUE_VALUE" = "true" ]; then - ATTRIBUTE_VALUE_TYPE_VALUE="true" - elif [ "$ATTRIBUTE_VALUE_VALUE" = "false" ]; then - ATTRIBUTE_VALUE_TYPE_VALUE="false" - else - echo "Invalid boolean value" - exit 1 - fi - elif [ "$ATTRIBUTE_VALUE_CHAR" = "F" ]; then - ATTRIBUTE_VALUE_TYPE="float" - ATTRIBUTE_VALUE_TYPE_VALUE=${ATTRIBUTE_VALUE_VALUE} - fi - - BASE64_ATTR=$(cat ./mock-data/nft-data-test071.json \ - | sed "s/#ATTRIBUTE_NAME#/${ATTRIBUTE_NAME}/g" \ - | sed "s/#ATTRIBUTE_VALUE_TYPE#/${ATTRIBUTE_VALUE_TYPE}/g" \ - | sed "s/#ATTRIBUTE_VALUE_TYPE_VALUE#/${ATTRIBUTE_VALUE_TYPE_VALUE}/g" \ - base64 | tr -d '\n') - - echo "BASE64_ATTR: ${BASE64_ATTR}" - - sixnftd tx nftmngr set-nft-attribute ${schema_code} ${BASE64_ATTR} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -8) - echo "Oracle - Create Mint Request" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - read -p "Require confirmations: " require_confirmations - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - sixnftd tx nftoracle create-mint-request ${schema_code} ${token_id} ${require_confirmations} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -9) - echo "Oracle - Get Mint Request" - read -p "Mint Request ID: " mint_request_id - sixnftd q nftoracle show-mint-request ${mint_request_id} --output json | jq . - ;; -10) - echo "Oracle - Submit Mint Response" - read -p "Mint Request ID: " mint_request_id - read -p "Oracle : " oracle_key_name - BASE64_ORIGINDATA=$(cat ./mock-data/nft-origin-data.json | base64 | tr -d '\n') - - sixnftd tx nftoracle submit-mint-response ${mint_request_id} ${BASE64_ORIGINDATA} --from ${oracle_key_name} --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -11) - echo "Oracle - Create Action Request" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - read -p "Enter Action: " action - read -p "Require confirmations: " require_confirmations - read -p "Reference ID: " reference_id - read -p "Enter Required Params: " num_params - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - # check if required_params is empty - if [[ -z "$num_params" || "$num_params" -eq 0 ]]; then - required_params="[]" - else - for ((i=1; i<=num_params; i++)); do - read -p "Enter name of param $i: " param_name - read -p "Enter value of >> $param_name << : " param_value - required_params+=( "{\"name\":\"$param_name\",\"value\":\"$param_value\"}" ) - done - required_params=$(echo ${required_params[@]} | tr ' ' ',') - required_params=[$required_params] - echo $required_params - fi - - BASE64JSON=$(cat ./mock-data/action-param.json | sed "s/ACTION/${action}/g" | sed "s/TOKEN_ID/${token_id}/g" | sed "s/SCHEMA_CODE/${schema_code}/g" | sed "s/REFID/${reference_id}/g" | sed "s/\"PARAMS\"/${required_params}/g" | sed "s/ONBEHALFOF/""/g") - - BASE64_MESSAGE=$(echo -n $BASE64JSON | base64 | tr -d '\n') - # echo "BASE64_MESSAGE: ${BASE64_MESSAGE}" - MESSAGE_SIG=$(echo -n ${BASE64_MESSAGE} | $EVMSIGN ./secrets/.secret) - # echo "MESSAGE_SIG: ${MESSAGE_SIG}" - - BASE64_ACTION_SIG=$(cat ./mock-data/action-signature.json | sed "s/SIGNATURE/${MESSAGE_SIG}/g" | sed "s/MESSAGE/${BASE64_MESSAGE}/g" | base64 | tr -d '\n') - - # echo -n ${BASE64_MESSAGE} | $EVMSIGN ./.secret 1 - # echo ${BASE64_ACTION_SIG} - sixnftd tx nftoracle create-action-request ethereum ${BASE64_ACTION_SIG} ${require_confirmations} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -12) - echo "Oracle - Get Action Request" - read -p "Action Request ID: " action_request_id - sixnftd q nftoracle show-action-request ${action_request_id} --chain-id sixnft --output json | jq . - ;; -13) - echo "Oracle - Submit Action Response" - read -p "Action Request ID: " action_request_id - read -p "Oracle : " oracle_key_name - BASE64_ORIGINDATA=$(cat ./mock-data/nft-origin-data.json | base64 | tr -d '\n') - - sixnftd tx nftoracle submit-action-response ${action_request_id} ${BASE64_ORIGINDATA} --from ${oracle_key_name} --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -14) - echo "Oracle - Create Verify Schema Request" - read -p "Enter Schema Code: " schema_code - read -p "Require confirmations: " require_confirmations - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - - BASE64JSON=$(cat ./mock-data/verify-collection-owner.json) - # echo "BASE64JSON: ${BASE64JSON}" - BASE64_MESSAGE=$(echo -n $BASE64JSON | base64 | tr -d '\n') - # echo "BASE64_MESSAGE: ${BASE64_MESSAGE}" - MESSAGE_SIG=$(echo -n ${BASE64_MESSAGE} | $EVMSIGN ./secrets/.secret) - # echo "MESSAGE_SIG: ${MESSAGE_SIG}" - - BASE64_VERIFY_SIG=$(cat ./mock-data/verify-signature.json | sed "s/SIGNATURE/${MESSAGE_SIG}/g" | sed "s/MESSAGE/${BASE64_MESSAGE}/g" | base64 | tr -d '\n') - - sixnftd tx nftoracle create-verify-collection-owner-request ${schema_code} ${BASE64_VERIFY_SIG} ${require_confirmations} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -15) - echo "Oracle - Get Verify Request" - read -p "Verify Request ID: " verfiry_request_id - sixnftd q nftoracle show-collection-owner-request ${verfiry_request_id} --output json | jq . - ;; -16) - echo "Oracle - Submit Verify Response" - read -p "Enter Schema Code: " schema_code - read -p "Verify Request ID: " verfiry_request_id - read -p "Oracle : " oracle_key_name - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - BASE64_ORIGINDATA=$(cat ./mock-data/verify-collection-owner.json | base64 | tr -d '\n') - - sixnftd tx nftoracle submit-verify-collection-owner ${verfiry_request_id} ${schema_code} ${BASE64_ORIGINDATA} --from ${oracle_key_name} --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -17) - echo "Add Attribute" - read -p "Enter Schema Code: " schema_code - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - read -p "Location of attribute (0 or 1): " location - BASE64_ATTRIBUTE=$(cat ./mock-data/new-attribute.json | base64 | tr -d '\n') - sixnftd tx nftmngr add-attribute ${schema_code} ${location} ${BASE64_ATTRIBUTE} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -18) - echo "Add Action" - read -p "Enter Schema Code: " schema_code - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - BASE64_ACTION=`cat ./mock-data/new-action.json | base64 | tr -d '\n'` - sixnftd tx nftmngr add-action ${schema_code} ${BASE64_ACTION} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y \ - --chain-id sixnft - ;; -19) - echo "Set Signer" - BASE64JSON=$(cat ./mock-data/set-signer.json) - # echo "BASE64JSON: ${BASE64JSON}" - BASE64_MESSAGE=$(echo -n $BASE64JSON | base64 | tr -d '\n') - # echo "BASE64_MESSAGE: ${BASE64_MESSAGE}" - MESSAGE_SIG=$(echo -n ${BASE64_MESSAGE} | $EVMSIGN ./secrets/.secret) - # echo "MESSAGE_SIG: ${MESSAGE_SIG}" - - BASE64_VERIFY_SIG=$(cat ./mock-data/verify-signature.json | sed "s/SIGNATURE/${MESSAGE_SIG}/g" | sed "s/MESSAGE/${BASE64_MESSAGE}/g" | base64 | tr -d '\n') - - sixnftd tx nftoracle create-action-signer ${BASE64_VERIFY_SIG} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y --chain-id sixnft - ;; -20) - echo "Show Action Signer" - read -p "Enter Signer Address (ETH): " signer_address - read -p "Enter Owner Address (ETH): " owner_address - sixnftd q nftoracle show-action-signer ${signer_address} ${owner_address} --chain-id sixnft -o json | jq . - ;; -21) - echo "Oracle - ActionSigner Action Request" - read -p "Enter Schema Code: " schema_code - read -p "Enter Token ID: " token_id - read -p "Enter Action: " action - read -p "Enter OnBehalfOf: " on_behalf_of - read -p "Require confirmations: " require_confirmations - read -p "Reference ID: " reference_id - read -p "Enter Required Params: " num_params - if [ -z "$schema_code" ]; then - schema_code=$default_schema_code - fi - # check if required_params is empty - if [[ -z "$num_params" || "$num_params" -eq 0 ]]; then - required_params="[]" - else - for ((i=1; i<=num_params; i++)); do - read -p "Enter name of param $i: " param_name - read -p "Enter value of >> $param_name << : " param_value - required_params+=( "{\"name\":\"$param_name\",\"value\":\"$param_value\"}" ) - done - required_params=$(echo ${required_params[@]} | tr ' ' ',') - required_params=[$required_params] - echo $required_params - fi - - BASE64JSON=$(cat ./mock-data/action-param.json | sed "s/ACTION/${action}/g" | sed "s/TOKEN_ID/${token_id}/g" | sed "s/SCHEMA_CODE/${schema_code}/g" | sed "s/REFID/${reference_id}/g" | sed "s/\"PARAMS\"/${required_params}/g" | sed "s/ONBEHALFOF/${on_behalf_of}/g") - BASE64_MESSAGE=$(echo -n $BASE64JSON | base64 | tr -d '\n') - # echo "BASE64_MESSAGE: ${BASE64_MESSAGE}" - MESSAGE_SIG=$(echo -n ${BASE64_MESSAGE} | $EVMSIGN ./secrets/.secret2) - # echo "MESSAGE_SIG: ${MESSAGE_SIG}" - - BASE64_ACTION_SIG=$( ./mock-data/action-signature.json | sed "s/SIGNATURE/${MESSAGE_SIG}/g" | sed "s/MESSAGE/${BASE64_MESSAGE}/g" | base64 | tr -d '\n') - - # echo -n ${BASE64_MESSAGE} | $EVMSIGN ./.secret 1 - # echo ${BASE64_ACTION_SIG} - sixnftd tx nftoracle create-action-request ethereum ${BASE64_ACTION_SIG} ${require_confirmations} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake --chain-id sixnft -y - ;; -22) - echo "Oracle - Request Sync Signer" - read -p "Enter Signer Address (ETH): " signer_address - read -p "Enter Owner Address (ETH): " owner_address - read -p "Enter Chain: " chain - read -p "Enter Required Confirmations: " required_confirmations - sixnftd tx nftoracle create-sync-action-signer ${chain} ${signer_address} ${owner_address} ${required_confirmations} --from alice --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake --chain-id sixnft -y - ;; -23) - echo "Oracle - Submit Sync Signer" - read -p "Enter Request ID: " request_id - read -p "Enter Chain: " chain - read -p "Enter Signer Address (ETH): " signer_address - read -p "Enter Owner Address (ETH): " owner_address - read -p "Enter Expire Epoch (default end of day): " expire_epoch - read -p "Enter Required Confirmations: " required_confirmations - if [ -z "$expire_epoch" ]; then - now=$(date +%s) - end_of_day=$(( now - now%86400 + 86399)) - expire_epoch=$end_of_day - fi - sixnftd tx nftoracle submit-sync-action-signer ${request_id} ${chain} ${signer_address} ${owner_address} ${expire_epoch} --from oracle4 --chain-id testnet --gas auto --gas-adjustment 1.5 --gas-prices 1.25stake -y - ;; -*) echo "Invalid choice" - ;; -esac \ No newline at end of file diff --git a/scripts/mock-data/action-param.json b/scripts/mock-data/action-param.json deleted file mode 100644 index f5604249..00000000 --- a/scripts/mock-data/action-param.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "nft_schema_code": "SCHEMA_CODE", - "token_id": "TOKEN_ID", - "action": "ACTION", - "params":[{"name":"points","value":"10"}], - "expired_at": "2022-10-31T00:00:00.000Z", - "ref_id": "REFID", - "on_behalf_of": "ONBEHALFOF" -} diff --git a/scripts/mock-data/action-signature.json b/scripts/mock-data/action-signature.json deleted file mode 100644 index d16a574a..00000000 --- a/scripts/mock-data/action-signature.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "message": "MESSAGE", - "signature": "SIGNATURE" -} diff --git a/scripts/mock-data/attribute.json b/scripts/mock-data/attribute.json deleted file mode 100644 index 46d621d3..00000000 --- a/scripts/mock-data/attribute.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "#ATTRIBUTE_NAME#", - "#ATTRIBUTE_VALUE_TYPE#attribute_value": { - "value": "#ATTRIBUTE_VALUE_TYPE_VALUE#" - } -} diff --git a/scripts/mock-data/new-action.json b/scripts/mock-data/new-action.json deleted file mode 100644 index 377d195b..00000000 --- a/scripts/mock-data/new-action.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "new_action", - "desc": "Use Festival Pass2", - "when": "meta.GetNumber('some_attribute') == 0", - "then": ["meta.SetNumber('some_attribute',meta.GetNumber('some_attribute') 1)"] -} \ No newline at end of file diff --git a/scripts/mock-data/new-attribute.json b/scripts/mock-data/new-attribute.json deleted file mode 100644 index c45aa8fa..00000000 --- a/scripts/mock-data/new-attribute.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "new_attribute", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "New Attribute" - } - } -} \ No newline at end of file diff --git a/scripts/mock-data/nft-data.json b/scripts/mock-data/nft-data.json deleted file mode 100644 index ed3be5b2..00000000 --- a/scripts/mock-data/nft-data.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "nft_schema_code": "SCHEMA_CODE", - "token_id": "TOKENID", - "token_owner": "6x1dk4vh8x995dcrqxr7ku25ykp7nc6g6f7nx6yuh", - "owner_address_type": "INTERNAL_ADDRESS", - "origin_image": "https://ipfsgw.sixnetwork.io/ipfs/QmZvQMoiZzLdcdFAoWYj8tMchZNsyL3qMBKmxjUU164ibL/TOKENID.png", - "onchain_image": "", - "token_uri": "", - "origin_attributes": [ - { - "name": "background", - "string_attribute_value": { - "value": "Gradient_Orange" - }, - "hidden_to_marketplace": false - }, - { - "name": "caption", - "string_attribute_value": { - "value": "Exhibitor" - }, - "hidden_to_marketplace": false - }, - { - "name": "skin", - "string_attribute_value": { - "value": "Rainbow" - }, - "hidden_to_marketplace": false - }, - { - "name": "hair", - "string_attribute_value": { - "value": "Medium_Purple" - }, - "hidden_to_marketplace": false - }, - { - "name": "mouth", - "string_attribute_value": { - "value": "Mouth_D" - }, - "hidden_to_marketplace": false - }, - { - "name": "eyes", - "string_attribute_value": { - "value": "Eye Mask" - }, - "hidden_to_marketplace": false - }, - { - "name": "costume", - "string_attribute_value": { - "value": "Exhibitor_E" - }, - "hidden_to_marketplace": false - } - ], - "onchain_attributes": [ - { - "name": "caption", - "string_attribute_value": { - "value": "Exhibitor" - }, - "hidden_to_marketplace": false - }, - { - "name": "minor_count", - "float_attribute_value": { - "value": 0 - }, - "hidden_to_marketplace": false - }, - { - "name": "stage_points", - "float_attribute_value": { - "value": 0 - }, - "hidden_to_marketplace": true - }, - { - "name":"after_party_claimed", - "boolean_attribute_value": { - "value": false - }, - "hidden_to_marketplace": false - } - - ] -} \ No newline at end of file diff --git a/scripts/mock-data/nft-origin-data.json b/scripts/mock-data/nft-origin-data.json deleted file mode 100644 index fb16961a..00000000 --- a/scripts/mock-data/nft-origin-data.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "image": "https://nft.sixnetwork.io/metadata/QmaBUdqTctVteajpoMVEpo55XAXe2YVwWDgeNi1UT47UKU/1.png", - "holder_address": "0xb7c2468b9481CbDfD029998d6bA98c55072d932e", - "traits": [ - { "trait_type": "Background", "value": "Red" }, - { "trait_type": "Moon", "value": "Moon 2" }, - { "trait_type": "Plate", "value": "Plate 1" }, - { "trait_type": "Tail", "value": "Tail 2" }, - { "trait_type": "Whale", "value": "Whale 2" } - ] - } - \ No newline at end of file diff --git a/scripts/mock-data/nft-schema.json b/scripts/mock-data/nft-schema.json deleted file mode 100644 index b863ff1b..00000000 --- a/scripts/mock-data/nft-schema.json +++ /dev/null @@ -1,1128 +0,0 @@ -{ - "code": "TechSauce.GlobalSummit2023", - "name": "Techsauce Global Summit 2023 | NFT Treasure Hunt", - "owner": "6x1v23u9k5c8pwm87jtvxwwmuzt8nj250xu4lr4vh", - "description": "NFT Treasure Hunt collection transforms your conference experience. Each NFT gifts attendees exclusive experiences, special rewards, and a digital memento of this innovative event. Techsauce Global Summit 2023's NFT Treasure Hunt fuses blockchain with events, offering unique experiences, exclusive rewards, and memorable digital keepsakes.", - "origin_data": { - "origin_chain": "SIXNET", - "origin_contract_address": "0xf9f00B7bA795cdc96dbE2153cBF51Ee46643ee1f", - "origin_base_uri": "https://ipfsgw.sixnetwork.io/ipfs/QmZvQMoiZzLdcdFAoWYj8tMchZNsyL3qMBKmxjUU164ibL/", - "attribute_overriding": "CHAIN", - "metadata_format": "opensea", - "uri_retrieval_method": "BASE", - "origin_attributes": [ - { - "name": "background", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Background", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "caption", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Caption", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "skin", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Skin", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "hair", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Hair", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "mouth", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Mouth", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "costume", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Costume", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "eyes", - "data_type": "string", - "required": false, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Eyes", - "max_value": "0" - } - }, - "default_mint_value": null, - "hidden_overide": false, - "hidden_to_marketplace": false - } - ] - }, - "onchain_data": { - "nft_attributes": [ - { - "name": "tumbler", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Tumbler", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "65" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "cap", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Cap", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "130" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "namecard", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Namecard", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "65" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "g_namecard", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Geo-Namecard", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "70" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "tshirt", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "T-Shirt", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "64" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_tumbler", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Tumbler Price", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 600 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_cap", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Cap Price", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 300 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_namecard", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Namecard Price", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 200 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_g_namecard", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Geo-Namecard Price", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 200 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_tshirt", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "T-Shirt Price", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 250 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "general_after_party_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "After Party Claimed", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "vip_after_party_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "VIP After Party Claimed", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "1" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "speaker_after_party_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Speaker After Party Claimed", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "investor_after_party_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Investor After Party Claimed", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "voucher_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Voucher Claimed Count", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - } - ], - "token_attributes": [ - { - "name": "caption", - "data_type": "string", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Caption", - "max_value": "0" - } - }, - "default_mint_value": { - "string_attribute_value": { - "value": "" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "points", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Points", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 0 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "techsauce_booth", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Booth Techsauce", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "bussiness_zone", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Bussiness Matching Zone", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "relax_zone", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Relaxing Zone", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "exp_zone", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Experiencing Zone", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Attend Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_1", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Main Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_2", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Climate Tech/FinTech Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_3", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "FoodTech/ HealthTech/ Starup Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_4", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Digital Tranformation Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "stage_5", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Corporate Innovation/ Web3 Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "exhibition_count", - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Exhibition Zone", - "max_value": "0" - } - }, - "default_mint_value": { - "number_attribute_value": { - "value": "0" - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "exhibition_a", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Exhibition Zone A", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "exhibition_b", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Exhibition Zone B", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "exhibition_c", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Exhibition Zone C", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "cvc_zone", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "CVC Zone", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "after_party_claimed", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Claimed After Party Privileges", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "voucher_claimed", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Claimed Voucher Privileges", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - }, - { - "name": "minor_count", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Number Of Minors events", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 0 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "stage_points", - "data_type": "float", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "", - "bool_false_value": "", - "opensea": { - "display_type": "", - "trait_type": "Points From Stage", - "max_value": "0" - } - }, - "default_mint_value": { - "float_attribute_value": { - "value": 0 - } - }, - "hidden_overide": false, - "hidden_to_marketplace": true - }, - { - "name": "redemtion_used", - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "display_type": "", - "trait_type": "Redemption Used", - "max_value": "0" - } - }, - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "hidden_overide": false, - "hidden_to_marketplace": false - } - ], - "actions": [ - { - "name": "check_in", - "desc": "Attend to TechSauce Booth", - "disable": false, - "when": "meta.GetBoolean('techsauce_booth') == false", - "then": [ - "meta.SetFloat('points', meta.GetFloat('points') + 50.0)", - "meta.SetBoolean('techsauce_booth', true)", - "max_minor = Max(meta.GetFloat('minor_count')-5.0,-1.0)", - "meta.SetFloat('minor_count', meta.GetFloat('minor_count')+Abs(max_minor))" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [] - }, - { - "name": "attend_zone", - "desc": "Attend to zone", - "disable": false, - "when": "meta.GetBoolean(params['zone'].GetString()) == false", - "then": [ - "meta.SetFloat('points', meta.GetFloat('points') + 70.0)", - "meta.SetBoolean(params['zone'].GetString(), true)", - "max_minor = Max(meta.GetFloat('minor_count')-5.0,-1.0)", - "meta.SetFloat('minor_count', meta.GetFloat('minor_count')+Abs(max_minor))" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [ - { - "name": "zone", - "desc": "zone attribute", - "data_type": "string", - "required": true, - "default_value": "" - } - ] - }, - { - "name": "attend_exhibition", - "desc": "Attend partner exhibition", - "disable": false, - "when": "meta.GetBoolean(params['exhibition'].GetString()) == false", - "then": [ - "meta.SetFloat('points', meta.GetFloat('points') + 50.0)", - "meta.SetBoolean(params['exhibition'].GetString(), true)", - "meta.SetNumber('exhibition_count', meta.GetNumber('exhibition_count') + 1)", - "max_booth = Max(meta.GetNumber('exhibition_count')-2.0,0.0)", - "max_minor = Max(meta.GetFloat('minor_count')-3.0, max_booth)", - "meta.SetFloat('minor_count', meta.GetFloat('minor_count')+Abs(max_minor))" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [ - { - "name": "exhibition", - "desc": "exhibition attribute", - "data_type": "string", - "required": true, - "default_value": "" - } - ] - }, - { - "name": "attend_stage", - "desc": "Attend stage event", - "disable": false, - "when": "meta.GetBoolean(params['stage'].GetString()) == false", - "then": [ - "max_ = Max(meta.GetFloat('stage_points')-400.0,-100.0)", - "meta.SetFloat('stage_points', meta.GetFloat('stage_points')+Abs(max_))", - "meta.SetFloat('points', meta.GetFloat('points')+Abs(max_))", - "meta.SetBoolean(params['stage'].GetString(), true)", - "meta.SetNumber('stage_count', meta.GetNumber('stage_count') + 1)" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [ - { - "name": "stage", - "desc": "Stage attribute", - "data_type": "string", - "required": true, - "default_value": "" - } - ] - }, - { - "name": "redeem_prize", - "desc": "Redemtion points for prize", - "disable": false, - "when": "meta.GetString('caption') != 'Staff' && meta.GetString('caption') != 'Organizer' && meta.GetBoolean('redemtion_used') == false && meta.GetNumber(params['stock'].GetString()) > 1 && meta.GetFloat('points') > meta.GetFloat('redemtion_'+ params['stock'].GetString())", - "then": [ - "meta.SetBoolean('redemtion_used', true)", - "meta.SetFloat('points', meta.GetFloat('points') - meta.GetFloat('redemtion_'+ params['stock'].GetString()))", - "meta.SetNumber(params['stock'].GetString(), meta.GetNumber(params['stock'].GetString()) - 1)" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [ - { - "name": "stock", - "desc": "redemtion stock", - "data_type": "string", - "required": true, - "default_value": "" - } - ] - }, - { - "name": "claim_after_party", - "desc": "Claim After Party", - "disable": false, - "when": "meta.GetString('caption') == 'VIP' || meta.GetString('caption') == 'Speaker'|| meta.GetString('caption') == 'Investor' || meta.GetString('caption') != 'Staff' && meta.GetString('caption') != 'Organizer' && meta.GetNumber('general_after_party_count') < 300 && meta.GetBoolean('after_party_claimed') == false && meta.GetNumber('stage_count') >= 4 && meta.GetFloat('minor_count') >= 4.0", - "then": [ - "meta.SetBoolean('after_party_claimed', true)", - "caption_ = meta.GetString('caption')+'_after_party_count'", - "meta.SetNumber(caption_.ToLower() , meta.GetNumber(caption_.ToLower()) + 1)" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [] - }, - { - "name": "claim_voucher", - "desc": "Voucher Redeemtion", - "disable": false, - "when": "meta.GetString('caption') != 'Staff' && meta.GetString('caption') != 'Organizer' && meta.GetBoolean('voucher_claimed') == false", - "then": [ - "meta.SetBoolean('voucher_claimed', true)", - "meta.SetNumber('voucher_claimed' , meta.GetNumber('voucher_claimed') + 1)" - ], - "allowed_actioner": "ALLOWED_ACTIONER_ALL", - "params": [] - }, - { - "name": "change_price", - "desc": "Change Price of Redemtion", - "disable": false, - "when": "meta.GetString('caption') == 'Staff' || meta.GetString('caption') == 'Organizer'", - "then": [ - "new_points = params['points'].GetNumber()", - "meta.SetFloat(params['stock'].GetString(), 0.0 + new_points)" - ], - "allowed_actioner": "ALLOWED_ACTIONER_SYSTEM_ONLY", - "params": [ - { - "name": "stock", - "desc": "redemtion stock", - "data_type": "string", - "required": true, - "default_value": "" - }, - { - "name": "points", - "desc": "New Point Value", - "data_type": "number", - "required": true, - "default_value": "" - } - ] - } - ], - "status": [ - { - "status_name": "first_mint_complete", - "status_value": true - } - ] - }, - "isVerified": false, - "mint_authorization": "system" -} \ No newline at end of file diff --git a/scripts/mock-data/set-signer.json b/scripts/mock-data/set-signer.json deleted file mode 100644 index 00dd2e03..00000000 --- a/scripts/mock-data/set-signer.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "actor_address":"0x837f7E4DcCB7AEd3807e51f0535E7Fa2718bc0E7", - "expired_at":"2022-10-28T08:25:00.000000000Z" -} \ No newline at end of file diff --git a/scripts/mock-data/verify-collection-owner.json b/scripts/mock-data/verify-collection-owner.json deleted file mode 100644 index 30ffb246..00000000 --- a/scripts/mock-data/verify-collection-owner.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "chain":"GOERLI", - "contract_address" : "0x9EC14dfF0049F8De41FE106f3221a50313F941aB", - "contract_owner" : "0xb7c2468b9481CbDfD029998d6bA98c55072d932e", - "request_expire" : "2022-10-20T03:44:00Z" -} \ No newline at end of file diff --git a/scripts/mock-data/verify-signature.json b/scripts/mock-data/verify-signature.json deleted file mode 100644 index d16a574a..00000000 --- a/scripts/mock-data/verify-signature.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "message": "MESSAGE", - "signature": "SIGNATURE" -} diff --git a/scripts/readme.md b/scripts/readme.md deleted file mode 100644 index a19ceee3..00000000 --- a/scripts/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -

Private key for development only do not use on production

- -In order to use script you need to have private key in .secret file - -## For zsh users run shell command as below - -> bash init_data.sh - -> bash menu.sh {schem_code} - -## For bash users just run as usual diff --git a/scripts/v072/nft-schema.json b/scripts/v072/nft-schema.json deleted file mode 100644 index 74cb769f..00000000 --- a/scripts/v072/nft-schema.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "code": "sixnetwork.nftexpo", - "name": "NFTexpoGoerli", - "owner": "0xNFTOWNER", - "origin_data": { - "origin_base_uri": "https://dryotus.definix.com/ipfs/QmZc4kPjvz4M4SpNfRZme2gcVzbMQjDt76GsxvLqSexT8R/", - "uri_retrieval_method": "BASE", - "origin_chain": "GOERLI", - "origin_contract_address": "0x9EC14dfF0049F8De41FE106f3221a50313F941aB", - "attribute_overriding": "CHAIN", - "metadata_format": "opensea", - "origin_attributes": [ - { - "name": "background", - "data_type": "string", - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Background" - } - } - }, - { - "name": "moon", - "data_type": "string", - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Moon" - } - } - }, - { - "name": "plate", - "data_type": "string", - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Plate" - } - } - }, - { - "name": "tail", - "data_type": "string", - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Tail" - } - } - }, - { - "name": "whale", - "data_type": "string", - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Whale" - } - } - } - ] - }, - "onchain_data": { - "reveal_required": true, - "reveal_secret": "", - "nft_attributes": [], - "token_attributes": [ - { - "name": "points", - "default_mint_value": { - "number_attribute_value": { - "value": 0 - } - }, - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Points" - } - } - }, - { - "name": "missions_completed", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "All Mission is complete" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "started", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "Started" - } - }, - "hidden_to_marketplace": false - }, - { - "name": "missions_passed", - "default_mint_value": { - "number_attribute_value": { - "value": 1 - } - }, - "data_type": "number", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Missions Passed", - "max_value": 12 - } - }, - "hidden_to_marketplace": false - }, - { - "name": "jan_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "January Claim" - } - }, - "hidden_to_marketplace": false - }, - { - "name": "feb_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "February Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "mar_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "March Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "apr_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "April Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "may_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "May Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "jun_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "June Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "jul_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "July Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "aug_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "August Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "sep_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "September Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "oct_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "October Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "nov_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "November Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "dec_claim", - "default_mint_value": { - "boolean_attribute_value": { - "value": false - } - }, - "data_type": "boolean", - "required": true, - "display_value_field": "value", - "display_option": { - "bool_true_value": "Yes", - "bool_false_value": "No", - "opensea": { - "trait_type": "December Claim" - } - }, - "hidden_to_marketplace": true - }, - { - "name": "start_time", - "default_mint_value": { - "string_attribute_value": { - "value": "" - } - }, - "data_type": "string", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Start Time" - } - } - }, - { - "name": "start_time_local", - "default_mint_value": { - "string_attribute_value": { - "value": "" - } - }, - "data_type": "string", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Start Local Time" - } - } - }, - { - "name": "start_time_bangkok", - "default_mint_value": { - "string_attribute_value": { - "value": "" - } - }, - "data_type": "string", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Start Bangkok Time" - } - } - }, - { - "name": "start_block", - "default_mint_value": { - "string_attribute_value": { - "value": "" - } - }, - "data_type": "string", - "required": true, - "display_value_field": "value", - "display_option": { - "opensea": { - "trait_type": "Start Time" - } - } - } - ], - "actions": [ - { - "name": "start_mission", - "desc": "Start Mission", - "params": [], - "when": "meta.GetBoolean('started') == false", - "then": [ - "meta.SetBoolean('started', true)", - "meta.SetNumber('missions_passed', meta.GetNumber('missions_passed') + 1)", - "meta.SetNumber('points', meta.GetNumber('points') + 200)", - "meta.SetString('start_time',meta.GetUTCBlockTimestamp('2006-01-02T15:04:05Z07:00'))", - "meta.SetString('start_time_local',meta.GetLocalBlockTimestamp('2006-01-02T15:04:05Z07:00'))", - "meta.SetString('start_time_bangkok',meta.GetBlockTimestampByZone('Asia/Bangkok','2006-01-02T15:04:05Z07:00'))", - "meta.SetString('start_block',meta.GetBlockHeight())" - ] - }, - { - "name": "claim_jan", - "desc": "Claim Jan Mission", - "params": [], - "when": "meta.GetBoolean('jan_claim') == false && meta.BlockTimeUTCBefore('2022-02-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-01-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('jan_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_feb", - "desc": "Claim Feb Mission", - "params": [], - "when": "meta.GetBoolean('feb_claim') == false && meta.BlockTimeUTCBefore('2022-03-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-02-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('feb_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_mar", - "desc": "Claim Mar Mission", - "params": [], - "when": "meta.GetBoolean('mar_claim') == false && meta.BlockTimeUTCBefore('2022-04-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-03-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('mar_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_apr", - "desc": "Claim Apr Mission", - "params": [], - "when": "meta.GetBoolean('apr_claim') == false && meta.BlockTimeUTCBefore('2022-05-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-04-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('apr_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_may", - "desc": "Claim May Mission", - "params": [], - "when": "meta.GetBoolean('may_claim') == false && meta.BlockTimeUTCBefore('2022-06-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-05-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('may_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_jun", - "desc": "Claim Jun Mission", - "params": [], - "when": "meta.GetBoolean('jun_claim') == false && meta.BlockTimeUTCBefore('2022-07-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-06-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('jun_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_jul", - "desc": "Claim Jul Mission", - "params": [], - "when": "meta.GetBoolean('jul_claim') == false && meta.BlockTimeUTCBefore('2022-08-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-07-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('jul_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_aug", - "desc": "Claim Aug Mission", - "params": [], - "when": "meta.GetBoolean('aug_claim') == false && meta.BlockTimeUTCBefore('2022-09-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-08-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('aug_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_sep", - "desc": "Claim Sep Mission", - "params": [], - "when": "meta.GetBoolean('sep_claim') == false && meta.BlockTimeUTCBefore('2022-10-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-09-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('sep_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_oct", - "desc": "Claim Oct Mission", - "params": [], - "when": "meta.GetBoolean('oct_claim') == false && meta.BlockTimeUTCBefore('2022-11-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-10-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('oct_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_nov", - "desc": "Claim Nov Mission", - "params": [], - "when": "meta.GetBoolean('nov_claim') == false && meta.BlockTimeUTCBefore('2022-12-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-11-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('nov_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "claim_dec", - "desc": "Claim Dec Mission", - "params": [], - "when": "meta.GetBoolean('dec_claim') == false && meta.BlockTimeUTCBefore('2023-01-17T00:00:01Z','2006-01-02T15:04:05Z07:00') && meta.BlockTimeUTCAfter('2022-12-01T00:01:00Z','2006-01-02T15:04:05Z07:00')", - "then": [ - "meta.SetBoolean('dec_claim', true)", - "meta.SetNumber('points', meta.GetNumber('points') + 100)" - ] - }, - { - "name": "transform", - "desc": "Transform", - "params": [], - "when": "meta.GetBoolean('missions_completed') == false && meta.GetNumber('missions_passed') == 12", - "then": [ - "meta.SetBoolean('missions_completed', true)", - "meta.SetImage(meta.ReplaceAllString(meta.GetImage(),'.jpeg','-t.jpeg'))" - ] - }, - { - "name": "test_param", - "desc": "Burn Points", - "params": [ - { - "name": "points", - "desc": "Points", - "data_type": "number", - "required": true, - "default_value": "10" - }, - { - "name": "minimum_balance", - "desc": "Minimum balance before redeem", - "data_type": "number", - "required": false, - "default_value": "10" - } - ], - "when": "meta.GetBoolean('started') == true", - "then": [ - "meta.SetNumber('points', meta.GetNumber('points') - params['points'].GetNumber())" - ] - }, - { - "name": "test_hidden", - "desc": "Test Dyamic hidden to marketplace", - "params": [ - { - "name": "attribute_name", - "desc": "attriubute name", - "data_type": "string", - "required": true - }, - { - "name": "show", - "desc": "value", - "data_type": "string", - "required": true - } - ], - "when": "meta.GetBoolean('started') == true || meta.GetBoolean('started') == false", - "then": [ - "meta.SetDisplayAttribute(params['attribute_name'].GetString(), params['show'].GetString())" - ] - }, - { - "name": "test_transfer", - "desc": "Test Transfer", - "params": [ - { - "name": "points", - "desc": "Points", - "data_type": "number", - "required": true, - "default_value": "10" - }, - { - "name": "token_id", - "desc": "Token Id", - "data_type": "string", - "required": true, - "default_value": "" - } - ], - "when": "meta.GetNumber('points') > 0 && params['points'].GetNumber() > 0 ", - "then": [ - "meta.TransferNumber('points',params['token_id'].GetString(),params['points'].GetNumber())" - ] - } - ], - "nft_attributes_value": [] - }, - "mint_authorization": "system" -} diff --git a/testutil/keeper/address_test.go b/testutil/keeper/address_test.go new file mode 100644 index 00000000..4641c174 --- /dev/null +++ b/testutil/keeper/address_test.go @@ -0,0 +1,25 @@ +package keeper + +import ( + "fmt" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" +) +func init() { + // Set the prefix for addresses + config := sdk.GetConfig() + config.SetBech32PrefixForAccount("6x", "6xpub") + config.Seal() +} + +func TestAccAddressFromBech32(t *testing.T) { + address := "6x1myrlxmmasv6yq4axrxmdswj9kv5gc0ppx95rmq" + from, err := sdk.AccAddressFromBech32(address) + if err != nil { + t.Fatal(err) + } + + fmt.Printf("######## ADDRESS BYTE: %v\n", from) + fmt.Printf("######## ADDRESS String: %v\n", from.String()) +} diff --git a/testutil/utils/tx.go b/testutil/utils/tx.go new file mode 100644 index 00000000..471cfd64 --- /dev/null +++ b/testutil/utils/tx.go @@ -0,0 +1,44 @@ +package utils + +import ( + "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func init() { + // Set the prefix for addresses + config := sdk.GetConfig() + config.SetBech32PrefixForAccount("6x", "6xpub") + config.Seal() +} + +// KeyTestPubAddr generates a new secp256k1 keypair. +func KeyTestPubAddr() (cryptotypes.PrivKey, cryptotypes.PubKey, sdk.AccAddress) { + key := secp256k1.GenPrivKey() + pub := key.PubKey() + addr := sdk.AccAddress(pub.Address()) + return key, pub, addr +} + +// KeyTestPubAddr generates a new secp256r1 keypair. +func KeyTestPubAddrSecp256R1(require *require.Assertions) (cryptotypes.PrivKey, cryptotypes.PubKey, sdk.AccAddress) { + key, err := secp256r1.GenPrivKey() + require.NoError(err) + pub := key.PubKey() + addr := sdk.AccAddress(pub.Address()) + return key, pub, addr +} + +// NewTestFeeAmount is a test fee amount. +func NewTestFeeAmount() sdk.Coins { + return sdk.NewCoins(sdk.NewInt64Coin("atom", 150)) +} + +// NewTestGasLimit is a test fee gas limit. +func NewTestGasLimit() uint64 { + return 200000 +} diff --git a/x/nftmngr/client/cli/tx_add_attribute.go b/x/nftmngr/client/cli/tx_add_attribute.go index a141cd4c..b7f72fe4 100644 --- a/x/nftmngr/client/cli/tx_add_attribute.go +++ b/x/nftmngr/client/cli/tx_add_attribute.go @@ -22,10 +22,6 @@ func CmdAddAttribute() *cobra.Command { argCode := args[0] attributeLocation := args[1] argNewAttibute := args[2] - // err = json.Unmarshal([]byte(args[1]), argNewAttibute) - // if err != nil { - // return err - // } // convert attributeLocation to number attributeLocationInt, err := strconv.Atoi(attributeLocation) diff --git a/x/nftmngr/client/cli/tx_perform_action_by_admin.go b/x/nftmngr/client/cli/tx_perform_action_by_admin.go index 9a55358b..8827cb0c 100644 --- a/x/nftmngr/client/cli/tx_perform_action_by_admin.go +++ b/x/nftmngr/client/cli/tx_perform_action_by_admin.go @@ -15,8 +15,8 @@ var _ = strconv.Itoa(0) func CmdPerformActionByAdmin() *cobra.Command { cmd := &cobra.Command{ - Use: "perform-action-by-nftadmin [nft-schema-code] [token-id] [action] [ref-id] [action-params]]", - Short: "To do action", + Use: "perform-action-by-nftadmin [nft-schema-code] [token-id] [action] [ref-id] [action-params]", + Short: "To Perfrom action", Args: cobra.ExactArgs(5), RunE: func(cmd *cobra.Command, args []string) (err error) { argNftSchemaCode := args[0] diff --git a/x/nftmngr/client/cli/tx_toggle_action.go b/x/nftmngr/client/cli/tx_toggle_action.go index eaedd561..cf434c9e 100644 --- a/x/nftmngr/client/cli/tx_toggle_action.go +++ b/x/nftmngr/client/cli/tx_toggle_action.go @@ -20,14 +20,14 @@ func CmdToggleAction() *cobra.Command { RunE: func(cmd *cobra.Command, args []string) (err error) { argCode := args[0] argAction := args[1] - argDisable := args[2] + argStatus := args[2] clientCtx, err := client.GetClientTxContext(cmd) if err != nil { return err } // string to bool - disableBool, err := strconv.ParseBool(argDisable) + statusBool, err := strconv.ParseBool(argStatus) if err != nil { return err } @@ -36,11 +36,13 @@ func CmdToggleAction() *cobra.Command { clientCtx.GetFromAddress().String(), argCode, argAction, - disableBool, + statusBool, ) + if err := msg.ValidateBasic(); err != nil { return err } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, } diff --git a/x/nftmngr/handler.go b/x/nftmngr/handler.go index 3445cbf9..d3898513 100644 --- a/x/nftmngr/handler.go +++ b/x/nftmngr/handler.go @@ -80,9 +80,6 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case *types.MsgCreateActionExecutor: res, err := msgServer.CreateActionExecutor(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) - case *types.MsgUpdateActionExecutor: - res, err := msgServer.UpdateActionExecutor(sdk.WrapSDKContext(ctx), msg) - return sdk.WrapServiceResult(ctx, res, err) case *types.MsgDeleteActionExecutor: res, err := msgServer.DeleteActionExecutor(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) diff --git a/x/nftmngr/keeper/action_executor.go b/x/nftmngr/keeper/action_executor.go index dcfb0a90..0bc06066 100644 --- a/x/nftmngr/keeper/action_executor.go +++ b/x/nftmngr/keeper/action_executor.go @@ -3,6 +3,7 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/thesixnetwork/sixnft/x/nftmngr/types" ) @@ -21,7 +22,6 @@ func (k Keeper) GetActionExecutor( ctx sdk.Context, nftSchemaCode string, executorAddress string, - ) (val types.ActionExecutor, found bool) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ActionExecutorKeyPrefix)) @@ -42,7 +42,6 @@ func (k Keeper) RemoveActionExecutor( ctx sdk.Context, nftSchemaCode string, executorAddress string, - ) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ActionExecutorKeyPrefix)) store.Delete(types.ActionExecutorKey( @@ -66,3 +65,106 @@ func (k Keeper) GetAllActionExecutor(ctx sdk.Context) (list []types.ActionExecut return } + +func (k Keeper) AddActionExecutor(ctx sdk.Context, creator, nftSchemaName , executorAddress string) error { + // Retrieve the schema + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + // Check if the creator is the owner of the schema + if creator != schema.Owner { + return sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") + } + + // Check if the value already exists + _, isFound := k.GetActionExecutor( + ctx, + nftSchemaName, + executorAddress, + ) + + if isFound { + return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Action Executor already exists") + } + + actionExecutor := types.ActionExecutor{ + Creator: creator, + NftSchemaCode: nftSchemaName, + ExecutorAddress: executorAddress, + } + + val, found := k.GetExecutorOfSchema(ctx, nftSchemaName) + if !found { + val = types.ExecutorOfSchema{ + NftSchemaCode: nftSchemaName, + ExecutorAddress: []string{}, + } + } + + // set executorOfSchema + val.ExecutorAddress = append(val.ExecutorAddress, executorAddress) + + k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ + NftSchemaCode: val.NftSchemaCode, + ExecutorAddress: val.ExecutorAddress, + }) + + k.SetActionExecutor(ctx, actionExecutor) + + return nil +} + +// RemoveActionExecutor removes a actionExecutor from the store +func (k Keeper) DelActionExecutor(ctx sdk.Context, creator, nftSchemaName , executorAddress string) error { + // Retrieve the schema + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + // Check if the creator is the owner of the schema + if creator != schema.Owner { + return sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") + } + + // Check if the value exists + _, isFound := k.GetActionExecutor( + ctx, + nftSchemaName, + executorAddress, + ) + if !isFound { + return sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "index not set") + } + + k.RemoveActionExecutor( + ctx, + nftSchemaName, + executorAddress, + ) + + val, found := k.GetExecutorOfSchema(ctx, nftSchemaName) + if !found { + val = types.ExecutorOfSchema{ + NftSchemaCode: nftSchemaName, + ExecutorAddress: []string{}, + } + } + + // remove executorOfSchema + for i, executor := range val.ExecutorAddress { + if executor == executorAddress { + val.ExecutorAddress = append(val.ExecutorAddress[:i], val.ExecutorAddress[i+1:]...) + break + } + } + + k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ + NftSchemaCode: val.NftSchemaCode, + ExecutorAddress: val.ExecutorAddress, + }) + + return nil +} diff --git a/x/nftmngr/keeper/action_keeper.go b/x/nftmngr/keeper/action_keeper.go new file mode 100644 index 00000000..cd2c7bff --- /dev/null +++ b/x/nftmngr/keeper/action_keeper.go @@ -0,0 +1,318 @@ +package keeper + +import ( + "encoding/json" + "strconv" + "time" + + "github.com/thesixnetwork/sixnft/x/nftmngr/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func (k Keeper) ActionByAdmin(ctx sdk.Context, creator, nftSchemaName, tokenId, actionName, refId string, parameters []*types.ActionParameter) (changelist []byte, err error) { + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + var isOwner bool + + if creator == schema.Owner { + isOwner = true + } + + // if not owner, check if executor is authorized to perform action + if !isOwner { + + _, isFound := k.GetActionExecutor( + ctx, + nftSchemaName, + creator, + ) + + if !isFound { + return nil, sdkerrors.Wrap(types.ErrUnauthorized, creator) + } + } + + mapAction := types.Action{} + + // Check if action is disabled + action_, found := k.GetActionOfSchema(ctx, nftSchemaName, actionName) + if found { + action := schema.OnchainData.Actions[action_.Index] + if action.Disable { + return nil, sdkerrors.Wrap(types.ErrActionIsDisabled, actionName) + } + mapAction = *action + } else { + return nil, sdkerrors.Wrap(types.ErrActionDoesNotExists, actionName) + } + + if mapAction.GetAllowedActioner() == types.AllowedActioner_ALLOWED_ACTIONER_USER_ONLY { + return nil, sdkerrors.Wrap(types.ErrActionIsForUserOnly, actionName) + } + + // Check if action requires parameters + param := mapAction.GetParams() + required_param := make([]*types.ActionParams, 0) + + for _, p := range param { + if p.Required { + required_param = append(required_param, p) + } + } + + if len(required_param) > len(parameters) { + return nil, sdkerrors.Wrap(types.ErrInvalidParameter, "Input parameters length is not equal to required parameters length") + } + + for i := 0; i < len(required_param); i++ { + if parameters[i].Name != required_param[i].Name { + return nil, sdkerrors.Wrap(types.ErrInvalidParameter, "input paramter name is not match to "+required_param[i].Name) + } + if parameters[i].Value == "" { + parameters[i].Value = required_param[i].DefaultValue + } + } + + tokenData, found := k.GetNftData(ctx, nftSchemaName, tokenId) + if !found { + return nil, sdkerrors.Wrap(types.ErrMetadataDoesNotExists, "Schema: "+nftSchemaName+" TokenID: "+tokenId) + } + + // ** TOKEN DATA LAYER ** + // Create map of existing attribute in nftdata + mapExistingAttributes := make(map[string]bool) + for _, attribute := range tokenData.OnchainAttributes { + mapExistingAttributes[attribute.Name] = true + } + + // Loop over schema.TokenAttributes to check if exists in nftdata + for _, attribute := range schema.OnchainData.TokenAttributes { + if _, ok := mapExistingAttributes[attribute.Name]; !ok { + if attribute.DefaultMintValue == nil { + return nil, sdkerrors.Wrap(types.ErrNoDefaultValue, attribute.Name) + } + // Add attribute to nftdata with default value + tokenData.OnchainAttributes = append(tokenData.OnchainAttributes, + NewNFTAttributeValueFromDefaultValue(attribute.Name, attribute.DefaultMintValue)) + } + } + + var map_converted_schema_attributes []*types.NftAttributeValue + + global_attributes := schema.OnchainData.NftAttributes + + attributeMap := make(map[string]bool) + + for _, schema_attribute := range global_attributes { + // Check if the attribute has already been added + if attributeMap[schema_attribute.Name] { + continue + } + + nftAttributeValue, found := k.GetSchemaAttribute(ctx, schema.Code, schema_attribute.Name) + + if !found { + return nil, sdkerrors.Wrap(types.ErrNoDefaultValue, schema_attribute.Name+" NOT FOUND") + } + + // Add the attribute to the map + attributeMap[schema_attribute.Name] = true + + nftAttributeValue_ := ConverSchemaAttributeToNFTAttributeValue(&nftAttributeValue) + map_converted_schema_attributes = append(map_converted_schema_attributes, nftAttributeValue_) + } + + // ** META path ../types/meta.go ** + meta := types.NewMetadata(&schema, &tokenData, schema.OriginData.AttributeOverriding, map_converted_schema_attributes) + meta.SetGetNFTFunction(func(tokenId string) (*types.NftData, error) { + tokenData, found := k.GetNftData(ctx, nftSchemaName, tokenId) + if !found { + return nil, sdkerrors.Wrap(types.ErrMetadataDoesNotExists, nftSchemaName) + } + return &tokenData, nil + }) + + // utils function + meta.SetGetBlockTimeFunction(func() time.Time { + return ctx.BlockTime() + }) + + // utils function + meta.SetGetBlockHeightFunction(func() int64 { + return ctx.BlockHeight() + }) + + err = ProcessAction(meta, &mapAction, parameters) + if err != nil { + return nil, err + } + + // Check if ChangeList is empty, error if empty + if len(meta.ChangeList) == 0 { + return nil, sdkerrors.Wrap(types.ErrEmptyChangeList, actionName) + } + + // Update back to nftdata + k.SetNftData(ctx, tokenData) + + // Udpate to target + // loop over meta.OtherUpdatedTokenDatas + for _, otherTokenData := range meta.OtherUpdatedTokenDatas { + k.SetNftData(ctx, *otherTokenData) + } + + for _, change := range meta.ChangeList { + val, found := k.GetSchemaAttribute(ctx, nftSchemaName, change.Key) + if found { + switch val.DataType { + case "string": + val.CurrentValue.Value = &types.SchemaAttributeValue_StringAttributeValue{ + StringAttributeValue: &types.StringAttributeValue{ + Value: change.NewValue, + }, + } + case "boolean": + boolValue, err := strconv.ParseBool(change.NewValue) + if err != nil { + return nil, err + } + val.CurrentValue.Value = &types.SchemaAttributeValue_BooleanAttributeValue{ + BooleanAttributeValue: &types.BooleanAttributeValue{ + Value: boolValue, + }, + } + case "number": + uintValue, err := strconv.ParseUint(change.NewValue, 10, 64) + if err != nil { + return nil, err + } + val.CurrentValue.Value = &types.SchemaAttributeValue_NumberAttributeValue{ + NumberAttributeValue: &types.NumberAttributeValue{ + Value: uintValue, + }, + } + case "float": + floatValue, err := strconv.ParseFloat(change.NewValue, 64) + if err != nil { + return nil, err + } + val.CurrentValue.Value = &types.SchemaAttributeValue_FloatAttributeValue{ + FloatAttributeValue: &types.FloatAttributeValue{ + Value: floatValue, + }, + } + default: + return nil, sdkerrors.Wrap(types.ErrParsingAttributeValue, val.DataType) + } + + k.SetSchemaAttribute(ctx, val) + } + } + + // Check action with reference exists + if refId != "" { + + _, found := k.GetActionByRefId(ctx, refId) + if found { + return nil, sdkerrors.Wrap(types.ErrRefIdAlreadyExists, refId) + } + + k.SetActionByRefId(ctx, types.ActionByRefId{ + RefId: refId, + Creator: creator, + NftSchemaCode: nftSchemaName, + TokenId: tokenId, + Action: mapAction.Name, + }) + } + + changeList, _ := json.Marshal(meta.ChangeList) + + return changeList, nil +} + +func (k Keeper) AddActionKeeper(ctx sdk.Context, creator string, nftSchemaName string, newAction types.Action) error { + // get existing action in schema + schema, schemaFound := k.GetNFTSchema(ctx, nftSchemaName) + if !schemaFound { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // validate Action data + err := ValidateAction(&newAction, &schema) + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + } + + // append new action + schema.OnchainData.Actions = append(schema.OnchainData.Actions, &newAction) + + // save index of action + k.SetActionOfSchema(ctx, types.ActionOfSchema{ + Name: newAction.Name, + NftSchemaCode: schema.Code, + Index: uint64(len(schema.OnchainData.Actions) - 1), + }) + + // save schema + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) UpdateActionKeeper(ctx sdk.Context, creator, nftSchemaName string, updateAction types.Action) error { + // get existing action + actionOfSchema, found := k.GetActionOfSchema(ctx, nftSchemaName, updateAction.Name) + if !found { + return sdkerrors.Wrap(types.ErrActionDoesNotExists, updateAction.Name) + } + + // get existing nft schema + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + // updator is valid + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrUnauthorized, creator) + } + + // update action by its index + schema.OnchainData.Actions[actionOfSchema.Index] = &updateAction + + // update schema + k.SetNFTSchema(ctx, schema) + return nil +} + +func (k Keeper) ToggleActionKeeper(ctx sdk.Context, creator, nftSchemaName, actionName string, status bool) error { + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + // Check if creator is owner of schema + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // Update is_active in schema + for i, action := range schema.OnchainData.Actions { + if action.Name == actionName { + schema.OnchainData.Actions[i].Disable = status + } + } + + k.SetNFTSchema(ctx, schema) + + return nil +} diff --git a/x/nftmngr/keeper/attribute_keeper.go b/x/nftmngr/keeper/attribute_keeper.go new file mode 100644 index 00000000..d27833df --- /dev/null +++ b/x/nftmngr/keeper/attribute_keeper.go @@ -0,0 +1,235 @@ +package keeper + +import ( + "strconv" + + "github.com/thesixnetwork/sixnft/x/nftmngr/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func (k Keeper) AddAttributeKeeper(ctx sdk.Context, creator string, nftSchemaName string, new_add_attribute types.AttributeDefinition, location types.AttributeLocation) error { + // get existing nft schema + schema, schemaFound := k.GetNFTSchema(ctx, nftSchemaName) + if !schemaFound { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // validate AttributeDefinition data + err := k.ValidateAttributeDefinition(ctx, &new_add_attribute, &schema) + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + } + + err = ValidateAttributeNames([]*types.AttributeDefinition{&new_add_attribute}) + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + } + + // Swith location of attribute + switch location { + case types.AttributeLocation_NFT_ATTRIBUTE: + + _defaultMintValue, err := ConvertDefaultMintValueToSchemaAttributeValue(new_add_attribute.DefaultMintValue) + if err != nil { + return sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) + } + + // this case will use Msg.CreateSchemaAtribute + k.SetSchemaAttribute(ctx, types.SchemaAttribute{ + NftSchemaCode: nftSchemaName, + Name: new_add_attribute.Name, + CurrentValue: _defaultMintValue, + DataType: new_add_attribute.DataType, + Creator: creator, + }) + + schema.OnchainData.NftAttributes = append(schema.OnchainData.NftAttributes, &new_add_attribute) + + case types.AttributeLocation_TOKEN_ATTRIBUTE: + schema.OnchainData.TokenAttributes = append(schema.OnchainData.TokenAttributes, &new_add_attribute) + + } + + count := MergeAndCountAllAttributes(schema.OriginData.OriginAttributes, schema.OnchainData.NftAttributes, schema.OnchainData.TokenAttributes) + // set new index to new attribute + new_add_attribute.Index = uint64(count - 1) + + // set schema + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) UpdateAttributeKeeper(ctx sdk.Context, creator, nftSchemaName string, update_attribute types.AttributeDefinition) error { + + // Check if the value exists + valFound, isFound := k.GetSchemaAttribute(ctx, nftSchemaName, update_attribute.Name) + if !isFound { + return sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "Attribute not exists in schema") + } + + // get existing nft schema + schema, schemaFound := k.GetNFTSchema(ctx, nftSchemaName) + if !schemaFound { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + err := ValidateAttributeNames([]*types.AttributeDefinition{&update_attribute}) + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + } + + // parse DefaultMintValue to SchemaAttributeValue + schmaAttributeValue, err := ConvertDefaultMintValueToSchemaAttributeValue(update_attribute.DefaultMintValue) + if err != nil { + return sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) + } + + schemaAttribute := types.SchemaAttribute{ + Creator: creator, + NftSchemaCode: valFound.NftSchemaCode, + Name: valFound.Name, + DataType: update_attribute.DataType, + CurrentValue: schmaAttributeValue, + } + + k.SetSchemaAttribute(ctx, schemaAttribute) + + return nil +} + +func (k Keeper) ResyncAttibutesKeeper(ctx sdk.Context, creator, nftSchemaName, tokenId string) error { + // Retreive schema + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + // Check if creator is owner of schema + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // Retrieve NFT Data + nftData, found := k.GetNftData(ctx, nftSchemaName, tokenId) + if !found { + return sdkerrors.Wrap(types.ErrNftDataDoesNotExists, tokenId) + } + + // Create map of existing attribute in nftdata + mapExistingAttributes := make(map[string]bool) + for _, attribute := range nftData.OnchainAttributes { + mapExistingAttributes[attribute.Name] = true + } + + // Loop over schema.TokenAttributes to check if exists in nftdata + for _, attribute := range schema.OnchainData.TokenAttributes { + if _, ok := mapExistingAttributes[attribute.Name]; !ok { + if attribute.DefaultMintValue == nil { + return sdkerrors.Wrap(types.ErrNoDefaultValue, attribute.Name) + } + + // Add attribute to nftdata with default value + nftData.OnchainAttributes = append(nftData.OnchainAttributes, NewNFTAttributeValueFromDefaultValue(attribute.Name, attribute.DefaultMintValue)) + } + } + + // Set nftdata + k.SetNftData(ctx, nftData) + + return nil +} + +func (k Keeper) SetAttributeOveridingKeeper(ctx sdk.Context, creator, nftSchemaName string, newOveridingType int32) error { + + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + switch newOveridingType { + case 0: + schema.OriginData.AttributeOverriding = types.AttributeOverriding_ORIGIN + case 1: + schema.OriginData.AttributeOverriding = types.AttributeOverriding_ORIGIN + default: + return sdkerrors.Wrap(types.ErrAttributeOptionDoesNotExists, strconv.Itoa(int(newOveridingType))) + } + + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) ShowAttributeKeeper(ctx sdk.Context, creator, nftSchemaName string, status bool, attributesName []string) error { + + // Retreive schema + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + // Check if creator is the owner of the schema + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + type ReadAttribute struct { + AttributeDefinition *types.AttributeDefinition + AttributeName string + AttrributeIndex int + AttributeLocation types.AttributeLocation + } + // Create map of nftattributes and tokenattributes ni ReadAttribute struct + mapReadAttribute := make(map[string]ReadAttribute) + for i, nftAttribute := range schema.OnchainData.NftAttributes { + mapReadAttribute[nftAttribute.Name] = ReadAttribute{ + AttributeName: nftAttribute.Name, + AttributeDefinition: nftAttribute, + AttributeLocation: types.AttributeLocation_NFT_ATTRIBUTE, + AttrributeIndex: i, + } + } + + for i, tokenAttribute := range schema.OnchainData.TokenAttributes { + mapReadAttribute[tokenAttribute.Name] = ReadAttribute{ + AttributeName: tokenAttribute.Name, + AttributeDefinition: tokenAttribute, + AttributeLocation: types.AttributeLocation_TOKEN_ATTRIBUTE, + AttrributeIndex: i, + } + } + + // loop over msg.AttributeNames + for _, attributeName := range attributesName { + // check if attribute is exist in mapReadAttribute + if _, ok := mapReadAttribute[attributeName]; !ok { + return sdkerrors.Wrap(types.ErrAttributeDoesNotExists, attributeName) + } + readAttributeDef := mapReadAttribute[attributeName] + if readAttributeDef.AttributeLocation == types.AttributeLocation_NFT_ATTRIBUTE { + schema.OnchainData.NftAttributes[readAttributeDef.AttrributeIndex].HiddenToMarketplace = !status + } else { + schema.OnchainData.TokenAttributes[readAttributeDef.AttrributeIndex].HiddenToMarketplace = !status + } + } + + k.SetNFTSchema(ctx, schema) + + return nil +} + diff --git a/x/nftmngr/keeper/action_server.go b/x/nftmngr/keeper/engine.go similarity index 89% rename from x/nftmngr/keeper/action_server.go rename to x/nftmngr/keeper/engine.go index aca2ab63..3a120946 100644 --- a/x/nftmngr/keeper/action_server.go +++ b/x/nftmngr/keeper/engine.go @@ -1,8 +1,6 @@ package keeper import ( - "bytes" - "encoding/json" "errors" "github.com/thesixnetwork/sixnft/x/nftmngr/types" @@ -16,9 +14,9 @@ import ( type RuleAction struct { Name string `json:"name"` Desc string `json:"desc"` - Salience int `json:"salience"` When string `json:"when"` Then []string `json:"then"` + Salience int `json:"salience"` } func ProcessAction(meta *types.Metadata, action *types.Action, params []*types.ActionParameter) (err error) { @@ -78,11 +76,3 @@ func ProcessAction(meta *types.Metadata, action *types.Action, params []*types.A } return nil } - -func JSONMarshal(t interface{}) ([]byte, error) { - buffer := &bytes.Buffer{} - encoder := json.NewEncoder(buffer) - encoder.SetEscapeHTML(false) - err := encoder.Encode(t) - return buffer.Bytes(), err -} diff --git a/x/nftmngr/keeper/msg_fee.go b/x/nftmngr/keeper/fee.go similarity index 73% rename from x/nftmngr/keeper/msg_fee.go rename to x/nftmngr/keeper/fee.go index bb1cafba..872a3788 100644 --- a/x/nftmngr/keeper/msg_fee.go +++ b/x/nftmngr/keeper/fee.go @@ -2,6 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" distribtype "github.com/cosmos/cosmos-sdk/x/distribution/types" abci "github.com/tendermint/tendermint/abci/types" "github.com/thesixnetwork/sixnft/x/nftmngr/types" @@ -72,3 +73,28 @@ func (k Keeper) ProcessFeeAmount(ctx sdk.Context, bondedVotes []abci.VoteInfo) e } return nil } + +func (k Keeper) ValidateFeeConfig(feeConfig *types.NFTFeeConfig) error { + // Validate Amount + feeAmount, err := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) + if err != nil { + return sdkerrors.Wrap(types.ErrInvalidFeeAmount, err.Error()) + } + // check if feeAmount.Amount > 0 + if feeAmount.Amount.LTE(sdk.NewInt(0)) { + return sdkerrors.Wrap(types.ErrInvalidFeeAmount, "Fee amount must be greater than 0") + } + // loop over feeConfig.SchemaFee.FeeDistributions + totalPortion := float32(0) + for _, feeDistribution := range feeConfig.SchemaFee.FeeDistributions { + // validate portion + if feeDistribution.Portion <= 0 || feeDistribution.Portion > 1 { + return sdkerrors.Wrap(types.ErrInvalidFeePortion, "Fee portion must be between 0 and 1") + } + totalPortion += feeDistribution.Portion + } + if totalPortion != 1 { + return sdkerrors.Wrap(types.ErrInvalidFeePortion, "Total fee portion must be equal to 1") + } + return nil +} diff --git a/x/nftmngr/keeper/keeper.go b/x/nftmngr/keeper/keeper.go index 677fddf4..75e8660c 100644 --- a/x/nftmngr/keeper/keeper.go +++ b/x/nftmngr/keeper/keeper.go @@ -60,4 +60,4 @@ func (k Keeper) GetCodec() codec.BinaryCodec { func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} +} \ No newline at end of file diff --git a/x/nftmngr/keeper/metadata_keeper.go b/x/nftmngr/keeper/metadata_keeper.go new file mode 100644 index 00000000..c84b4bcd --- /dev/null +++ b/x/nftmngr/keeper/metadata_keeper.go @@ -0,0 +1,141 @@ +package keeper + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/thesixnetwork/sixnft/x/nftmngr/types" +) + +func (k Keeper) CreateNewMetadataKeeper(ctx sdk.Context, creator, nftSchemaName, tokenId string, metadata types.NftData) error { + schema, schemaFound := k.GetNFTSchema(ctx, nftSchemaName) + if !schemaFound { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + mapOfMinters, userMintfound := k.GetMetadataCreator(ctx, nftSchemaName) + + // Check mint authorization + switch schema.MintAuthorization { + case types.KeyMintPermissionOnlySystem: + // Check if creator is the schema owner + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + case types.KeyMintPermissionAll: + // Add creator to minters list + if !userMintfound { + mapOfMinters = types.MetadataCreator{ + NftSchemaCode: schema.Code, + MetadataMintedBy: make([]*types.MapTokenToMinter, 0), + } + mapOfMinters.MetadataMintedBy = append(mapOfMinters.MetadataMintedBy, &types.MapTokenToMinter{ + TokenId: tokenId, + Minter: creator, + }) + } else { + mapOfMinters.MetadataMintedBy = append(mapOfMinters.MetadataMintedBy, &types.MapTokenToMinter{ + TokenId: tokenId, + Minter: creator, + }) + } + } + + // Validate Schema Message and return error if not valid + valid, err := ValidateNFTData(&metadata, &schema) + _ = valid + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + } + + // Append Attribute with default value to NFT Data if not exist in NFT Data yet + mapOfTokenAttributeValues := map[string]*types.NftAttributeValue{} + for _, attr := range metadata.OnchainAttributes { + mapOfTokenAttributeValues[attr.Name] = attr + } + for _, attr := range schema.OnchainData.TokenAttributes { + if attr.Required { + if _, ok := mapOfTokenAttributeValues[attr.Name]; !ok { + if attr.DefaultMintValue != nil { + metadata.OnchainAttributes = append(metadata.OnchainAttributes, NewNFTAttributeValueFromDefaultValue(attr.Name, attr.DefaultMintValue)) + } + } + } + } + + // Check if the data already exists + _, dataFound := k.GetNftData(ctx, metadata.NftSchemaCode, metadata.TokenId) + if dataFound { + return sdkerrors.Wrap(types.ErrMetadataAlreadyExists, metadata.NftSchemaCode) + } + + if !schema.OnchainData.GetStatusByKey(types.KeyNFTStatusFirstMintComplete) { + schema.OnchainData.SetStatusByKey(types.KeyNFTStatusFirstMintComplete, true) + k.SetNFTSchema(ctx, schema) + } + + // Add minter to minters list + k.SetMetadataCreator(ctx, mapOfMinters) + + // Add the data to the store + k.SetNftData(ctx, metadata) + + // Add the minted of any schema to collection + k.AddMetadataToCollection(ctx, &metadata) + + return nil +} + +// Validate NFT Data +func ValidateNFTData(data *types.NftData, schema *types.NFTSchema) (bool, error) { + mapAttributeDefinition := CreateAttrDefMap(schema.OriginData.OriginAttributes) + + // NOTE: No need to merge schema attributes because we will retrieve the attributes value from its directly + // WE WILL NOT CHANGE SCHEMA VALUE IN THIS FUNCTION + mergedAttributes := MergeNFTDataAttributes(schema.OriginData.OriginAttributes, schema.OnchainData.TokenAttributes) + mergedMap := CreateAttrDefMap(mergedAttributes) + + // Check if attributes exist in schema + attributesExistsInSchema, err := NFTDataAttributesExistInSchema(mergedMap, data.OnchainAttributes) + if !attributesExistsInSchema { + return false, sdkerrors.Wrap(types.ErrOnchainAttributesNotExistsInSchema, fmt.Sprintf("Attribute does not exist in schema: %s", err)) + } + + // Check if origin attributes exist in schema + attributesOriginExistsInSchema, err := NFTDataAttributesExistInSchema(mapAttributeDefinition, data.OriginAttributes) + if !attributesOriginExistsInSchema { + return false, sdkerrors.Wrap(types.ErrOnchainAttributesNotExistsInSchema, fmt.Sprintf("Attribute does not exist in schema: %s", err)) + } + + // Validate required attributes + validated, requiredAttributeName := ValidateRequiredAttributes(schema.OnchainData.TokenAttributes, CreateNftAttrValueMap(data.OnchainAttributes)) + if !validated { + return false, sdkerrors.Wrap(types.ErrRequiredAttributeMissing, requiredAttributeName) + } + + // Validate Onchain Attributes Value + duplicated, err := HasDuplicateNftAttributesValue(data.OnchainAttributes) + if duplicated { + return false, sdkerrors.Wrap(types.ErrDuplicateOnchainAttributesValue, fmt.Sprintf("Duplicate attribute name: %s", err)) + } + + // Validate Origin Attributes Value + duplicated, err = HasDuplicateNftAttributesValue(data.OriginAttributes) + if duplicated { + return false, sdkerrors.Wrap(types.ErrDuplicateOriginAttributesValue, fmt.Sprintf("Duplicate attribute name: %s", err)) + } + + // Validate Origin Attributes Exist in Schema + hasSameType, err := HasSameTypeAsSchema(mapAttributeDefinition, data.OriginAttributes) + if !hasSameType { + return false, sdkerrors.Wrap(types.ErrOriginAttributesNotSameTypeAsSchema, fmt.Sprintf("Does not have same type as schema: %s", err)) + } + + // Validate Onchain Attributes Exist in Schema + hasSameType, err = HasSameTypeAsSchema(mergedMap, data.OnchainAttributes) + if !hasSameType { + return false, sdkerrors.Wrap(types.ErrOnchainTokenAttributesNotSameTypeAsSchema, fmt.Sprintf("Does not have same type as schema: %s", err)) + } + return true, nil +} diff --git a/x/nftmngr/keeper/migrations.go b/x/nftmngr/keeper/migrations.go new file mode 100644 index 00000000..da34f239 --- /dev/null +++ b/x/nftmngr/keeper/migrations.go @@ -0,0 +1,237 @@ +package keeper + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + v2types "github.com/thesixnetwork/sixnft/x/nftmngr/migrations/v2/types" + types "github.com/thesixnetwork/sixnft/x/nftmngr/types" +) + +// Migrator is a struct for handling in-place store migrations. +type Migrator struct { + keeper Keeper +} + +// NewMigrator returns a new Migrator. +func NewMigrator(keeper Keeper) Migrator { + return Migrator{ + keeper: keeper, + } +} + +func (m Migrator) Migrate2toV3(ctx sdk.Context) error { + allSchemas := m.keeper.GetAllNFTSchemaLegacy(ctx) + + for _, eachSchema := range allSchemas { + + v2OriginAttribute := make([]*types.AttributeDefinition, 0) + // v2OnchainDataAttribute := make([]*types.AttributeDefinition, 0) + v2TokenAttribute := make([]*types.AttributeDefinition, 0) + v2flagStatus := make([]*types.FlagStatus,0) + + for _, attribute := range eachSchema.OriginData.OriginAttributes { + + convertedDefaultMintValue, err := ConvertDefaultMintValueFromV2ToV3(attribute.DefaultMintValue) + if err != nil { + // Handle the error appropriately + return fmt.Errorf("failed to convert DefaultMintValue for attribute '%s': %w", attribute.Name, err) + } + + v2OriginAttribute = append(v2OriginAttribute, &types.AttributeDefinition{ + Name: attribute.Name, + DataType: attribute.DataType, + Required: attribute.Required, + DisplayValueField: attribute.DisplayValueField, + DisplayOption: &types.DisplayOption{ + BoolTrueValue: attribute.DisplayOption.BoolTrueValue, + BoolFalseValue: attribute.DisplayOption.BoolFalseValue, + Opensea: (*types.OpenseaDisplayOption)(attribute.DisplayOption.Opensea), + }, + DefaultMintValue: convertedDefaultMintValue, + HiddenOveride: attribute.HiddenOveride, + HiddenToMarketplace: attribute.HiddenOveride, + Index: attribute.Index, + }) + } + + for _ , ocAttribute := range eachSchema.OnchainData.NftAttributes { + convertedDefaultMintValue, err := ConvertDefaultMintValueV2ToSchemaAttributeValue(ocAttribute.DefaultMintValue) + if err != nil { + // Handle the error appropriately + return fmt.Errorf("failed to convert DefaultMintValue for attribute '%s': %w", ocAttribute.Name, err) + } + + m.keeper.SetSchemaAttribute(ctx, types.SchemaAttribute{ + NftSchemaCode: eachSchema.Code, + Name: ocAttribute.Name, + DataType: ocAttribute.DataType, + CurrentValue: convertedDefaultMintValue, + Creator: eachSchema.Owner, + }) + } + + for _, tkAttribute := range eachSchema.OnchainData.TokenAttributes { + convertedDefaultMintValue, err := ConvertDefaultMintValueFromV2ToV3(tkAttribute.DefaultMintValue) + if err != nil { + // Handle the error appropriately + return fmt.Errorf("failed to convert DefaultMintValue for attribute '%s': %w", tkAttribute.Name, err) + } + + v2TokenAttribute = append(v2TokenAttribute, &types.AttributeDefinition{ + Name: tkAttribute.Name, + DataType: tkAttribute.DataType, + Required: tkAttribute.Required, + DisplayValueField: tkAttribute.DisplayValueField, + DisplayOption: &types.DisplayOption{ + BoolTrueValue: tkAttribute.DisplayOption.BoolTrueValue, + BoolFalseValue: tkAttribute.DisplayOption.BoolFalseValue, + Opensea: (*types.OpenseaDisplayOption)(tkAttribute.DisplayOption.Opensea), + }, + DefaultMintValue: convertedDefaultMintValue, + HiddenOveride: tkAttribute.HiddenOveride, + HiddenToMarketplace: tkAttribute.HiddenOveride, + Index: tkAttribute.Index, + }) + } + + v2Action := make([]*types.Action, 0) + + + for _, action := range eachSchema.OnchainData.Actions { + v2Params := make([]*types.ActionParams, 0) + + for _, param := range action.Params { + // v2Params = append(v2Params, &types.ActionParams{ + // Name: param.Name, + // Desc: param.Desc, + // DefaultValue: param.DefaultValue, + // DataType: param.DataType, + // }) + v2Params = append(v2Params, (*types.ActionParams)(param)) + } + + v2Action = append(v2Action, &types.Action{ + Name: action.Name, + Desc: action.Desc, + Disable: action.Disable, + When: action.When, + Then: action.Then, + AllowedActioner: types.AllowedActioner(action.AllowedActioner), + Params: v2Params, + }) + } + + + for _, status := range eachSchema.OnchainData.Status { + v2flagStatus = append(v2flagStatus, &types.FlagStatus{ + StatusName: status.StatusName, + StatusValue: status.StatusValue, + }) + } + + // migration action_params to ActionParams + m.keeper.SetNFTSchema(ctx, types.NFTSchema{ + Code: eachSchema.Code, + Name: eachSchema.Name, + Owner: eachSchema.Owner, + Description: eachSchema.Description, + // OriginData: (*types.OriginData)(eachSchema.OriginData), + OriginData: &types.OriginData{ + OriginChain: eachSchema.OriginData.OriginChain, + OriginContractAddress: eachSchema.OriginData.OriginContractAddress, + OriginBaseUri: eachSchema.OriginData.OriginBaseUri, + AttributeOverriding: types.AttributeOverriding(eachSchema.OriginData.AttributeOverriding), + MetadataFormat: eachSchema.OriginData.MetadataFormat, + OriginAttributes: v2OriginAttribute, + UriRetrievalMethod: types.URIRetrievalMethod(eachSchema.OriginData.UriRetrievalMethod), + }, + OnchainData: &types.OnChainData{ + NftAttributes: v2OriginAttribute, + TokenAttributes: v2TokenAttribute, + Actions: v2Action, + Status: v2flagStatus, + }, + IsVerified: eachSchema.IsVerified, + MintAuthorization: eachSchema.MintAuthorization, + }) + } + + return nil +} + +// NoOpStoreMigrate means no migration is needed +func (m Migrator) NoOpStoreMigrate(ctx sdk.Context) error { + return nil +} + + +func ConvertDefaultMintValueFromV2ToV3(defaultMintValue *v2types.DefaultMintValue) (*types.DefaultMintValue, error) { + attributeValue := &types.DefaultMintValue{} + + switch value := defaultMintValue.Value.(type) { + case *v2types.DefaultMintValue_NumberAttributeValue: + attributeValue.Value = &types.DefaultMintValue_NumberAttributeValue{ + NumberAttributeValue: &types.NumberAttributeValue{ + Value: value.NumberAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_StringAttributeValue: + attributeValue.Value = &types.DefaultMintValue_StringAttributeValue{ + StringAttributeValue: &types.StringAttributeValue{ + Value: value.StringAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_BooleanAttributeValue: + attributeValue.Value = &types.DefaultMintValue_BooleanAttributeValue{ + BooleanAttributeValue: &types.BooleanAttributeValue{ + Value: value.BooleanAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_FloatAttributeValue: + attributeValue.Value = &types.DefaultMintValue_FloatAttributeValue{ + FloatAttributeValue: &types.FloatAttributeValue{ + Value: value.FloatAttributeValue.Value, + }, + } + default: + return nil, fmt.Errorf("unknown value type: %T", value) + } + + return attributeValue, nil +} + +func ConvertDefaultMintValueV2ToSchemaAttributeValue(defaultMintValue *v2types.DefaultMintValue) (*types.SchemaAttributeValue, error) { + schemaAttributeValue := &types.SchemaAttributeValue{} + + switch value := defaultMintValue.Value.(type) { + case *v2types.DefaultMintValue_NumberAttributeValue: + schemaAttributeValue.Value = &types.SchemaAttributeValue_NumberAttributeValue{ + NumberAttributeValue: &types.NumberAttributeValue{ + Value: value.NumberAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_StringAttributeValue: + schemaAttributeValue.Value = &types.SchemaAttributeValue_StringAttributeValue{ + StringAttributeValue: &types.StringAttributeValue{ + Value: value.StringAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_BooleanAttributeValue: + schemaAttributeValue.Value = &types.SchemaAttributeValue_BooleanAttributeValue{ + BooleanAttributeValue: &types.BooleanAttributeValue{ + Value: value.BooleanAttributeValue.Value, + }, + } + case *v2types.DefaultMintValue_FloatAttributeValue: + schemaAttributeValue.Value = &types.SchemaAttributeValue_FloatAttributeValue{ + FloatAttributeValue: &types.FloatAttributeValue{ + Value: value.FloatAttributeValue.Value, + }, + } + default: + return nil, fmt.Errorf("unknown value type: %T", value) + } + + return schemaAttributeValue, nil +} \ No newline at end of file diff --git a/x/nftmngr/keeper/msg_server_action_executor.go b/x/nftmngr/keeper/msg_server_action_executor.go index 1cd389bc..4a5cc208 100644 --- a/x/nftmngr/keeper/msg_server_action_executor.go +++ b/x/nftmngr/keeper/msg_server_action_executor.go @@ -4,68 +4,27 @@ import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/thesixnetwork/sixnft/x/nftmngr/types" ) func (k msgServer) CreateActionExecutor(goCtx context.Context, msg *types.MsgCreateActionExecutor) (*types.MsgCreateActionExecutorResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // Retrieve the schema - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - // Check if the creator is the owner of the schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") - } - - //validate that the actioner is a valid address - // validate grantee format as 6x0000000000000000 or not - _, err := sdk.AccAddressFromBech32(msg.ExecutorAddress) + _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return nil, types.ErrInvalidAddress - } - - // Check if the value already exists - _, isFound := k.GetActionExecutor( - ctx, - msg.NftSchemaCode, - msg.ExecutorAddress, - ) - - if isFound { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "Action Executor already exists") + return nil, err } - var actionExecutor = types.ActionExecutor{ - Creator: msg.Creator, - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: msg.ExecutorAddress, + _, err = sdk.AccAddressFromBech32(msg.ExecutorAddress) + if err != nil { + return nil, err } - val, found := k.GetExecutorOfSchema(ctx, msg.NftSchemaCode) - if !found { - val = types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: []string{}, - } + err = k.AddActionExecutor(ctx, msg.Creator, msg.NftSchemaCode, msg.ExecutorAddress) + if err != nil { + return nil, err } - // set executorOfSchema - val.ExecutorAddress = append(val.ExecutorAddress, msg.ExecutorAddress) - - k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: val.ExecutorAddress, - }) - - k.SetActionExecutor( - ctx, - actionExecutor, - ) - // emit events ctx.EventManager().EmitEvent( sdk.NewEvent( @@ -81,120 +40,24 @@ func (k msgServer) CreateActionExecutor(goCtx context.Context, msg *types.MsgCre }, nil } -func (k msgServer) UpdateActionExecutor(goCtx context.Context, msg *types.MsgUpdateActionExecutor) (*types.MsgUpdateActionExecutorResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - // Retrieve the schema - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - // Check if the creator is the owner of the schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") - } - - // Check if the value exists - _, isFound := k.GetActionExecutor( - ctx, - msg.NftSchemaCode, - msg.ExecutorAddress, - ) - if !isFound { - return nil, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "index not set") - } - - // ** Validate by creator is schema owner instead - // // Checks if the the msg creator is the same as the current owner - // if msg.Creator != valFound.Creator { - // return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") - // } - - var actionExecutor = types.ActionExecutor{ - Creator: msg.Creator, - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: msg.ExecutorAddress, - } - - val, found := k.GetExecutorOfSchema(ctx, msg.NftSchemaCode) - if !found { - val = types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: []string{}, - } - } - - // set executorOfSchema - val.ExecutorAddress = append(val.ExecutorAddress, msg.ExecutorAddress) - - k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: val.ExecutorAddress, - }) - - k.SetActionExecutor(ctx, actionExecutor) - - // emit events - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeUpdateActionExecutor, - sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.NftSchemaCode), - sdk.NewAttribute(types.AttributeKeyActionExecutor, msg.ExecutorAddress), - ), - ) - - return &types.MsgUpdateActionExecutorResponse{}, nil -} - func (k msgServer) DeleteActionExecutor(goCtx context.Context, msg *types.MsgDeleteActionExecutor) (*types.MsgDeleteActionExecutorResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - // Check if the creator is the owner of the schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner") - } - - // Check if the value exists - _, isFound := k.GetActionExecutor( - ctx, - msg.NftSchemaCode, - msg.ExecutorAddress, - ) - if !isFound { - return nil, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "index not set") + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, err } - k.RemoveActionExecutor( - ctx, - msg.NftSchemaCode, - msg.ExecutorAddress, - ) - - val, found := k.GetExecutorOfSchema(ctx, msg.NftSchemaCode) - if !found { - val = types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: []string{}, - } + _, err = sdk.AccAddressFromBech32(msg.ExecutorAddress) + if err != nil { + return nil, err } - // remove executorOfSchema - for i, executor := range val.ExecutorAddress { - if executor == msg.ExecutorAddress { - val.ExecutorAddress = append(val.ExecutorAddress[:i], val.ExecutorAddress[i+1:]...) - break - } + err = k.DelActionExecutor(ctx, msg.Creator, msg.NftSchemaCode, msg.ExecutorAddress) + if err != nil { + return nil, err } - k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ - NftSchemaCode: msg.NftSchemaCode, - ExecutorAddress: val.ExecutorAddress, - }) - // emit events ctx.EventManager().EmitEvent( sdk.NewEvent( diff --git a/x/nftmngr/keeper/msg_server_add_action.go b/x/nftmngr/keeper/msg_server_add_action.go index a815c26c..d78eaeba 100644 --- a/x/nftmngr/keeper/msg_server_add_action.go +++ b/x/nftmngr/keeper/msg_server_add_action.go @@ -14,49 +14,30 @@ import ( func (k msgServer) AddAction(goCtx context.Context, msg *types.MsgAddAction) (*types.MsgAddActionResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, err + } + // structure for new action var new_action types.Action - //decode base64 string to bytes + // decode base64 string to bytes input_action, err := base64.StdEncoding.DecodeString(msg.Base64NewAction) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } - //unmarshal bytes to Action structure + // unmarshal bytes to Action structure err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(input_action, &new_action) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) } - //get existing action in schema - schema, schemaFound := k.Keeper.GetNFTSchema(ctx, msg.GetCode()) - if !schemaFound { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.GetCode()) - } - - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - //validate Action data - err = k.ValidateAction(&new_action, &schema) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) - } - - // append new action - schema.OnchainData.Actions = append(schema.OnchainData.Actions, &new_action) - - // save index of action - k.Keeper.SetActionOfSchema(ctx, types.ActionOfSchema{ - Name: new_action.Name, - NftSchemaCode: schema.Code, - Index: uint64(len(schema.OnchainData.Actions) - 1), - }) - - // save schema - k.Keeper.SetNFTSchema(ctx, schema) + err = k.AddActionKeeper(ctx, msg.Creator, msg.Code, new_action) + if err != nil { + return nil, err + } ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( @@ -68,34 +49,7 @@ func (k msgServer) AddAction(goCtx context.Context, msg *types.MsgAddAction) (*t }) return &types.MsgAddActionResponse{ - Code: msg.GetCode(), - Name: schema.Name, - OnchainData: schema.OnchainData, + Code: msg.GetCode(), + Name: new_action.Name, }, nil } - -// validate Action data -func (k Keeper) ValidateAction(action *types.Action, schema *types.NFTSchema) error { - // Onchain Data Nft Actions Map - mapNftActions := CreateActionMap(schema.OnchainData.Actions) - // check if action name is unique - if _, found := mapNftActions[action.Name]; found { - return sdkerrors.Wrap(types.ErrActionAlreadyExists, action.Name) - } - - //validate action struct - if action.Name == "" || action.Name == " " { - return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action name is empty") - } - if action.Desc == "" || action.Desc == " " { - return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action description is empty") - } - if action.When == "" || action.When == " " { - return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action type is empty") - } - //validate array of action.Then is not empty - if len(action.Then) == 0 { - return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action.Then is empty") - } - return nil -} diff --git a/x/nftmngr/keeper/msg_server_add_attribute.go b/x/nftmngr/keeper/msg_server_add_attribute.go index 11189656..ad6fd228 100644 --- a/x/nftmngr/keeper/msg_server_add_attribute.go +++ b/x/nftmngr/keeper/msg_server_add_attribute.go @@ -4,8 +4,6 @@ import ( "context" "encoding/base64" - // "strconv" - "github.com/thesixnetwork/sixnft/x/nftmngr/types" "github.com/cosmos/cosmos-sdk/codec" @@ -16,64 +14,27 @@ import ( func (k msgServer) AddAttribute(goCtx context.Context, msg *types.MsgAddAttribute) (*types.MsgAddAttributeResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) + } + var new_add_attribute types.AttributeDefinition + input_addribute, err := base64.StdEncoding.DecodeString(msg.Base64NewAttriuteDefenition) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } + err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(input_addribute, &new_add_attribute) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) } - //get existing nft schema - schema, schemaFound := k.Keeper.GetNFTSchema(ctx, msg.GetCode()) - if !schemaFound { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.GetCode()) - } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - //validate AttributeDefinition data - err = k.ValidateAttributeDefinition(ctx, &new_add_attribute, &schema) + err = k.AddAttributeKeeper(ctx, msg.Creator, msg.Code, new_add_attribute, msg.Location) if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) - } - - err = ValidateAttributeNames([]*types.AttributeDefinition{&new_add_attribute}) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) - } - - // Swith location of attribute - switch msg.Location { - case types.AttributeLocation_NFT_ATTRIBUTE: - _defaultMintValue, err := ConvertDefaultMintValueToSchemaAttributeValue(new_add_attribute.DefaultMintValue) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) - } - // this case will use Msg.CreateSchemaAtribute - k.SetSchemaAttribute(ctx, types.SchemaAttribute{ - NftSchemaCode: msg.Code, - Name: new_add_attribute.Name, - CurrentValue: _defaultMintValue, - DataType: new_add_attribute.DataType, - Creator: msg.Creator, - }) - schema.OnchainData.NftAttributes = append(schema.OnchainData.NftAttributes, &new_add_attribute) - case types.AttributeLocation_TOKEN_ATTRIBUTE: - // append new token_attributes to array of OnchainData.TokenAttributes - schema.OnchainData.TokenAttributes = append(schema.OnchainData.TokenAttributes, &new_add_attribute) - // end the case + return nil, err } - // count the index of new attribute - count := MergeAndCountAllAttributes(schema.OriginData.OriginAttributes, schema.OnchainData.NftAttributes, schema.OnchainData.TokenAttributes) - // set new index to new attribute - new_add_attribute.Index = uint64(count - 1) - - // set schema - k.Keeper.SetNFTSchema(ctx, schema) // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -82,81 +43,11 @@ func (k msgServer) AddAttribute(goCtx context.Context, msg *types.MsgAddAttribut sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.Code), sdk.NewAttribute(types.AttributeKeyAddAttributeName, new_add_attribute.Name), sdk.NewAttribute(types.AttributeKeyAddAttributeLocation, types.AttributeLocation.String(msg.Location)), - sdk.NewAttribute(types.AttributeKeyAddAttributeResult, "success"), ), }) return &types.MsgAddAttributeResponse{ - Code: msg.GetCode(), - Name: schema.Name, - OnchainData: schema.OnchainData, + Code: msg.Code, + Name: new_add_attribute.Name, }, nil - } - -// validate AttributeDefinition data -func (k msgServer) ValidateAttributeDefinition(ctx sdk.Context, attribute *types.AttributeDefinition, schema *types.NFTSchema) error { - - valFound, found := k.GetSchemaAttribute(ctx, schema.Code, attribute.Name) - if found { - return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, valFound.Name) - } - // Onchain Data Nft Attributes Map - mapOriginAttributes := CreateAttrDefMap(schema.OriginData.OriginAttributes) - mapTokenAttributes := CreateAttrDefMap(schema.OnchainData.TokenAttributes) - // check if attribute name is unique - if _, found := mapOriginAttributes[attribute.Name]; found { - return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, attribute.Name) - } - if _, found := mapTokenAttributes[attribute.Name]; found { - return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, attribute.Name) - } - - // // validate struct data - // if attribute.Name == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute name is empty") - // } - // if attribute.DataType == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute type is empty") - // } - // if strconv.FormatBool(attribute.Required) == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute required is false") - // } - // if attribute.DisplayOption.BoolFalseValue == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute BoolFalseValue is empty") - // } - // if attribute.DisplayOption.BoolTrueValue == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute BoolTrueValue is empty") - // } - // if attribute.DisplayOption.Opensea.DisplayType == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute DisplayType is empty") - // } - // if attribute.DisplayOption.Opensea.TraitType == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute TraitType is empty") - // } - // if strconv.FormatUint(attribute.DisplayOption.Opensea.MaxValue, 10) == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute MaxValue is empty") - // } - // if attribute.DefaultMintValue == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute DefaultMintValue is empty") - // } - // if strconv.FormatBool(attribute.HiddenToMarketplace) == "" { - // return sdkerrors.Wrap(types.ErrInvalidAttribute, "Attribute HiddenToMarketplace is false") - // } - return nil -} - -// merge all attributes and count the index -func MergeAndCountAllAttributes(originAttributes []*types.AttributeDefinition, onchainNFTAttributes []*types.AttributeDefinition, onchainTokenAttribute []*types.AttributeDefinition) int { - // length or originAttributes - length_originAttributes := len(originAttributes) - // length or onchainNFTAttributes - length_onchainNFTAttributes := len(onchainNFTAttributes) - // length or onchainTokenAttribute - length_onchainTokenAttribute := len(onchainTokenAttribute) - - // length of all attributes - length_allAttributes := length_originAttributes + length_onchainNFTAttributes + length_onchainTokenAttribute - return length_allAttributes -} - diff --git a/x/nftmngr/keeper/msg_server_change_owner.go b/x/nftmngr/keeper/msg_server_change_owner.go index 74fd5892..ed46b977 100644 --- a/x/nftmngr/keeper/msg_server_change_owner.go +++ b/x/nftmngr/keeper/msg_server_change_owner.go @@ -11,29 +11,22 @@ import ( func (k msgServer) ChangeOrgOwner(goCtx context.Context, msg *types.MsgChangeOrgOwner) (*types.MsgChangeOrgOwnerResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - //get the organization - organization, found := k.GetOrganization(ctx, msg.OrgName) - if !found { - return nil, sdkerrors.Wrap(types.ErrOrganizationNotFound, msg.OrgName) - } - - if organization.Owner != msg.Creator { - return nil, sdkerrors.Wrap(types.ErrOrganizationOwner, msg.Creator) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - // validate newOwner address - _, err := sdk.AccAddressFromBech32(msg.ToNewOwner) + _, err = sdk.AccAddressFromBech32(msg.ToNewOwner) if err != nil { return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.ToNewOwner) } - //change the owner - organization.Owner = msg.ToNewOwner - - //save the organization - k.SetOrganization(ctx, organization) + err = k.Keeper.ChangeOrgOwner(ctx, msg.Creator, msg.ToNewOwner, msg.OrgName) + if err != nil { + return nil, err + } - //emit event + // emit event ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeChangeOrgOwner, diff --git a/x/nftmngr/keeper/msg_server_change_schema_owner.go b/x/nftmngr/keeper/msg_server_change_schema_owner.go index a2a2c8c5..d6986dc1 100644 --- a/x/nftmngr/keeper/msg_server_change_schema_owner.go +++ b/x/nftmngr/keeper/msg_server_change_schema_owner.go @@ -11,28 +11,21 @@ import ( func (k msgServer) ChangeSchemaOwner(goCtx context.Context, msg *types.MsgChangeSchemaOwner) (*types.MsgChangeSchemaOwnerResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // Retreive schema data - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - // Check if the creator is the same as the current owner - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) + _, err = sdk.AccAddressFromBech32(msg.NewOwner) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.NewOwner) } - _, err := sdk.AccAddressFromBech32(msg.NewOwner) + err = k.Keeper.ChangeSchemaOwner(ctx, msg.Creator, msg.NewOwner, msg.NftSchemaCode) if err != nil { return nil, err } - // Change the owner - schema.Owner = msg.NewOwner - - // Save the schema - k.Keeper.SetNFTSchema(ctx, schema) - ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( types.EventTypeSchemaOwnerChanged, diff --git a/x/nftmngr/keeper/msg_server_create_metadata.go b/x/nftmngr/keeper/msg_server_create_metadata.go index 0dda1346..ce97c6b6 100644 --- a/x/nftmngr/keeper/msg_server_create_metadata.go +++ b/x/nftmngr/keeper/msg_server_create_metadata.go @@ -3,7 +3,6 @@ package keeper import ( "context" "encoding/base64" - "fmt" "github.com/thesixnetwork/sixnft/x/nftmngr/types" @@ -14,91 +13,28 @@ import ( func (k msgServer) CreateMetadata(goCtx context.Context, msg *types.MsgCreateMetadata) (*types.MsgCreateMetadataResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - metadata, err := base64.StdEncoding.DecodeString(msg.Base64NFTData) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) - } - data := types.NftData{} - err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(metadata, &data) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) - } - // Get nft schema from store - schema, schemaFound := k.Keeper.GetNFTSchema(ctx, data.NftSchemaCode) - // Check if the schema already exists - if !schemaFound { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, data.NftSchemaCode) - } - mapOfMinters, userMintfound := k.Keeper.GetMetadataCreator(ctx, data.NftSchemaCode) - // Check mint authorization - switch schema.MintAuthorization { - case types.KeyMintPermissionOnlySystem: - // Check if creator is the schema owner - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - case types.KeyMintPermissionAll: - // Add creator to minters list - if !userMintfound { - mapOfMinters = types.MetadataCreator{ - NftSchemaCode: schema.Code, - MetadataMintedBy: make([]*types.MapTokenToMinter, 0), - } - mapOfMinters.MetadataMintedBy = append(mapOfMinters.MetadataMintedBy, &types.MapTokenToMinter{ - TokenId: data.TokenId, - Minter: msg.Creator, - }) - } else { - mapOfMinters.MetadataMintedBy = append(mapOfMinters.MetadataMintedBy, &types.MapTokenToMinter{ - TokenId: data.TokenId, - Minter: msg.Creator, - }) - } - } - - // Validate Schema Message and return error if not valid - valid, err := ValidateNFTData(&data, &schema) - _ = valid + _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - // Append Attribute with default value to NFT Data if not exist in NFT Data yet - mapOfTokenAttributeValues := map[string]*types.NftAttributeValue{} - for _, attr := range data.OnchainAttributes { - mapOfTokenAttributeValues[attr.Name] = attr - } - for _, attr := range schema.OnchainData.TokenAttributes { - if attr.Required { - if _, ok := mapOfTokenAttributeValues[attr.Name]; !ok { - if attr.DefaultMintValue != nil { - data.OnchainAttributes = append(data.OnchainAttributes, NewNFTAttributeValueFromDefaultValue(attr.Name, attr.DefaultMintValue)) - } - } - } + newMetadata, err := base64.StdEncoding.DecodeString(msg.Base64NFTData) + if err != nil { + return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } - // Check if the data already exists - _, dataFound := k.Keeper.GetNftData(ctx, data.NftSchemaCode, data.TokenId) - if dataFound { - return nil, sdkerrors.Wrap(types.ErrMetadataAlreadyExists, data.NftSchemaCode) + metadata := types.NftData{} + err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(newMetadata, &metadata) + if err != nil { + return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) } - if !schema.OnchainData.GetStatusByKey(types.KeyNFTStatusFirstMintComplete) { - schema.OnchainData.SetStatusByKey(types.KeyNFTStatusFirstMintComplete, true) - k.Keeper.SetNFTSchema(ctx, schema) + err = k.CreateNewMetadataKeeper(ctx, msg.Creator, msg.NftSchemaCode, msg.TokenId, metadata) + if err != nil { + return nil, err } - // Add minter to minters list - k.Keeper.SetMetadataCreator(ctx, mapOfMinters) - - // Add the data to the store - k.Keeper.SetNftData(ctx, data) - - // Add the minted of any schema to collection - k.Keeper.AddMetadataToCollection(ctx, &data) - // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( @@ -110,81 +46,7 @@ func (k msgServer) CreateMetadata(goCtx context.Context, msg *types.MsgCreateMet }) return &types.MsgCreateMetadataResponse{ - NftSchemaCode: data.NftSchemaCode, - TokenId: data.TokenId, + NftSchemaCode: msg.NftSchemaCode, + TokenId: msg.TokenId, }, nil } - -// Validate NFT Data -func ValidateNFTData(data *types.NftData, schema *types.NFTSchema) (bool, error) { - // Origin Data Origin Attributes Map - mapAttributeDefinition := CreateAttrDefMap(schema.OriginData.OriginAttributes) - - // Merge Origin Attributes and Onchain Token Attributes together - // NOTE: No need to merge schema attributes because we will retrieve the attributes value from its directly - // WE WILL NOT CHANGE SCHEMA VALUE IN THIS FUNCTION - mergedAttributes := MergeNFTDataAttributes(schema.OriginData.OriginAttributes, schema.OnchainData.TokenAttributes) - mergedMap := CreateAttrDefMap(mergedAttributes) - - // Check if attributes exist in schema - attributesExistsInSchema, err := NFTDataAttributesExistInSchema(mergedMap, data.OnchainAttributes) - if !attributesExistsInSchema { - return false, sdkerrors.Wrap(types.ErrOnchainAttributesNotExistsInSchema, fmt.Sprintf("Attribute does not exist in schema: %s", err)) - } - - // Check if origin attributes exist in schema - attributesOriginExistsInSchema, err := NFTDataAttributesExistInSchema(mapAttributeDefinition, data.OriginAttributes) - if !attributesOriginExistsInSchema { - return false, sdkerrors.Wrap(types.ErrOnchainAttributesNotExistsInSchema, fmt.Sprintf("Attribute does not exist in schema: %s", err)) - } - - // Validate required attributes - validated, requiredAttributeName := ValidateRequiredAttributes(schema.OnchainData.TokenAttributes, CreateNftAttrValueMap(data.OnchainAttributes)) - if !validated { - return false, sdkerrors.Wrap(types.ErrRequiredAttributeMissing, requiredAttributeName) - } - - // Validate Onchain Attributes Value - duplicated, err := HasDuplicateNftAttributesValue(data.OnchainAttributes) - if duplicated { - return false, sdkerrors.Wrap(types.ErrDuplicateOnchainAttributesValue, fmt.Sprintf("Duplicate attribute name: %s", err)) - } - - // Validate Origin Attributes Value - duplicated, err = HasDuplicateNftAttributesValue(data.OriginAttributes) - if duplicated { - return false, sdkerrors.Wrap(types.ErrDuplicateOriginAttributesValue, fmt.Sprintf("Duplicate attribute name: %s", err)) - } - - // Validate Origin Attributes Exist in Schema - hasSameType, err := HasSameTypeAsSchema(mapAttributeDefinition, data.OriginAttributes) - if !hasSameType { - return false, sdkerrors.Wrap(types.ErrOriginAttributesNotSameTypeAsSchema, fmt.Sprintf("Does not have same type as schema: %s", err)) - } - - // Validate Onchain Attributes Exist in Schema - hasSameType, err = HasSameTypeAsSchema(mergedMap, data.OnchainAttributes) - if !hasSameType { - return false, sdkerrors.Wrap(types.ErrOnchainTokenAttributesNotSameTypeAsSchema, fmt.Sprintf("Does not have same type as schema: %s", err)) - } - return true, nil -} - -func NewNFTAttributeValueFromDefaultValue(name string, defaultValue *types.DefaultMintValue) *types.NftAttributeValue { - nftAttributeValue := &types.NftAttributeValue{ - Name: name, - } - switch defaultValue.Value.(type) { - case *types.DefaultMintValue_NumberAttributeValue: - nftAttributeValue.Value = &types.NftAttributeValue_NumberAttributeValue{NumberAttributeValue: defaultValue.GetNumberAttributeValue()} - case *types.DefaultMintValue_StringAttributeValue: - nftAttributeValue.Value = &types.NftAttributeValue_StringAttributeValue{StringAttributeValue: defaultValue.GetStringAttributeValue()} - case *types.DefaultMintValue_BooleanAttributeValue: - nftAttributeValue.Value = &types.NftAttributeValue_BooleanAttributeValue{BooleanAttributeValue: defaultValue.GetBooleanAttributeValue()} - case *types.DefaultMintValue_FloatAttributeValue: - nftAttributeValue.Value = &types.NftAttributeValue_FloatAttributeValue{FloatAttributeValue: defaultValue.GetFloatAttributeValue()} - default: - return nil - } - return nftAttributeValue -} diff --git a/x/nftmngr/keeper/msg_server_create_multi_metadata.go b/x/nftmngr/keeper/msg_server_create_multi_metadata.go index 6a4ecdd6..b69ffbe0 100644 --- a/x/nftmngr/keeper/msg_server_create_multi_metadata.go +++ b/x/nftmngr/keeper/msg_server_create_multi_metadata.go @@ -135,7 +135,7 @@ func (k msgServer) CreateMultiMetadata(goCtx context.Context, msg *types.MsgCrea } // stringfy tokenId list to string token_id1,token_id2,token_id3 - tokenIdList := k.Keeper.StringfyTokenIdList(msg.TokenId) + tokenIdList := StringfyTokenIdList(msg.TokenId) // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -152,16 +152,3 @@ func (k msgServer) CreateMultiMetadata(goCtx context.Context, msg *types.MsgCrea TokenId: msg.TokenId, }, nil } - -// stringfy tokenId list to string token_id1,token_id2,token_id3 -func (k Keeper) StringfyTokenIdList(list []string) string { - var result string - for i, item := range list { - if i == 0 { - result = item - } else { - result = result + "," + item - } - } - return result -} diff --git a/x/nftmngr/keeper/msg_server_create_nft_schema.go b/x/nftmngr/keeper/msg_server_create_nft_schema.go index 5b847fd3..cbf8aa1d 100644 --- a/x/nftmngr/keeper/msg_server_create_nft_schema.go +++ b/x/nftmngr/keeper/msg_server_create_nft_schema.go @@ -3,7 +3,6 @@ package keeper import ( "context" "encoding/base64" - "strconv" "github.com/thesixnetwork/sixnft/x/nftmngr/types" @@ -12,200 +11,29 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// const ( -// // AttributeName regular expression -// RegxAttributeName = `^[a-z]{1}[a-z0-9_]*[a-z0-9]{1}$` -// RegxActionName = `^[A-Za-z]{1}[A-Za-z0-9_]*[A-Za-z0-9]{1}$` -// //regexp.MatchString(`^[a-z]{1}[a-z0-9_]*[a-z0-9]{1}$`, "user_name9") -// ) - func (k msgServer) CreateNFTSchema(goCtx context.Context, msg *types.MsgCreateNFTSchema) (*types.MsgCreateNFTSchemaResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) + } + jsonSchema, err := base64.StdEncoding.DecodeString(msg.NftSchemaBase64) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } + schema_input := types.NFTSchemaINPUT{} err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(jsonSchema, &schema_input) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingSchemaMessage, err.Error()) } - schema_input.Owner = msg.Creator - creatorAddress, err := sdk.AccAddressFromBech32(msg.Creator) + + err = k.CreateNftSchemaKeeper(ctx, msg.Creator, schema_input) if err != nil { return nil, err } - // Validate Schema Message and return error if not valid - valid, err := ValidateNFTSchema(&schema_input) - _ = valid - if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingNFTSchema, err.Error()) - } - // if mint_authorization is empty then set system to default - if len(schema_input.MintAuthorization) == 0 || schema_input.MintAuthorization != types.KeyMintPermissionOnlySystem && schema_input.MintAuthorization != types.KeyMintPermissionAll { - schema_input.MintAuthorization = types.KeyMintPermissionOnlySystem - } - // Check if the schema_input already exists - _, found := k.Keeper.GetNFTSchema(ctx, schema_input.Code) - if found { - return nil, sdkerrors.Wrap(types.ErrSchemaAlreadyExists, schema_input.Code) - } - foundOrganization, organizationName := GetOrganizationFromSchemaCode(schema_input.Code) - // If there is organization in schema_input code, check if the organization exists - if foundOrganization { - storedOrganization, found := k.Keeper.GetOrganization(ctx, organizationName) - if found { - // Check owner of organization - if storedOrganization.Owner != msg.Creator { - return nil, sdkerrors.Wrap(types.ErrOrganizationOwner, msg.Creator) - } - } else { - // Store organization - k.Keeper.SetOrganization(ctx, types.Organization{ - Owner: msg.Creator, - Name: organizationName, - }) - } - - } - _ = MergeAllAttributesAndAlterOrderIndex(schema_input.OriginData.OriginAttributes, schema_input.OnchainData.NftAttributes, schema_input.OnchainData.TokenAttributes) - - // parse schema_input to NFTSchema - schema := types.NFTSchema{ - Code: schema_input.Code, - Name: schema_input.Name, - Owner: schema_input.Owner, - Description: schema_input.Description, - OriginData: schema_input.OriginData, - OnchainData: &types.OnChainData{ - TokenAttributes: schema_input.OnchainData.TokenAttributes, - NftAttributes: schema_input.OnchainData.NftAttributes, - Actions: schema_input.OnchainData.Actions, - Status: schema_input.OnchainData.Status, - }, - IsVerified: schema_input.IsVerified, - MintAuthorization: schema_input.MintAuthorization, - } - - // loop over SchemaAttribute and add to nftmngr/code/name - for _, schemaDefaultMintAttribute := range schema_input.OnchainData.NftAttributes { - // parse DefaultMintValue to SchemaAttributeValue - schmaAttributeValue, err := ConvertDefaultMintValueToSchemaAttributeValue(schemaDefaultMintAttribute.DefaultMintValue) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) - } - - k.SetSchemaAttribute(ctx, types.SchemaAttribute{ - NftSchemaCode: schema_input.Code, - Name: schemaDefaultMintAttribute.Name, - DataType: schemaDefaultMintAttribute.DataType, - CurrentValue: schmaAttributeValue, - Creator: msg.Creator, - }) - } - - // Add the schema_input to the store - k.Keeper.SetNFTSchema(ctx, schema) - - // **** ACTION **** - // set action - for i, action := range schema_input.OnchainData.Actions { - // check if action already exists - _, isFound := k.Keeper.GetActionOfSchema(ctx, schema_input.Code, action.Name) - if isFound { - continue - } - k.Keeper.SetActionOfSchema(ctx, types.ActionOfSchema{ - Name: action.Name, - NftSchemaCode: schema_input.Code, - Index: uint64(i), - }) - } - - // set action executor - for _, actionExecutor := range schema_input.SystemActioners { - - //validate address - _, err := sdk.AccAddressFromBech32(actionExecutor) - if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, actionExecutor) - } - - // check if actionExecutor already exists - _, isFound := k.Keeper.GetActionExecutor(ctx, schema_input.Code, actionExecutor) - if isFound { - continue - } - - val, found := k.GetExecutorOfSchema(ctx, schema_input.Code) - if !found { - val = types.ExecutorOfSchema{ - NftSchemaCode: schema_input.Code, - ExecutorAddress: []string{}, - } - } - - // set executorOfSchema - val.ExecutorAddress = append(val.ExecutorAddress, actionExecutor) - - k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ - NftSchemaCode: schema_input.Code, - ExecutorAddress: val.ExecutorAddress, - }) - - // set actionExecutor - k.SetActionExecutor(ctx, types.ActionExecutor{ - Creator: msg.Creator, - NftSchemaCode: schema_input.Code, - ExecutorAddress: actionExecutor, - }) - } - - // **** ENHANCEMENT **** - - // Check if schema_input by contract already exists - nftSchemaByContract, found := k.Keeper.GetNFTSchemaByContract(ctx, schema_input.OriginData.OriginContractAddress) - if !found { - nftSchemaByContract = types.NFTSchemaByContract{ - OriginContractAddress: schema_input.OriginData.OriginContractAddress, - SchemaCodes: []string{schema_input.Code}, - } - } else { - nftSchemaByContract.SchemaCodes = append(nftSchemaByContract.SchemaCodes, schema_input.Code) - } - // Add the schema_input code to the list of schema_input codes - k.Keeper.SetNFTSchemaByContract(ctx, nftSchemaByContract) - - // **** SCHEMA FEE **** - feeConfig, found := k.Keeper.GetNFTFeeConfig(ctx) - if found { - // Get Denom - amount, err := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrInvalidFeeAmount, err.Error()) - } - feeBalances, found := k.Keeper.GetNFTFeeBalance(ctx) - if !found { - - feeBalances = types.NFTFeeBalance{ - FeeBalances: []string{ - "0" + amount.Denom, - }, - } - } - - if len(feeBalances.FeeBalances) > 0 { - feeBalances.FeeBalances[types.FeeSubject_CREATE_NFT_SCHEMA] = "0" + amount.Denom - } - err = k.processFee(ctx, &feeConfig, &feeBalances, types.FeeSubject_CREATE_NFT_SCHEMA, creatorAddress) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrProcessingFee, err.Error()) - } - // Set Fee Balance - k.Keeper.SetNFTFeeBalance(ctx, feeBalances) - } - // **** END SCHEMA FEE **** // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -220,17 +48,3 @@ func (k msgServer) CreateNFTSchema(goCtx context.Context, msg *types.MsgCreateNF Code: schema_input.Code, }, nil } - -// Total amount of fee collected from schema_input for each block then distribute to validators // ** In the begin block it will set to 0 again -func (k msgServer) processFee(ctx sdk.Context, feeConfig *types.NFTFeeConfig, feeBalances *types.NFTFeeBalance, feeSubject types.FeeSubject, source sdk.AccAddress) error { - currentFeeBalance, _ := sdk.ParseCoinNormalized(feeBalances.FeeBalances[int32(feeSubject)]) - feeAmount, _ := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) - // Plus fee amount to fee balance - currentFeeBalance = currentFeeBalance.Add(feeAmount) - feeBalances.FeeBalances[int32(feeSubject)] = strconv.FormatInt(currentFeeBalance.Amount.Int64(), 10) + feeAmount.Denom - - err := k.bankKeeper.SendCoinsFromAccountToModule( - ctx, source, types.ModuleName, sdk.NewCoins(feeAmount), - ) - return err -} diff --git a/x/nftmngr/keeper/msg_server_perform_action_by_admin.go b/x/nftmngr/keeper/msg_server_perform_action_by_admin.go index 050e357f..065420c7 100644 --- a/x/nftmngr/keeper/msg_server_perform_action_by_admin.go +++ b/x/nftmngr/keeper/msg_server_perform_action_by_admin.go @@ -2,269 +2,30 @@ package keeper import ( "context" - "encoding/json" - "strconv" - - // "strconv" - "time" "github.com/thesixnetwork/sixnft/x/nftmngr/types" sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func (k msgServer) PerformActionByAdmin(goCtx context.Context, msg *types.MsgPerformActionByAdmin) (*types.MsgPerformActionByAdminResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // ** SCHEMA LAYER ** - // check if schema exists - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - - tokenData, found := k.Keeper.GetNftData(ctx, msg.NftSchemaCode, msg.TokenId) - if !found { - return nil, sdkerrors.Wrap(types.ErrMetadataDoesNotExists, "Schema: "+msg.NftSchemaCode+" TokenID: "+msg.TokenId) - } - - // check if executor is authorized to perform action - var isOwner bool - if msg.Creator == schema.Owner { - isOwner = true - } - - // if not owner, check if executor is authorized to perform action - if !isOwner { - - _, isFound := k.GetActionExecutor( - ctx, - msg.NftSchemaCode, - msg.Creator, - ) - - if !isFound { - return nil, sdkerrors.Wrap(types.ErrUnauthorized, msg.Creator) - } - } - - mapAction := types.Action{} - // Check if action is disabled - action_, found := k.Keeper.GetActionOfSchema(ctx, msg.NftSchemaCode, msg.Action) - if found { - action := schema.OnchainData.Actions[action_.Index] - if action.Disable { - return nil, sdkerrors.Wrap(types.ErrActionIsDisabled, msg.Action) - } - mapAction = *action - } else { - return nil, sdkerrors.Wrap(types.ErrActionDoesNotExists, msg.Action) - } - - // for _, action := range schema.OnchainData.Actions { - // if action.Name == msg.Action && action.Disable { - // return nil, sdkerrors.Wrap(types.ErrActionIsDisabled, action.Name) - // } - // if action.Name == msg.Action { - // mapAction = *action - // break - // } - // } - - // // Check if action exists - // if mapAction.Name == "" { - // return nil, sdkerrors.Wrap(types.ErrActionDoesNotExists, msg.Action) - // } - - // Check if AllowedAction is for system // if yes whick means only oracle request can perform this action - if mapAction.GetAllowedActioner() == types.AllowedActioner_ALLOWED_ACTIONER_USER_ONLY { - return nil, sdkerrors.Wrap(types.ErrActionIsForUserOnly, msg.Action) - } - - // Check if action requires parameters - param := mapAction.GetParams() - required_param := make([]*types.ActionParams, 0) - - for _, p := range param { - if p.Required { - required_param = append(required_param, p) - } - } - - if len(required_param) > len(msg.Parameters) { - return nil, sdkerrors.Wrap(types.ErrInvalidParameter, "Input parameters length is not equal to required parameters length") - } - - for i := 0; i < len(required_param); i++ { - if msg.Parameters[i].Name != required_param[i].Name { - return nil, sdkerrors.Wrap(types.ErrInvalidParameter, "input paramter name is not match to "+required_param[i].Name) - } - if msg.Parameters[i].Value == "" { - msg.Parameters[i].Value = required_param[i].DefaultValue - } - } - - // ** TOKEN DATA LAYER ** - // Create map of existing attribute in nftdata - mapExistingAttributes := make(map[string]bool) - for _, attribute := range tokenData.OnchainAttributes { - mapExistingAttributes[attribute.Name] = true - } - - // Loop over schema.TokenAttributes to check if exists in nftdata - for _, attribute := range schema.OnchainData.TokenAttributes { - if _, ok := mapExistingAttributes[attribute.Name]; !ok { - if attribute.DefaultMintValue == nil { - return nil, sdkerrors.Wrap(types.ErrNoDefaultValue, attribute.Name) - } - // Add attribute to nftdata with default value - tokenData.OnchainAttributes = append(tokenData.OnchainAttributes, - NewNFTAttributeValueFromDefaultValue(attribute.Name, attribute.DefaultMintValue)) - } - } - - var list_schema_attributes_ []*types.SchemaAttribute - var map_converted_schema_attributes []*types.NftAttributeValue - - //TODO:: THIS SHOULD BE THE PROBLEM GAS CONSUMPTION TOO HIGH >> from 0.2 to 0.3 - // get schema attributes and convert to NFtAttributeValue - global_attributes := schema.OnchainData.NftAttributes - - attributeMap := make(map[string]bool) - - for _, schema_attribute := range global_attributes { - // Check if the attribute has already been added - if attributeMap[schema_attribute.Name] { - continue - } - - nftAttributeValue, found := k.GetSchemaAttribute(ctx, schema.Code, schema_attribute.Name) - - if !found { - return nil, sdkerrors.Wrap(types.ErrNoDefaultValue, schema_attribute.Name+" NOT FOUND") - } - - // Add the attribute to the list of schema attributes - list_schema_attributes_ = append(list_schema_attributes_, &nftAttributeValue) - - // Add the attribute to the map - attributeMap[schema_attribute.Name] = true - - nftAttributeValue_ := ConverSchemaAttributeToNFTAttributeValue(&nftAttributeValue) - map_converted_schema_attributes = append(map_converted_schema_attributes, nftAttributeValue_) - } - - - // ** META path ../types/meta.go ** - meta := types.NewMetadata(&schema, &tokenData, schema.OriginData.AttributeOverriding, map_converted_schema_attributes) - meta.SetGetNFTFunction(func(tokenId string) (*types.NftData, error) { - tokenData, found := k.Keeper.GetNftData(ctx, msg.NftSchemaCode, tokenId) - if !found { - return nil, sdkerrors.Wrap(types.ErrMetadataDoesNotExists, msg.NftSchemaCode) - } - return &tokenData, nil - }) - - // utils function - meta.SetGetBlockTimeFunction(func() time.Time { - return ctx.BlockTime() - }) - // utils function - meta.SetGetBlockHeightFunction(func() int64 { - return ctx.BlockHeight() - }) - - err := ProcessAction(meta, &mapAction, msg.Parameters) + _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return nil, err } - // Check if ChangeList is empty, error if empty - if len(meta.ChangeList) == 0 { - return nil, sdkerrors.Wrap(types.ErrEmptyChangeList, msg.Action) - } - // Update back to nftdata - k.Keeper.SetNftData(ctx, tokenData) - - // Udpate to target - // loop over meta.OtherUpdatedTokenDatas - for _, otherTokenData := range meta.OtherUpdatedTokenDatas { - k.Keeper.SetNftData(ctx, *otherTokenData) - } - - for _, change := range meta.ChangeList { - val, found := k.Keeper.GetSchemaAttribute(ctx, msg.NftSchemaCode, change.Key) - if found { - switch val.DataType { - case "string": - val.CurrentValue.Value = &types.SchemaAttributeValue_StringAttributeValue{ - StringAttributeValue: &types.StringAttributeValue{ - Value: change.NewValue, - }, - } - case "boolean": - boolValue, err := strconv.ParseBool(change.NewValue) - if err != nil { - return nil, err - } - val.CurrentValue.Value = &types.SchemaAttributeValue_BooleanAttributeValue{ - BooleanAttributeValue: &types.BooleanAttributeValue{ - Value: boolValue, - }, - } - case "number": - uintValue, err := strconv.ParseUint(change.NewValue, 10, 64) - if err != nil { - return nil, err - } - val.CurrentValue.Value = &types.SchemaAttributeValue_NumberAttributeValue{ - NumberAttributeValue: &types.NumberAttributeValue{ - Value: uintValue, - }, - } - case "float": - floatValue, err := strconv.ParseFloat(change.NewValue, 64) - if err != nil { - return nil, err - } - val.CurrentValue.Value = &types.SchemaAttributeValue_FloatAttributeValue{ - FloatAttributeValue: &types.FloatAttributeValue{ - Value: floatValue, - }, - } - default: - return nil, sdkerrors.Wrap(types.ErrParsingAttributeValue, val.DataType) - } - - k.SetSchemaAttribute(ctx, val) - } + // Emit events on metadata change + changeList, err := k.ActionByAdmin(ctx, msg.Creator, msg.NftSchemaCode, msg.TokenId, msg.Action, msg.RefId, msg.Parameters) + if err != nil { + return nil, err } - // Check action with reference exists - if msg.RefId != "" { - - _, found := k.Keeper.GetActionByRefId(ctx, msg.RefId) - if found { - return nil, sdkerrors.Wrap(types.ErrRefIdAlreadyExists, msg.RefId) - } - - k.Keeper.SetActionByRefId(ctx, types.ActionByRefId{ - RefId: msg.RefId, - Creator: msg.Creator, - NftSchemaCode: msg.NftSchemaCode, - TokenId: msg.TokenId, - Action: mapAction.Name, - }) - } - // Emit events on metadata change - changeList, _ := json.Marshal(meta.ChangeList) ctx.EventManager().EmitEvent( sdk.NewEvent( sdk.EventTypeMessage, sdk.NewAttribute(types.EventMessage, types.EventTypeRunAction), - sdk.NewAttribute(types.AttributeKeyRunActionResult, "success"), - // Emit change list attributes sdk.NewAttribute(types.AttributeKeyRunActionChangeList, string(changeList)), ), ) diff --git a/x/nftmngr/keeper/msg_server_perform_multi_token_action.go b/x/nftmngr/keeper/msg_server_perform_multi_token_action.go index 214ee455..7a1fb716 100644 --- a/x/nftmngr/keeper/msg_server_perform_multi_token_action.go +++ b/x/nftmngr/keeper/msg_server_perform_multi_token_action.go @@ -61,7 +61,7 @@ func (k msgServer) PerformMultiTokenAction(goCtx context.Context, msg *types.Msg // if not owner, check if executor is authorized to perform action if !isOwner { - _, isFound := k.GetActionExecutor( + _, isFound := k.Keeper.GetActionExecutor( ctx, msg.NftSchemaCode, msg.Creator, @@ -197,7 +197,7 @@ func (k msgServer) PerformMultiTokenOneAction(goCtx context.Context, msg *types. // if not owner, check if executor is authorized to perform action if !isOwner { - _, isFound := k.GetActionExecutor( + _, isFound := k.Keeper.GetActionExecutor( ctx, msg.NftSchemaCode, msg.Creator, @@ -294,7 +294,7 @@ func (k msgServer) PerformMultiTokenOneAction(goCtx context.Context, msg *types. var map_converted_schema_attributes []*types.NftAttributeValue // get schema attributes and convert to NFtAttributeValue - all_schema_attributes := k.GetAllSchemaAttribute(ctx) + all_schema_attributes := k.Keeper.GetAllSchemaAttribute(ctx) attributeMap := make(map[string]bool) for _, schema_attribute := range all_schema_attributes { @@ -396,7 +396,7 @@ func (k msgServer) PerformMultiTokenOneAction(goCtx context.Context, msg *types. return nil, sdkerrors.Wrap(types.ErrParsingAttributeValue, val.DataType) } - k.SetSchemaAttribute(ctx, val) + k.Keeper.SetSchemaAttribute(ctx, val) } } @@ -474,7 +474,7 @@ func (k msgServer) PerformMultiTokenMultiAction(goCtx context.Context, msg *type // if not owner, check if executor is authorized to perform action if !isOwner { - _, isFound := k.GetActionExecutor( + _, isFound := k.Keeper.GetActionExecutor( ctx, msg.NftSchemaCode, msg.Creator, @@ -589,7 +589,7 @@ func (k msgServer) PerformMultiTokenMultiAction(goCtx context.Context, msg *type var map_converted_schema_attributes []*types.NftAttributeValue // get schema attributes and convert to NFtAttributeValue - all_schema_attributes := k.GetAllSchemaAttribute(ctx) + all_schema_attributes := k.Keeper.GetAllSchemaAttribute(ctx) attributeMap := make(map[string]bool) for _, schema_attribute := range all_schema_attributes { @@ -691,7 +691,7 @@ func (k msgServer) PerformMultiTokenMultiAction(goCtx context.Context, msg *type return nil, sdkerrors.Wrap(types.ErrParsingAttributeValue, val.DataType) } - k.SetSchemaAttribute(ctx, val) + k.Keeper.SetSchemaAttribute(ctx, val) } } @@ -767,7 +767,7 @@ func (k msgServer) PerformOneTokenMultiAction(goCtx context.Context, msg *types. // if not owner, check if executor is authorized to perform action if !isOwner { - _, isFound := k.GetActionExecutor( + _, isFound := k.Keeper.GetActionExecutor( ctx, msg.NftSchemaCode, msg.Creator, @@ -879,7 +879,7 @@ func (k msgServer) PerformOneTokenMultiAction(goCtx context.Context, msg *types. var map_converted_schema_attributes []*types.NftAttributeValue // get schema attributes and convert to NFtAttributeValue - all_schema_attributes := k.GetAllSchemaAttribute(ctx) + all_schema_attributes := k.Keeper.GetAllSchemaAttribute(ctx) attributeMap := make(map[string]bool) for _, schema_attribute := range all_schema_attributes { @@ -981,7 +981,7 @@ func (k msgServer) PerformOneTokenMultiAction(goCtx context.Context, msg *types. return nil, sdkerrors.Wrap(types.ErrParsingAttributeValue, val.DataType) } - k.SetSchemaAttribute(ctx, val) + k.Keeper.SetSchemaAttribute(ctx, val) } } diff --git a/x/nftmngr/keeper/msg_server_resync_attributes.go b/x/nftmngr/keeper/msg_server_resync_attributes.go index 31d38e23..b5062dd0 100644 --- a/x/nftmngr/keeper/msg_server_resync_attributes.go +++ b/x/nftmngr/keeper/msg_server_resync_attributes.go @@ -11,38 +11,14 @@ import ( func (k msgServer) ResyncAttributes(goCtx context.Context, msg *types.MsgResyncAttributes) (*types.MsgResyncAttributesResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // Retreive schema - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - // Check if creator is owner of schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - // Retrieve NFT Data - nftData, found := k.Keeper.GetNftData(ctx, msg.NftSchemaCode, msg.TokenId) - if !found { - return nil, sdkerrors.Wrap(types.ErrNftDataDoesNotExists, msg.TokenId) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - // Create map of existing attribute in nftdata - mapExistingAttributes := make(map[string]bool) - for _, attribute := range nftData.OnchainAttributes { - mapExistingAttributes[attribute.Name] = true - } - - // Loop over schema.TokenAttributes to check if exists in nftdata - for _, attribute := range schema.OnchainData.TokenAttributes { - if _, ok := mapExistingAttributes[attribute.Name]; !ok { - if attribute.DefaultMintValue == nil { - return nil, sdkerrors.Wrap(types.ErrNoDefaultValue, attribute.Name) - } - // Add attribute to nftdata with default value - nftData.OnchainAttributes = append(nftData.OnchainAttributes, - NewNFTAttributeValueFromDefaultValue(attribute.Name, attribute.DefaultMintValue)) - } + err = k.ResyncAttibutesKeeper(ctx, msg.Creator, msg.NftSchemaCode, msg.TokenId) + if err != nil { + return nil, err } // Emit Event @@ -53,9 +29,8 @@ func (k msgServer) ResyncAttributes(goCtx context.Context, msg *types.MsgResyncA sdk.NewAttribute(types.AttributeKeyTokenId, msg.TokenId), ), ) - - // Set nftdata - k.Keeper.SetNftData(ctx, nftData) - - return &types.MsgResyncAttributesResponse{}, nil + return &types.MsgResyncAttributesResponse{ + NftSchemaCode: msg.NftSchemaCode, + TokenId: msg.TokenId, + }, nil } diff --git a/x/nftmngr/keeper/msg_server_schema_attribute.go b/x/nftmngr/keeper/msg_server_schema_attribute.go index 7a4758b6..804e23c3 100644 --- a/x/nftmngr/keeper/msg_server_schema_attribute.go +++ b/x/nftmngr/keeper/msg_server_schema_attribute.go @@ -13,57 +13,27 @@ import ( func (k msgServer) UpdateSchemaAttribute(goCtx context.Context, msg *types.MsgUpdateSchemaAttribute) (*types.MsgUpdateSchemaAttributeResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) + } + var update_attribute types.AttributeDefinition input_addribute, err := base64.StdEncoding.DecodeString(msg.Base64UpdateAttriuteDefenition) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } + err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(input_addribute, &update_attribute) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) } - // Check if the value exists - valFound, isFound := k.GetSchemaAttribute( - ctx, - msg.NftSchemaCode, - update_attribute.Name, - ) - if !isFound { - return nil, sdkerrors.Wrap(sdkerrors.ErrKeyNotFound, "Attribute not exists in schema") - } - - //get existing nft schema - schema, schemaFound := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !schemaFound { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - err = ValidateAttributeNames([]*types.AttributeDefinition{&update_attribute}) + err = k.UpdateAttributeKeeper(ctx, msg.Creator, msg.NftSchemaCode, update_attribute) if err != nil { - return nil, sdkerrors.Wrap(types.ErrValidatingMetadata, err.Error()) - } - - // parse DefaultMintValue to SchemaAttributeValue - schmaAttributeValue, err := ConvertDefaultMintValueToSchemaAttributeValue(update_attribute.DefaultMintValue) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) + return nil, err } - var schemaAttribute = types.SchemaAttribute{ - Creator: msg.Creator, - NftSchemaCode: valFound.NftSchemaCode, - Name: valFound.Name, - DataType: update_attribute.DataType, - CurrentValue: schmaAttributeValue, - } - - k.SetSchemaAttribute(ctx, schemaAttribute) - // emit events ctx.EventManager().EmitEvent( sdk.NewEvent( @@ -76,7 +46,5 @@ func (k msgServer) UpdateSchemaAttribute(goCtx context.Context, msg *types.MsgUp return &types.MsgUpdateSchemaAttributeResponse{ NftSchemaCode: msg.NftSchemaCode, Name: update_attribute.Name, - NewAttribute: &schemaAttribute, }, nil } - diff --git a/x/nftmngr/keeper/msg_server_set_attribute_overiding.go b/x/nftmngr/keeper/msg_server_set_attribute_overiding.go index 78bec272..3b27d6ea 100644 --- a/x/nftmngr/keeper/msg_server_set_attribute_overiding.go +++ b/x/nftmngr/keeper/msg_server_set_attribute_overiding.go @@ -2,7 +2,6 @@ package keeper import ( "context" - "strconv" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -12,25 +11,14 @@ import ( func (k msgServer) SetAttributeOveriding(goCtx context.Context, msg *types.MsgSetAttributeOveriding) (*types.MsgSetAttributeOveridingResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.SchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.SchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - // int32 to string - NewOveridingType := strconv.Itoa(int(msg.NewOveridingType)) - - switch msg.NewOveridingType { - case 0: - schema.OriginData.AttributeOverriding = types.AttributeOverriding_ORIGIN - case 1: - schema.OriginData.AttributeOverriding = types.AttributeOverriding_ORIGIN - default: - return nil, sdkerrors.Wrap(types.ErrAttributeOptionDoesNotExists, NewOveridingType) + err = k.Keeper.SetAttributeOveridingKeeper(ctx, msg.Creator, msg.SchemaCode, msg.NewOveridingType) + if err != nil { + return nil, err } // emit events @@ -38,12 +26,9 @@ func (k msgServer) SetAttributeOveriding(goCtx context.Context, msg *types.MsgSe sdk.NewEvent( types.EventTypeSetAttributeOveriding, sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.SchemaCode), - sdk.NewAttribute(types.AttributeKeySetAttributeOverride, schema.OriginData.AttributeOverriding.String()), sdk.NewAttribute(types.AttributeKeySetAttributeOverrideResult, "success"), ), }) - k.Keeper.SetNFTSchema(ctx, schema) - return &types.MsgSetAttributeOveridingResponse{}, nil } diff --git a/x/nftmngr/keeper/msg_server_set_base_uri.go b/x/nftmngr/keeper/msg_server_set_base_uri.go index a98187d0..a1c32935 100644 --- a/x/nftmngr/keeper/msg_server_set_base_uri.go +++ b/x/nftmngr/keeper/msg_server_set_base_uri.go @@ -11,18 +11,12 @@ import ( func (k msgServer) SetBaseUri(goCtx context.Context, msg *types.MsgSetBaseUri) (*types.MsgSetBaseUriResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.Code) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.Code) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - schema.OriginData.OriginBaseUri = msg.NewBaseUri - - k.Keeper.SetNFTSchema(ctx, schema) + k.SetBaseURIKeeper(ctx, msg.Creator, msg.Code, msg.NewBaseUri) // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -30,7 +24,6 @@ func (k msgServer) SetBaseUri(goCtx context.Context, msg *types.MsgSetBaseUri) ( types.EventTypeSetBaseURI, sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.Code), sdk.NewAttribute(types.AttributeKeySetBaseURI, msg.NewBaseUri), - sdk.NewAttribute(types.AttributeKeySetBaseURIResult, "success"), ), }) diff --git a/x/nftmngr/keeper/msg_server_set_fee_config.go b/x/nftmngr/keeper/msg_server_set_fee_config.go index e529d523..3d359b89 100644 --- a/x/nftmngr/keeper/msg_server_set_fee_config.go +++ b/x/nftmngr/keeper/msg_server_set_fee_config.go @@ -37,7 +37,7 @@ func (k msgServer) SetFeeConfig(goCtx context.Context, msg *types.MsgSetFeeConfi return nil, sdkerrors.Wrap(types.ErrParsingSchemaMessage, err.Error()) } - err = k.ValidateFeeConfig(&feeConfig) + err = k.Keeper.ValidateFeeConfig(&feeConfig) if err != nil { return nil, err } @@ -56,28 +56,3 @@ func (k msgServer) SetFeeConfig(goCtx context.Context, msg *types.MsgSetFeeConfi } return &types.MsgSetFeeConfigResponse{}, nil } - -func (k Keeper) ValidateFeeConfig(feeConfig *types.NFTFeeConfig) error { - // Validate Amount - feeAmount, err := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) - if err != nil { - return sdkerrors.Wrap(types.ErrInvalidFeeAmount, err.Error()) - } - // check if feeAmount.Amount > 0 - if feeAmount.Amount.LTE(sdk.NewInt(0)) { - return sdkerrors.Wrap(types.ErrInvalidFeeAmount, "Fee amount must be greater than 0") - } - // loop over feeConfig.SchemaFee.FeeDistributions - totalPortion := float32(0) - for _, feeDistribution := range feeConfig.SchemaFee.FeeDistributions { - // validate portion - if feeDistribution.Portion <= 0 || feeDistribution.Portion > 1 { - return sdkerrors.Wrap(types.ErrInvalidFeePortion, "Fee portion must be between 0 and 1") - } - totalPortion += feeDistribution.Portion - } - if totalPortion != 1 { - return sdkerrors.Wrap(types.ErrInvalidFeePortion, "Total fee portion must be equal to 1") - } - return nil -} diff --git a/x/nftmngr/keeper/msg_server_set_metadata_format.go b/x/nftmngr/keeper/msg_server_set_metadata_format.go index b1146217..d49787bd 100644 --- a/x/nftmngr/keeper/msg_server_set_metadata_format.go +++ b/x/nftmngr/keeper/msg_server_set_metadata_format.go @@ -11,16 +11,12 @@ import ( func (k msgServer) SetMetadataFormat(goCtx context.Context, msg *types.MsgSetMetadataFormat) (*types.MsgSetMetadataFormatResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.SchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.SchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - schema.OriginData.MetadataFormat = msg.NewFormat + k.SetMetadataFormatKeeper(ctx, msg.Creator, msg.SchemaCode, msg.NewFormat) // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -28,12 +24,9 @@ func (k msgServer) SetMetadataFormat(goCtx context.Context, msg *types.MsgSetMet types.EventTypeSetMetadataFormat, sdk.NewAttribute(types.EventTypeSetMetadataFormat, msg.SchemaCode), sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.NewFormat), - sdk.NewAttribute(types.AttributeKeySetRetrivalResult, "success"), ), }) - k.Keeper.SetNFTSchema(ctx, schema) - return &types.MsgSetMetadataFormatResponse{ SchemaCode: msg.SchemaCode, NewFormat: msg.NewFormat, diff --git a/x/nftmngr/keeper/msg_server_set_mintauth.go b/x/nftmngr/keeper/msg_server_set_mintauth.go index 1967f680..b852a3a9 100644 --- a/x/nftmngr/keeper/msg_server_set_mintauth.go +++ b/x/nftmngr/keeper/msg_server_set_mintauth.go @@ -11,26 +11,23 @@ import ( func (k msgServer) SetMintauth(goCtx context.Context, msg *types.MsgSetMintauth) (*types.MsgSetMintauthResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) + } + // Get nft schema from store - schema, schemaFound := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) + schema, schemaFound := k.GetNFTSchema(ctx, msg.NftSchemaCode) // Check if the schema already exists if !schemaFound { return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) } - // Swith location of attribute - switch msg.AuthorizeTo { - case types.AuthorizeTo_SYSTEM: - // append new nft_attributes to array of OnchainData.NftAttributes - schema.MintAuthorization = types.KeyMintPermissionOnlySystem - case types.AuthorizeTo_ALL: - // append new token_attributes to array of OnchainData.TokenAttributes - schema.MintAuthorization = types.KeyMintPermissionAll - // end the case + err = k.SetMintAuthKeeper(ctx, msg.Creator, msg.NftSchemaCode, msg.AuthorizeTo) + if err != nil { + return nil, err } - k.Keeper.SetNFTSchema(ctx, schema) - // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( @@ -41,5 +38,7 @@ func (k msgServer) SetMintauth(goCtx context.Context, msg *types.MsgSetMintauth) ), }) - return &types.MsgSetMintauthResponse{}, nil + return &types.MsgSetMintauthResponse{ + NftSchemaCode: msg.NftSchemaCode, + }, nil } diff --git a/x/nftmngr/keeper/msg_server_set_origin_chain.go b/x/nftmngr/keeper/msg_server_set_origin_chain.go index ff629d79..ac4ae653 100644 --- a/x/nftmngr/keeper/msg_server_set_origin_chain.go +++ b/x/nftmngr/keeper/msg_server_set_origin_chain.go @@ -2,7 +2,6 @@ package keeper import ( "context" - "strings" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -12,19 +11,16 @@ import ( func (k msgServer) SetOriginChain(goCtx context.Context, msg *types.MsgSetOriginChain) (*types.MsgSetOriginChainResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.SchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.SchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) + err = k.SetOriginChainKeeper(ctx, msg.Creator, msg.SchemaCode, msg.NewOriginChain) + if err != nil { + return nil, err } - // to uppercase - chainUpperCase := strings.ToUpper(msg.NewOriginChain) - schema.OriginData.OriginChain = chainUpperCase - // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( @@ -35,8 +31,6 @@ func (k msgServer) SetOriginChain(goCtx context.Context, msg *types.MsgSetOrigin ), }) - k.Keeper.SetNFTSchema(ctx, schema) - return &types.MsgSetOriginChainResponse{ SchemaCode: msg.SchemaCode, NewOriginChain: msg.NewOriginChain, diff --git a/x/nftmngr/keeper/msg_server_set_origin_contract.go b/x/nftmngr/keeper/msg_server_set_origin_contract.go index 4a87864f..4e463046 100644 --- a/x/nftmngr/keeper/msg_server_set_origin_contract.go +++ b/x/nftmngr/keeper/msg_server_set_origin_contract.go @@ -11,17 +11,16 @@ import ( func (k msgServer) SetOriginContract(goCtx context.Context, msg *types.MsgSetOriginContract) (*types.MsgSetOriginContractResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.SchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.SchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) + err = k.SetOriginContractKeeper(ctx, msg.Creator, msg.SchemaCode, msg.NewContractAddress) + if err != nil { + return nil, err } - schema.OriginData.OriginContractAddress = msg.NewContractAddress - // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( @@ -32,7 +31,6 @@ func (k msgServer) SetOriginContract(goCtx context.Context, msg *types.MsgSetOri ), }) - k.Keeper.SetNFTSchema(ctx, schema) return &types.MsgSetOriginContractResponse{ SchemaCode: msg.SchemaCode, NewContractAddress: msg.NewContractAddress, diff --git a/x/nftmngr/keeper/msg_server_set_uri_retrieval_method.go b/x/nftmngr/keeper/msg_server_set_uri_retrieval_method.go index 9f81b9a8..d53d70d3 100644 --- a/x/nftmngr/keeper/msg_server_set_uri_retrieval_method.go +++ b/x/nftmngr/keeper/msg_server_set_uri_retrieval_method.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "strconv" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -10,36 +11,25 @@ import ( func (k msgServer) SetUriRetrievalMethod(goCtx context.Context, msg *types.MsgSetUriRetrievalMethod) (*types.MsgSetUriRetrievalMethodResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - - schema, found := k.Keeper.GetNFTSchema(ctx, msg.SchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.SchemaCode) - } - - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - if msg.NewMethod == 0 { - schema.OriginData.UriRetrievalMethod = types.URIRetrievalMethod_BASE - } else if msg.NewMethod == 1 { - schema.OriginData.UriRetrievalMethod = types.URIRetrievalMethod_TOKEN + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } + k.Keeper.SetURIRetrievalKeeper(ctx, msg.Creator, msg.SchemaCode, msg.NewMethod) + strMethod := strconv.FormatInt(int64(msg.NewMethod), 10) // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( types.EventTypeSetBaseURI, sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.SchemaCode), - sdk.NewAttribute(types.AttributeKeySetRetrievalMethod, schema.OriginData.UriRetrievalMethod.String()), + sdk.NewAttribute(types.AttributeKeySetRetrievalMethod, strMethod), sdk.NewAttribute(types.AttributeKeySetRetrivalResult, "success"), ), }) - k.Keeper.SetNFTSchema(ctx, schema) - return &types.MsgSetUriRetrievalMethodResponse{ SchemaCode: msg.SchemaCode, - NewMethod: schema.OriginData.UriRetrievalMethod.String(), + NewMethod: strMethod, }, nil } diff --git a/x/nftmngr/keeper/msg_server_show_attributes.go b/x/nftmngr/keeper/msg_server_show_attributes.go index fb22c71e..af502354 100644 --- a/x/nftmngr/keeper/msg_server_show_attributes.go +++ b/x/nftmngr/keeper/msg_server_show_attributes.go @@ -8,59 +8,17 @@ import ( "github.com/thesixnetwork/sixnft/x/nftmngr/types" ) -type ReadAttribute struct { - AttributeName string - AttributeDefinition *types.AttributeDefinition - AttributeLocation types.AttributeLocation - AttrributeIndex int -} - func (k msgServer) ShowAttributes(goCtx context.Context, msg *types.MsgShowAttributes) (*types.MsgShowAttributesResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - // Retreive schema - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - // Check if creator is the owner of the schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - - // Create map of nftattributes and tokenattributes ni ReadAttribute struct - mapReadAttribute := make(map[string]ReadAttribute) - for i, nftAttribute := range schema.OnchainData.NftAttributes { - mapReadAttribute[nftAttribute.Name] = ReadAttribute{ - AttributeName: nftAttribute.Name, - AttributeDefinition: nftAttribute, - AttributeLocation: types.AttributeLocation_NFT_ATTRIBUTE, - AttrributeIndex: i, - } - } - - for i, tokenAttribute := range schema.OnchainData.TokenAttributes { - mapReadAttribute[tokenAttribute.Name] = ReadAttribute{ - AttributeName: tokenAttribute.Name, - AttributeDefinition: tokenAttribute, - AttributeLocation: types.AttributeLocation_TOKEN_ATTRIBUTE, - AttrributeIndex: i, - } - } - - // loop over msg.AttributeNames - for _, attributeName := range msg.AttributeNames { - // check if attribute is exist in mapReadAttribute - if _, ok := mapReadAttribute[attributeName]; !ok { - return nil, sdkerrors.Wrap(types.ErrAttributeDoesNotExists, attributeName) - } - readAttributeDef := mapReadAttribute[attributeName] - if readAttributeDef.AttributeLocation == types.AttributeLocation_NFT_ATTRIBUTE { - schema.OnchainData.NftAttributes[readAttributeDef.AttrributeIndex].HiddenToMarketplace = !msg.Show - } else { - schema.OnchainData.TokenAttributes[readAttributeDef.AttrributeIndex].HiddenToMarketplace = !msg.Show - } + err = k.ShowAttributeKeeper(ctx, msg.Creator, msg.NftSchemaCode, msg.Show, msg.AttributeNames) + if err != nil { + return nil, err } // emit events @@ -68,13 +26,10 @@ func (k msgServer) ShowAttributes(goCtx context.Context, msg *types.MsgShowAttri sdk.NewEvent( types.EventTypeShowAttribute, sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.NftSchemaCode), - sdk.NewAttribute(types.AttributeKeyShowAttributeResult, "success"), ), ) - k.Keeper.SetNFTSchema(ctx, schema) - return &types.MsgShowAttributesResponse{ - NftSchema: schema.Code, + NftSchema: msg.NftSchemaCode, }, nil } diff --git a/x/nftmngr/keeper/msg_server_toggle_action.go b/x/nftmngr/keeper/msg_server_toggle_action.go index 9dead814..0d010f02 100644 --- a/x/nftmngr/keeper/msg_server_toggle_action.go +++ b/x/nftmngr/keeper/msg_server_toggle_action.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "strconv" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -11,31 +12,15 @@ import ( func (k msgServer) ToggleAction(goCtx context.Context, msg *types.MsgToggleAction) (*types.MsgToggleActionResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) - schema, found := k.Keeper.GetNFTSchema(ctx, msg.Code) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.Code) - } - // Check if creator is owner of schema - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, msg.Creator) - } - mapAction := types.Action{} - for _, action := range schema.OnchainData.Actions { - if action.Name == msg.Action { - mapAction = *action - break - } - } - // Update is_active in schema - for i, action := range schema.OnchainData.Actions { - if action.Name == msg.Action && action.Disable != msg.Disable { - schema.OnchainData.Actions[i].Disable = msg.Disable - } else if action.Name == msg.Action && action.Disable == msg.Disable { - return nil, sdkerrors.Wrap(types.ErrActionAlreadySetAsInput, msg.Action) - } + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) } - k.Keeper.SetNFTSchema(ctx, schema) + err = k.ToggleActionKeeper(ctx, msg.Creator, msg.Code, msg.Action, msg.Status) + if err != nil { + return nil, err + } // emit events ctx.EventManager().EmitEvents(sdk.Events{ @@ -43,13 +28,13 @@ func (k msgServer) ToggleAction(goCtx context.Context, msg *types.MsgToggleActio types.EventTypeToggleNFTAction, sdk.NewAttribute(types.AttributeKeyNftSchemaCode, msg.Code), sdk.NewAttribute(types.AttributeKeyToggleNFTAction, msg.Action), - sdk.NewAttribute(types.AttributeKeyToggleNFTActionResult, "success"), + sdk.NewAttribute(types.AttributeKeyToggleNFTActionResult, strconv.FormatBool(msg.Status)), ), }) return &types.MsgToggleActionResponse{ - Code: msg.Code, - Name: mapAction.Name, - OnchainDataAction: schema.OnchainData, + Code: msg.Code, + Name: msg.Action, + Status: msg.Status, }, nil } diff --git a/x/nftmngr/keeper/msg_server_update_action.go b/x/nftmngr/keeper/msg_server_update_action.go index 6c2c704a..b2353870 100644 --- a/x/nftmngr/keeper/msg_server_update_action.go +++ b/x/nftmngr/keeper/msg_server_update_action.go @@ -12,40 +12,27 @@ import ( func (k msgServer) UpdateAction(goCtx context.Context, msg *types.MsgUpdateAction) (*types.MsgUpdateActionResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Creator) + } _updateAction, err := base64.StdEncoding.DecodeString(msg.Base64UpdateAction) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingBase64, err.Error()) } + updateAction := types.Action{} err = k.cdc.(*codec.ProtoCodec).UnmarshalJSON(_updateAction, &updateAction) if err != nil { return nil, sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) } - // get existing action - actionOfSchema, found := k.Keeper.GetActionOfSchema(ctx, msg.NftSchemaCode, updateAction.Name) - if !found { - return nil, sdkerrors.Wrap(types.ErrActionDoesNotExists, updateAction.Name) - } - - //get existing nft schema - schema, found := k.Keeper.GetNFTSchema(ctx, msg.NftSchemaCode) - if !found { - return nil, sdkerrors.Wrap(types.ErrSchemaDoesNotExists, msg.NftSchemaCode) - } - - // updator is valid - if msg.Creator != schema.Owner { - return nil, sdkerrors.Wrap(types.ErrUnauthorized, msg.Creator) + err = k.Keeper.UpdateActionKeeper(ctx, msg.Creator, msg.NftSchemaCode, updateAction) + if err != nil { + return nil, err } - // update action by its index - schema.OnchainData.Actions[actionOfSchema.Index] = &updateAction - - // update schema - k.Keeper.SetNFTSchema(ctx, schema) - // emit events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent( diff --git a/x/nftmngr/keeper/nft_schema.go b/x/nftmngr/keeper/nft_schema.go index 2369375f..6aabcb04 100644 --- a/x/nftmngr/keeper/nft_schema.go +++ b/x/nftmngr/keeper/nft_schema.go @@ -4,6 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/thesixnetwork/sixnft/x/nftmngr/types" + v2types "github.com/thesixnetwork/sixnft/x/nftmngr/migrations/v2/types" ) // SetNFTSchema set a specific nFTSchema in the store from its index @@ -16,11 +17,7 @@ func (k Keeper) SetNFTSchema(ctx sdk.Context, nFTSchema types.NFTSchema) { } // GetNFTSchema returns a nFTSchema from its index -func (k Keeper) GetNFTSchema( - ctx sdk.Context, - code string, - -) (val types.NFTSchema, found bool) { +func (k Keeper) GetNFTSchema(ctx sdk.Context, code string) (val types.NFTSchema, found bool) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) b := store.Get(types.NFTSchemaKey( @@ -35,11 +32,7 @@ func (k Keeper) GetNFTSchema( } // RemoveNFTSchema removes a nFTSchema from the store -func (k Keeper) RemoveNFTSchema( - ctx sdk.Context, - code string, - -) { +func (k Keeper) RemoveNFTSchema(ctx sdk.Context,code string) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) store.Delete(types.NFTSchemaKey( code, @@ -62,76 +55,18 @@ func (k Keeper) GetAllNFTSchema(ctx sdk.Context) (list []types.NFTSchema) { return } -// GetAllNFTSchema returns all nFTSchema -func (k Keeper) GetAllNFTSchemaV2(ctx sdk.Context) (list []types.NFTSchemaV2) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - var val types.NFTSchemaV2 - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) - } - - return -} - -// V1 of the NFT Schema - -// SetNFTSchema set a specific nFTSchema in the store from its index -func (k Keeper) SetNFTSchemaV1(ctx sdk.Context, nFTSchema types.NFTSchemaV1) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) - b := k.cdc.MustMarshal(&nFTSchema) - store.Set(types.NFTSchemaKey( - nFTSchema.Code, - ), b) -} - -// GetNFTSchema returns a nFTSchema from its index -func (k Keeper) GetNFTSchemaV1( - ctx sdk.Context, - code string, - -) (val types.NFTSchemaV1, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) - - b := store.Get(types.NFTSchemaKey( - code, - )) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveNFTSchema removes a nFTSchema from the store -func (k Keeper) RemoveNFTSchemaV1( - ctx sdk.Context, - code string, - -) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) - store.Delete(types.NFTSchemaKey( - code, - )) -} - -// GetAllNFTSchema returns all nFTSchema -func (k Keeper) GetAllNFTSchemaV1(ctx sdk.Context) (list []types.NFTSchemaV1) { +func (k Keeper) GetAllNFTSchemaLegacy(ctx sdk.Context) (list []v2types.NFTSchema) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.NFTSchemaKeyPrefix)) iterator := sdk.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.NFTSchemaV1 + var val v2types.NFTSchema k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } return -} +} \ No newline at end of file diff --git a/x/nftmngr/keeper/owner_keeper.go b/x/nftmngr/keeper/owner_keeper.go new file mode 100644 index 00000000..5bfb64a4 --- /dev/null +++ b/x/nftmngr/keeper/owner_keeper.go @@ -0,0 +1,50 @@ +package keeper + +import ( + "github.com/thesixnetwork/sixnft/x/nftmngr/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func (k Keeper) ChangeOrgOwner(ctx sdk.Context, creator, newOwner, orgName string) error { + + // get the organization + organization, found := k.GetOrganization(ctx, orgName) + if !found { + return sdkerrors.Wrap(types.ErrOrganizationNotFound, orgName) + } + + if organization.Owner != creator { + return sdkerrors.Wrap(types.ErrOrganizationOwner, creator) + } + + // change the owner + organization.Owner = newOwner + + // save the organization + k.SetOrganization(ctx, organization) + return nil +} + +func (k Keeper) ChangeSchemaOwner(ctx sdk.Context, creator, newOwner, nftSchemaName string) error { + + // Retreive schema data + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, creator) + } + + // Check if the creator is the same as the current owner + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // Change the owner + schema.Owner = newOwner + + // Save the schema + k.SetNFTSchema(ctx, schema) + + return nil +} diff --git a/x/nftmngr/keeper/schema_keeper.go b/x/nftmngr/keeper/schema_keeper.go new file mode 100644 index 00000000..1ce3082b --- /dev/null +++ b/x/nftmngr/keeper/schema_keeper.go @@ -0,0 +1,351 @@ +package keeper + +import ( + "strconv" + "strings" + + "github.com/thesixnetwork/sixnft/x/nftmngr/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +func (k Keeper) CreateNftSchemaKeeper(ctx sdk.Context, creator string, schemaInput types.NFTSchemaINPUT) error { + schemaInput.Owner = creator + + creatorAddress, err := sdk.AccAddressFromBech32(creator) + if err != nil { + return err + } + + // Validate Schema Message and return error if not valid + valid, err := ValidateNFTSchema(&schemaInput) + _ = valid + if err != nil { + return sdkerrors.Wrap(types.ErrValidatingNFTSchema, err.Error()) + } + + // if mint_authorization is empty then set system to default + if len(schemaInput.MintAuthorization) == 0 || schemaInput.MintAuthorization != types.KeyMintPermissionOnlySystem && schemaInput.MintAuthorization != types.KeyMintPermissionAll { + schemaInput.MintAuthorization = types.KeyMintPermissionOnlySystem + } + + // Check if the schemaInput already exists + _, found := k.GetNFTSchema(ctx, schemaInput.Code) + if found { + return sdkerrors.Wrap(types.ErrSchemaAlreadyExists, schemaInput.Code) + } + + foundOrganization, organizationName := GetOrganizationFromSchemaCode(schemaInput.Code) + + // NOTE: If there is organization in schemaInput code, check if the organization exists + // org name must unique + if foundOrganization { + storedOrganization, found := k.GetOrganization(ctx, organizationName) + if found { + // Check owner of organization + if storedOrganization.Owner != creator { + return sdkerrors.Wrap(types.ErrOrganizationOwner, creator) + } + } else { + // Store organization + k.SetOrganization(ctx, types.Organization{ + Owner: creator, + Name: organizationName, + }) + } + } + + MergeAllAttributesAndAlterOrderIndex(schemaInput.OriginData.OriginAttributes, schemaInput.OnchainData.NftAttributes, schemaInput.OnchainData.TokenAttributes) + + // parse schemaInput to NFTSchema + schema := types.NFTSchema{ + Code: schemaInput.Code, + Name: schemaInput.Name, + Owner: schemaInput.Owner, + Description: schemaInput.Description, + OriginData: schemaInput.OriginData, + OnchainData: &types.OnChainData{ + TokenAttributes: schemaInput.OnchainData.TokenAttributes, + NftAttributes: schemaInput.OnchainData.NftAttributes, + Actions: schemaInput.OnchainData.Actions, + Status: schemaInput.OnchainData.Status, + }, + IsVerified: schemaInput.IsVerified, + MintAuthorization: schemaInput.MintAuthorization, + } + + // loop over SchemaAttribute and add to nftmngr/code/name + for _, schemaDefaultMintAttribute := range schemaInput.OnchainData.NftAttributes { + // parse DefaultMintValue to SchemaAttributeValue + schmaAttributeValue, err := ConvertDefaultMintValueToSchemaAttributeValue(schemaDefaultMintAttribute.DefaultMintValue) + if err != nil { + return sdkerrors.Wrap(types.ErrParsingMetadataMessage, err.Error()) + } + + k.SetSchemaAttribute(ctx, types.SchemaAttribute{ + NftSchemaCode: schemaInput.Code, + Name: schemaDefaultMintAttribute.Name, + DataType: schemaDefaultMintAttribute.DataType, + CurrentValue: schmaAttributeValue, + Creator: creator, + }) + } + + // Add the schemaInput to the store + k.SetNFTSchema(ctx, schema) + + /* + + |------------------------------------| + | | + | **** ACTION **** | + | | + |------------------------------------| + + */ + + for i, action := range schemaInput.OnchainData.Actions { + // check if action already exists + _, isFound := k.GetActionOfSchema(ctx, schemaInput.Code, action.Name) + if isFound { + continue + } + k.SetActionOfSchema(ctx, types.ActionOfSchema{ + Name: action.Name, + NftSchemaCode: schemaInput.Code, + Index: uint64(i), + }) + } + + // set action executor + for _, actionExecutor := range schemaInput.SystemActioners { + + // validate address + _, err := sdk.AccAddressFromBech32(actionExecutor) + if err != nil { + return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, actionExecutor) + } + + // check if actionExecutor already exists + _, isFound := k.GetActionExecutor(ctx, schemaInput.Code, actionExecutor) + if isFound { + continue + } + + val, found := k.GetExecutorOfSchema(ctx, schemaInput.Code) + if !found { + val = types.ExecutorOfSchema{ + NftSchemaCode: schemaInput.Code, + ExecutorAddress: []string{}, + } + } + + // set executorOfSchema + val.ExecutorAddress = append(val.ExecutorAddress, actionExecutor) + + k.SetExecutorOfSchema(ctx, types.ExecutorOfSchema{ + NftSchemaCode: val.NftSchemaCode, + ExecutorAddress: val.ExecutorAddress, + }) + + // set actionExecutor + k.SetActionExecutor(ctx, types.ActionExecutor{ + Creator: creator, + NftSchemaCode: schemaInput.Code, + ExecutorAddress: actionExecutor, + }) + } + + /* + + |------------------------------------| + | | + | **** ENHANCEMENT **** | + | | + |------------------------------------| + + */ + + // Check if schemaInput by contract already exists + nftSchemaByContract, found := k.GetNFTSchemaByContract(ctx, schemaInput.OriginData.OriginContractAddress) + if !found { + nftSchemaByContract = types.NFTSchemaByContract{ + OriginContractAddress: schemaInput.OriginData.OriginContractAddress, + SchemaCodes: []string{schemaInput.Code}, + } + } else { + nftSchemaByContract.SchemaCodes = append(nftSchemaByContract.SchemaCodes, schemaInput.Code) + } + + // Add the schemaInput code to the list of schemaInput codes + k.SetNFTSchemaByContract(ctx, nftSchemaByContract) + + // **** SCHEMA FEE **** + feeConfig, found := k.GetNFTFeeConfig(ctx) + if found { + // Get Denom + amount, err := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) + if err != nil { + return sdkerrors.Wrap(types.ErrInvalidFeeAmount, err.Error()) + } + feeBalances, found := k.GetNFTFeeBalance(ctx) + if !found { + feeBalances = types.NFTFeeBalance{ + FeeBalances: []string{ + "0" + amount.Denom, + }, + } + } + + if len(feeBalances.FeeBalances) > 0 { + feeBalances.FeeBalances[types.FeeSubject_CREATE_NFT_SCHEMA] = "0" + amount.Denom + } + err = k.ProcessFee(ctx, &feeConfig, &feeBalances, types.FeeSubject_CREATE_NFT_SCHEMA, creatorAddress) + if err != nil { + return sdkerrors.Wrap(types.ErrProcessingFee, err.Error()) + } + // Set Fee Balance + k.SetNFTFeeBalance(ctx, feeBalances) + } + // **** END SCHEMA FEE **** + return nil +} + +// Total amount of fee collected from schema_input for each block then distribute to validators // ** In the begin block it will set to 0 again +func (k Keeper) ProcessFee(ctx sdk.Context, feeConfig *types.NFTFeeConfig, feeBalances *types.NFTFeeBalance, feeSubject types.FeeSubject, source sdk.AccAddress) error { + currentFeeBalance, _ := sdk.ParseCoinNormalized(feeBalances.FeeBalances[int32(feeSubject)]) + feeAmount, _ := sdk.ParseCoinNormalized(feeConfig.SchemaFee.FeeAmount) + // Plus fee amount to fee balance + currentFeeBalance = currentFeeBalance.Add(feeAmount) + feeBalances.FeeBalances[int32(feeSubject)] = strconv.FormatInt(currentFeeBalance.Amount.Int64(), 10) + feeAmount.Denom + + err := k.bankKeeper.SendCoinsFromAccountToModule( + ctx, source, types.ModuleName, sdk.NewCoins(feeAmount), + ) + if err != nil { + return err + } + + return nil +} + +func (k Keeper) SetBaseURIKeeper(ctx sdk.Context, creator, nftSchemaName, baseURI string) error { + + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + schema.OriginData.OriginBaseUri = baseURI + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) SetMetadataFormatKeeper(ctx sdk.Context, creator, nftSchemaName, format string) error { + + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + schema.OriginData.MetadataFormat = format + + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) SetMintAuthKeeper(ctx sdk.Context, creator, nftSchemaName string, authTo types.AuthorizeTo) error { + + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // Swith location of attribute + switch authTo { + case types.AuthorizeTo_SYSTEM: + // append new nft_attributes to array of OnchainData.NftAttributes + schema.MintAuthorization = types.KeyMintPermissionOnlySystem + case types.AuthorizeTo_ALL: + // append new token_attributes to array of OnchainData.TokenAttributes + schema.MintAuthorization = types.KeyMintPermissionAll + // end the case + } + + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) SetOriginChainKeeper(ctx sdk.Context, creator, nftSchemaName, originChain string) error { + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + // to uppercase + chainUpperCase := strings.ToUpper(originChain) + schema.OriginData.OriginChain = chainUpperCase + + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) SetOriginContractKeeper(ctx sdk.Context, creator, nftSchemaName, contract string) error { + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + schema.OriginData.OriginContractAddress = contract + k.SetNFTSchema(ctx, schema) + + return nil +} + +func (k Keeper) SetURIRetrievalKeeper(ctx sdk.Context, creator, nftSchemaName string, method int32) error { + schema, found := k.GetNFTSchema(ctx, nftSchemaName) + if !found { + return sdkerrors.Wrap(types.ErrSchemaDoesNotExists, nftSchemaName) + } + + if creator != schema.Owner { + return sdkerrors.Wrap(types.ErrCreatorDoesNotMatch, creator) + } + + switch method { + case 0: + schema.OriginData.UriRetrievalMethod = types.URIRetrievalMethod_BASE + case 1: + schema.OriginData.UriRetrievalMethod = types.URIRetrievalMethod_TOKEN + } + + k.SetNFTSchema(ctx, schema) + + return nil +} + diff --git a/x/nftmngr/keeper/utils.go b/x/nftmngr/keeper/utils.go new file mode 100644 index 00000000..7af993a6 --- /dev/null +++ b/x/nftmngr/keeper/utils.go @@ -0,0 +1,110 @@ +package keeper + +import ( + "bytes" + "encoding/json" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/thesixnetwork/sixnft/x/nftmngr/types" +) + +// validate Action data +func ValidateAction(action *types.Action, schema *types.NFTSchema) error { + // Onchain Data Nft Actions Map + mapNftActions := CreateActionMap(schema.OnchainData.Actions) + // check if action name is unique + if _, found := mapNftActions[action.Name]; found { + return sdkerrors.Wrap(types.ErrActionAlreadyExists, action.Name) + } + + // validate action struct + if action.Name == "" || action.Name == " " { + return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action name is empty") + } + if action.Desc == "" || action.Desc == " " { + return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action description is empty") + } + if action.When == "" || action.When == " " { + return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action type is empty") + } + // validate array of action.Then is not empty + if len(action.Then) == 0 { + return sdkerrors.Wrap(types.ErrInvalidActionAttribute, "action.Then is empty") + } + return nil +} + +func NewNFTAttributeValueFromDefaultValue(name string, defaultValue *types.DefaultMintValue) *types.NftAttributeValue { + nftAttributeValue := &types.NftAttributeValue{ + Name: name, + } + switch defaultValue.Value.(type) { + case *types.DefaultMintValue_NumberAttributeValue: + nftAttributeValue.Value = &types.NftAttributeValue_NumberAttributeValue{NumberAttributeValue: defaultValue.GetNumberAttributeValue()} + case *types.DefaultMintValue_StringAttributeValue: + nftAttributeValue.Value = &types.NftAttributeValue_StringAttributeValue{StringAttributeValue: defaultValue.GetStringAttributeValue()} + case *types.DefaultMintValue_BooleanAttributeValue: + nftAttributeValue.Value = &types.NftAttributeValue_BooleanAttributeValue{BooleanAttributeValue: defaultValue.GetBooleanAttributeValue()} + case *types.DefaultMintValue_FloatAttributeValue: + nftAttributeValue.Value = &types.NftAttributeValue_FloatAttributeValue{FloatAttributeValue: defaultValue.GetFloatAttributeValue()} + default: + return nil + } + return nftAttributeValue +} + +// validate AttributeDefinition data +func (k Keeper) ValidateAttributeDefinition(ctx sdk.Context, attribute *types.AttributeDefinition, schema *types.NFTSchema) error { + valFound, found := k.GetSchemaAttribute(ctx, schema.Code, attribute.Name) + if found { + return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, valFound.Name) + } + // Onchain Data Nft Attributes Map + mapOriginAttributes := CreateAttrDefMap(schema.OriginData.OriginAttributes) + mapTokenAttributes := CreateAttrDefMap(schema.OnchainData.TokenAttributes) + // check if attribute name is unique + if _, found := mapOriginAttributes[attribute.Name]; found { + return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, attribute.Name) + } + if _, found := mapTokenAttributes[attribute.Name]; found { + return sdkerrors.Wrap(types.ErrAttributeAlreadyExists, attribute.Name) + } + + return nil +} + +// merge all attributes and count the index +func MergeAndCountAllAttributes(originAttributes []*types.AttributeDefinition, onchainNFTAttributes []*types.AttributeDefinition, onchainTokenAttribute []*types.AttributeDefinition) int { + // length or originAttributes + length_originAttributes := len(originAttributes) + // length or onchainNFTAttributes + length_onchainNFTAttributes := len(onchainNFTAttributes) + // length or onchainTokenAttribute + length_onchainTokenAttribute := len(onchainTokenAttribute) + + // length of all attributes + length_allAttributes := length_originAttributes + length_onchainNFTAttributes + length_onchainTokenAttribute + return length_allAttributes +} + +func JSONMarshal(t interface{}) ([]byte, error) { + buffer := &bytes.Buffer{} + encoder := json.NewEncoder(buffer) + encoder.SetEscapeHTML(false) + err := encoder.Encode(t) + return buffer.Bytes(), err +} + +// stringfy tokenId list to string token_id1,token_id2,token_id3 +func StringfyTokenIdList(list []string) string { + var result string + for i, item := range list { + if i == 0 { + result = item + } else { + result = result + "," + item + } + } + return result +} diff --git a/x/nftmngr/keeper/validate.go b/x/nftmngr/keeper/validate.go index f3a8107a..0b4cfaaa 100644 --- a/x/nftmngr/keeper/validate.go +++ b/x/nftmngr/keeper/validate.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/thesixnetwork/sixnft/x/nftmngr/types" + types092 "github.com/thesixnetwork/sixnft/x/nftmngr/types/v092" ) // **** VALIDATION OF NFT METADATA **** @@ -235,31 +236,31 @@ func ConvertSchemaAttributeValueToDefaultMintValue(schemaAttributeValue *types.S } // function to convert SchemaAttribute to NftAttributeDefinition -func ConvertSchemaAttributeToNftAttributeDefinition(schemaAttributes *types.SchemaAttributeV1, index int) (*types.AttributeDefinition, error) { - attributeDef := &types.AttributeDefinition{} +func ConvertSchemaAttributeToNftAttributeDefinition(schemaAttributes *types092.SchemaAttribute, index int) (*types092.AttributeDefinition, error) { + attributeDef := &types092.AttributeDefinition{} switch value := schemaAttributes.CurrentValue.Value.(type) { - case *types.SchemaAttributeValue_NumberAttributeValue: - attributeDef.DefaultMintValue = &types.DefaultMintValue{ - Value: &types.DefaultMintValue_NumberAttributeValue{ + case *types092.SchemaAttributeValue_NumberAttributeValue: + attributeDef.DefaultMintValue = &types092.DefaultMintValue{ + Value: &types092.DefaultMintValue_NumberAttributeValue{ NumberAttributeValue: value.NumberAttributeValue, }, } - case *types.SchemaAttributeValue_StringAttributeValue: - attributeDef.DefaultMintValue = &types.DefaultMintValue{ - Value: &types.DefaultMintValue_StringAttributeValue{ + case *types092.SchemaAttributeValue_StringAttributeValue: + attributeDef.DefaultMintValue = &types092.DefaultMintValue{ + Value: &types092.DefaultMintValue_StringAttributeValue{ StringAttributeValue: value.StringAttributeValue, }, } - case *types.SchemaAttributeValue_BooleanAttributeValue: - attributeDef.DefaultMintValue = &types.DefaultMintValue{ - Value: &types.DefaultMintValue_BooleanAttributeValue{ + case *types092.SchemaAttributeValue_BooleanAttributeValue: + attributeDef.DefaultMintValue = &types092.DefaultMintValue{ + Value: &types092.DefaultMintValue_BooleanAttributeValue{ BooleanAttributeValue: value.BooleanAttributeValue, }, } - case *types.SchemaAttributeValue_FloatAttributeValue: - attributeDef.DefaultMintValue = &types.DefaultMintValue{ - Value: &types.DefaultMintValue_FloatAttributeValue{ + case *types092.SchemaAttributeValue_FloatAttributeValue: + attributeDef.DefaultMintValue = &types092.DefaultMintValue{ + Value: &types092.DefaultMintValue_FloatAttributeValue{ FloatAttributeValue: value.FloatAttributeValue, }, } @@ -267,7 +268,7 @@ func ConvertSchemaAttributeToNftAttributeDefinition(schemaAttributes *types.Sche return nil, fmt.Errorf("unknown value type: %T", value) } - return &types.AttributeDefinition{ + return &types092.AttributeDefinition{ Name: schemaAttributes.Name, DataType: schemaAttributes.DataType, Required: schemaAttributes.Required, diff --git a/x/nftmngr/keeper/validate_schema.go b/x/nftmngr/keeper/validate_schema.go index 340e1e17..18ecb96e 100644 --- a/x/nftmngr/keeper/validate_schema.go +++ b/x/nftmngr/keeper/validate_schema.go @@ -2,10 +2,11 @@ package keeper import ( "fmt" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/thesixnetwork/sixnft/x/nftmngr/types" "regexp" "strings" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/thesixnetwork/sixnft/x/nftmngr/types" ) // **** VALIDATION OF NFT SCHEMA **** @@ -14,7 +15,7 @@ const ( // AttributeName regular expression RegxAttributeName = `^[a-z]{1}[a-z0-9_]*[a-z0-9]{1}$` RegxActionName = `^[A-Za-z]{1}[A-Za-z0-9_]*[A-Za-z0-9]{1}$` - //regexp.MatchString(`^[a-z]{1}[a-z0-9_]*[a-z0-9]{1}$`, "user_name9") + // regexp.MatchString(`^[a-z]{1}[a-z0-9_]*[a-z0-9]{1}$`, "user_name9") ) // Validate NFT Schema @@ -107,11 +108,16 @@ func ValidateNFTSchema(schema *types.NFTSchemaINPUT) (bool, error) { } func ValidateAttributeNames(attributeDefinitions []*types.AttributeDefinition) error { + // Compile the regex once + regex, err := regexp.Compile(RegxAttributeName) + if err != nil { + return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid regex pattern") + } + // Loop over definitions and validate for _, attrDef := range attributeDefinitions { - // Check if attribute name is snake case - matched, _ := regexp.MatchString(RegxAttributeName, attrDef.Name) - if !matched { + // Check if attribute name matches the compiled regex + if !regex.MatchString(attrDef.Name) { return sdkerrors.Wrap(types.ErrInvalidAttributeName, attrDef.Name) } } @@ -142,33 +148,21 @@ func GetOrganizationFromSchemaCode(nftSchemaCode string) (bool, string) { return true, organizationName } -func MergeAllAttributesAndAlterOrderIndex(originAttributes []*types.AttributeDefinition, nftAttribute []*types.AttributeDefinition, tokenAttribute []*types.AttributeDefinition) []*types.AttributeDefinition { - mergedAttributes := make([]*types.AttributeDefinition, 0) - // var index uint64 = 0 - // for _, attribute := range append(originAttributes, onchainTokenAttribute...) { - // attribute.Index = index - // mergedAttributes = append(mergedAttributes, attribute) - // index++ - // } +func MergeAllAttributesAndAlterOrderIndex(originAttributes []*types.AttributeDefinition, nftAttribute []*types.AttributeDefinition, tokenAttribute []*types.AttributeDefinition) { var index uint64 = 0 for _, attribute := range originAttributes { attribute.Index = index - mergedAttributes = append(mergedAttributes, attribute) index++ } + for _, attribute := range nftAttribute { attribute.Index = index - mergedAttributes = append(mergedAttributes, attribute) index++ } for _, attribute := range tokenAttribute { attribute.Index = index - mergedAttributes = append(mergedAttributes, attribute) index++ } - - - return mergedAttributes } diff --git a/x/nftmngr/keeper/action_of_schema_test.go b/x/nftmngr/keeper_test/action_of_schema_test.go similarity index 100% rename from x/nftmngr/keeper/action_of_schema_test.go rename to x/nftmngr/keeper_test/action_of_schema_test.go diff --git a/x/nftmngr/keeper_test/action_server_test.go b/x/nftmngr/keeper_test/action_server_test.go index 8db4bf90..c31cb0a9 100644 --- a/x/nftmngr/keeper_test/action_server_test.go +++ b/x/nftmngr/keeper_test/action_server_test.go @@ -1,10 +1,14 @@ package keeper_test import ( + "encoding/json" "fmt" + "math/rand" + "strconv" "testing" - _keeper "github.com/thesixnetwork/sixnft/testutil/keeper" + keeperTestify "github.com/thesixnetwork/sixnft/testutil/keeper" + utils "github.com/thesixnetwork/sixnft/testutil/utils" "github.com/thesixnetwork/sixnft/x/nftmngr/keeper" sim "github.com/thesixnetwork/sixnft/x/nftmngr/simulation" @@ -36,7 +40,7 @@ func TestAction(t *testing.T) { // ** START: NOTHING TO CARE ABOUT THIS PART ** - keeper_, ctx := _keeper.NftmngrKeeper(t) + keeper_, ctx := keeperTestify.NftmngrKeeper(t) keeper_.SetNFTSchema(ctx, schema_) if _, found := keeper_.GetNFTSchema(ctx, schema_.Code); !found { @@ -90,6 +94,88 @@ func TestAction(t *testing.T) { require.NoError(t, err) require.Equal(t, int64(1), allCheckInNumber) - fmt.Printf("CASE 1 SUCCESS WITH UPDATE VALUE \n newPoints: %v\n isCheckIn :%v\n allCheckInNumber: %v\n", newPoints, isCheckIn, allCheckInNumber) - // ** END: ACTUAL TEST ** + // fmt.Printf("CASE 1 SUCCESS WITH UPDATE VALUE \n newPoints: %v\n isCheckIn :%v\n allCheckInNumber: %v\n", newPoints, isCheckIn, allCheckInNumber) + // // ** END: ACTUAL TEST ** +} + +func TestActionKeeper(t *testing.T) { + var tokenId = "1" + + // Read in schema and metadata from JSON files + schemaJSON, err := os.ReadFile("../simulation/nft_schema_test.json") + require.NoError(t, err) + schemaInput := types.NFTSchemaINPUT{} + err = jsonpb.UnmarshalString(string(schemaJSON), &schemaInput) + require.NoError(t, err) + + metaJSON, err := os.ReadFile("../simulation/nft_metadata_test.json") + require.NoError(t, err) + + metaInput := types.NftData{} + + metaInput.TokenId = tokenId + + err = jsonpb.UnmarshalString(string(metaJSON), &metaInput) + require.NoError(t, err) + + // ** START: NOTHING TO CARE ABOUT THIS PART ** + _, _, creator := utils.KeyTestPubAddr() + + testKeeper, ctx := keeperTestify.NftmngrKeeper(t) + err = testKeeper.CreateNftSchemaKeeper(ctx, creator.String(), schemaInput) + require.NoError(t, err) + // testKeeper.SetNFTSchema(ctx, schema_) + + r := rand.New(rand.NewSource(99)) + + _, found := testKeeper.GetNFTSchema(ctx, schemaInput.Code) + if !found { + fmt.Println("Schema not found") + } else { + require.True(t, found) + require.NoError(t, err) + // require.Equal(t, schema_, val) + } + + err = testKeeper.CreateNewMetadataKeeper(ctx, creator.String(), schemaInput.Code, metaInput.TokenId, metaInput) + require.NoError(t, err) + + _, found = testKeeper.GetNftData(ctx, schemaInput.Code, metaInput.TokenId) + if !found { + fmt.Println("Metadata not found") + } else { + require.True(t, found) + require.NoError(t, err) + // require.Equal(t, metaInput, data_) + } + + // ** END: NOTHING TO CARE ABOUT THIS PART ** + + // ** START: ACTUAL TEST ** + // Define the action to be processed + selectAction := "use_service" + + // Process the action on the metadata + actionParams_ := []*types.ActionParameter{} + actionParams_ = append(actionParams_, &types.ActionParameter{ + Name: "service_name", + Value: "service_4", + }) + + intRand := r.Int() + stringFromIntRand := strconv.FormatInt(int64(intRand), 10) + + changList, err := testKeeper.ActionByAdmin(ctx, creator.String(), schemaInput.Code, metaInput.TokenId, selectAction, stringFromIntRand, actionParams_) + require.NoError(t, err) + + metaChangelist := []types.MetadataChange{} + err = json.Unmarshal(changList, &metaChangelist) + if err != nil { + fmt.Printf("err: %v \n", err) + } + + require.Equal(t, actionParams_[0].Value, metaChangelist[0].Key) + require.Equal(t, "10", metaChangelist[0].PreviousValue) + require.Equal(t, "9", metaChangelist[0].NewValue) + // fmt.Printf("ChangeList: %+v \n", metaChangelist) } diff --git a/x/nftmngr/keeper/executor_of_schema_test.go b/x/nftmngr/keeper_test/executor_of_schema_test.go similarity index 100% rename from x/nftmngr/keeper/executor_of_schema_test.go rename to x/nftmngr/keeper_test/executor_of_schema_test.go diff --git a/x/nftmngr/keeper/grpc_query_action_of_schema_test.go b/x/nftmngr/keeper_test/grpc_query_action_of_schema_test.go similarity index 100% rename from x/nftmngr/keeper/grpc_query_action_of_schema_test.go rename to x/nftmngr/keeper_test/grpc_query_action_of_schema_test.go diff --git a/x/nftmngr/keeper/grpc_query_executor_of_schema_test.go b/x/nftmngr/keeper_test/grpc_query_executor_of_schema_test.go similarity index 100% rename from x/nftmngr/keeper/grpc_query_executor_of_schema_test.go rename to x/nftmngr/keeper_test/grpc_query_executor_of_schema_test.go diff --git a/x/nftmngr/keeper_test/meta_test.go b/x/nftmngr/keeper_test/meta_test.go index 9bb2a0dd..2682daf0 100644 --- a/x/nftmngr/keeper_test/meta_test.go +++ b/x/nftmngr/keeper_test/meta_test.go @@ -34,6 +34,7 @@ func TestNewMetadata(t *testing.T) { fmt.Println(err) } + schema_, data_, globalAttributeSchema_ := sim.SimulateCreateMetadata(schemaInput, metaInput) meta := types.NewMetadata(&schema_, &data_, types.AttributeOverriding_CHAIN, globalAttributeSchema_) diff --git a/x/nftmngr/keeper_test/msg_server_action_executor_test.go b/x/nftmngr/keeper_test/msg_server_action_executor_test.go index 07c22689..4d201ec7 100644 --- a/x/nftmngr/keeper_test/msg_server_action_executor_test.go +++ b/x/nftmngr/keeper_test/msg_server_action_executor_test.go @@ -79,8 +79,6 @@ func TestActionExecutorMsgServerUpdate(t *testing.T) { } _, err := srv.CreateActionExecutor(wctx, expected) require.NoError(t, err) - - _, err = srv.UpdateActionExecutor(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/nftmngr/keeper_test/msg_server_create_nft_schema_test.go b/x/nftmngr/keeper_test/msg_server_create_nft_schema_test.go index 16d309f1..0b5ea062 100644 --- a/x/nftmngr/keeper_test/msg_server_create_nft_schema_test.go +++ b/x/nftmngr/keeper_test/msg_server_create_nft_schema_test.go @@ -367,7 +367,7 @@ func TestCreateSchema(t *testing.T) { } // merge all attributes and label with index - _ = keeper.MergeAllAttributesAndAlterOrderIndex(schema_input.OriginData.OriginAttributes, schema_input.OnchainData.NftAttributes,schema_input.OnchainData.TokenAttributes) + keeper.MergeAllAttributesAndAlterOrderIndex(schema_input.OriginData.OriginAttributes, schema_input.OnchainData.NftAttributes,schema_input.OnchainData.TokenAttributes) fmt.Println("Valid: ", valid) // print data output to console as json and formatted diff --git a/x/nftmngr/migrations/v2/types/action.pb.go b/x/nftmngr/migrations/v2/types/action.pb.go new file mode 100644 index 00000000..8a5826b3 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/action.pb.go @@ -0,0 +1,1020 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/action.proto + +package types + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4895bbc0baa3e92e, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_4895bbc0baa3e92e, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_4895bbc0baa3e92e, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + // proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.action_params") + // proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.Action") +} + +func init() { proto.RegisterFile("nftmngr/action.proto", fileDescriptor_4895bbc0baa3e92e) } + +var fileDescriptor_4895bbc0baa3e92e = []byte{ + // 430 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0xe3, 0xb6, 0xcb, 0x52, 0xc3, 0x58, 0x65, 0xf5, 0x60, 0x95, 0x29, 0x44, 0xe3, 0x12, + 0x81, 0x48, 0xa4, 0xf1, 0x09, 0x32, 0xc8, 0xa1, 0x52, 0x58, 0xa5, 0xb4, 0x80, 0xc6, 0x81, 0xc8, + 0x6d, 0xdc, 0x34, 0x22, 0x89, 0x43, 0xe2, 0xd0, 0xed, 0x5b, 0x70, 0xe1, 0xc8, 0xf7, 0xd9, 0x71, + 0x47, 0x4e, 0x08, 0xb5, 0x5f, 0x04, 0xd9, 0xce, 0x90, 0xca, 0xa4, 0x6a, 0xb7, 0xc7, 0xbf, 0xf7, + 0x4f, 0x9e, 0xf7, 0xcd, 0x0b, 0x87, 0xc5, 0x92, 0xe7, 0x45, 0x52, 0xb9, 0x64, 0xc1, 0x53, 0x56, + 0x38, 0x65, 0xc5, 0x38, 0x43, 0x27, 0x7c, 0x45, 0xeb, 0xf4, 0xaa, 0xa0, 0x7c, 0xcd, 0xaa, 0x2f, + 0x8e, 0x90, 0x4b, 0xee, 0xb4, 0xa9, 0xa3, 0x61, 0xc2, 0x12, 0x26, 0x13, 0x5d, 0xa1, 0x54, 0xcd, + 0xe9, 0x0f, 0x00, 0x8f, 0x54, 0x93, 0xa8, 0x24, 0x15, 0xc9, 0x6b, 0x84, 0x60, 0xaf, 0x20, 0x39, + 0xc5, 0xc0, 0x02, 0x76, 0x3f, 0x94, 0x5a, 0xb0, 0x98, 0xd6, 0x0b, 0xdc, 0x51, 0x4c, 0x68, 0xf4, + 0x14, 0xf6, 0x63, 0xc2, 0x49, 0xc4, 0xaf, 0x4b, 0x8a, 0xbb, 0x32, 0x60, 0x08, 0x30, 0xbb, 0x2e, + 0x29, 0x1a, 0x41, 0xa3, 0xa2, 0x5f, 0x9b, 0xb4, 0xa2, 0x31, 0xee, 0x59, 0xc0, 0x36, 0xc2, 0x7f, + 0x6f, 0xf4, 0x1c, 0x1e, 0xc5, 0x74, 0x49, 0x9a, 0x8c, 0x47, 0xdf, 0x48, 0xd6, 0x50, 0x7c, 0x20, + 0x8b, 0x1f, 0xb7, 0xf0, 0x83, 0x60, 0xa7, 0x3f, 0x3b, 0x50, 0xf7, 0xa4, 0xaf, 0x07, 0x1b, 0xc2, + 0xf0, 0x30, 0x4e, 0x6b, 0x32, 0xcf, 0x94, 0x1d, 0x23, 0xbc, 0x7b, 0x8a, 0xec, 0xf5, 0x8a, 0x16, + 0xd2, 0x49, 0x3f, 0x94, 0x5a, 0x30, 0x2e, 0xd8, 0x81, 0xd5, 0x15, 0x4c, 0x68, 0xf4, 0x19, 0x0e, + 0x48, 0x96, 0xb1, 0x35, 0x8d, 0x23, 0xb5, 0x13, 0x5a, 0x61, 0xdd, 0x02, 0xf6, 0x93, 0xb3, 0x57, + 0xce, 0xbe, 0xdd, 0x3a, 0x9e, 0xaa, 0xf2, 0xda, 0xa2, 0xf3, 0xde, 0xcd, 0xef, 0x67, 0x20, 0x3c, + 0x26, 0xbb, 0x18, 0x8d, 0xa1, 0xae, 0x96, 0x8c, 0x0f, 0xad, 0xae, 0xfd, 0xe8, 0xec, 0xe5, 0xfe, + 0xae, 0x3b, 0xff, 0xa5, 0xed, 0xd9, 0x36, 0x78, 0x91, 0xc3, 0xe3, 0xff, 0x3e, 0x8a, 0x30, 0x1c, + 0x7a, 0x41, 0x30, 0xf9, 0xe8, 0xbf, 0x8d, 0xbc, 0x37, 0xb3, 0xf1, 0xe4, 0xc2, 0x0f, 0x23, 0x2f, + 0x08, 0x06, 0x1a, 0xb2, 0xe0, 0xc9, 0xbd, 0xc8, 0xf4, 0x72, 0x3a, 0xf3, 0xdf, 0x45, 0x93, 0x8b, + 0xe0, 0x72, 0x00, 0x90, 0x09, 0x47, 0xf7, 0x32, 0xde, 0x4f, 0xfd, 0x50, 0xc5, 0x3b, 0xe7, 0xe3, + 0x9b, 0x8d, 0x09, 0x6e, 0x37, 0x26, 0xf8, 0xb3, 0x31, 0xc1, 0xf7, 0xad, 0xa9, 0xdd, 0x6e, 0x4d, + 0xed, 0xd7, 0xd6, 0xd4, 0x3e, 0xb9, 0x49, 0xca, 0x57, 0xcd, 0xdc, 0x59, 0xb0, 0xdc, 0xdd, 0x99, + 0xc6, 0x55, 0xd3, 0xb8, 0x57, 0xee, 0xdd, 0xb1, 0x8a, 0x4b, 0xa9, 0xe7, 0xba, 0x3c, 0xbc, 0xd7, + 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xc8, 0x72, 0x81, 0xc4, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/attribute_definition.pb.go b/x/nftmngr/migrations/v2/types/attribute_definition.pb.go new file mode 100644 index 00000000..3eef9de0 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/attribute_definition.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_92a3bff541821c50, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_92a3bff541821c50, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + // proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.DefaultMintValue") + // proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/attribute_definition.proto", fileDescriptor_92a3bff541821c50) +} + +var fileDescriptor_92a3bff541821c50 = []byte{ + // 514 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xd1, 0x6e, 0xd3, 0x3c, + 0x14, 0xc7, 0x9b, 0xaf, 0xed, 0xd6, 0xfa, 0xd3, 0xa6, 0xe1, 0xae, 0x10, 0x95, 0x29, 0x1a, 0x95, + 0x90, 0x26, 0x21, 0x25, 0xa2, 0x7b, 0x02, 0xaa, 0x6a, 0x82, 0x8b, 0x31, 0x29, 0x4c, 0x5c, 0x20, + 0xa4, 0xc8, 0x99, 0x9d, 0xd6, 0x2c, 0xb1, 0x83, 0x73, 0x32, 0xda, 0xb7, 0xe0, 0x65, 0x78, 0x07, + 0x24, 0x6e, 0x76, 0xc9, 0x25, 0x6a, 0x5f, 0x04, 0xc5, 0x6e, 0x5a, 0xd6, 0x54, 0x85, 0x3b, 0xfb, + 0xfc, 0xfd, 0x3f, 0x3f, 0x9f, 0xe3, 0x63, 0xd4, 0x17, 0x11, 0x24, 0x62, 0xac, 0x3c, 0x02, 0xa0, + 0x78, 0x98, 0x03, 0x0b, 0x28, 0x8b, 0xb8, 0xe0, 0xc0, 0xa5, 0x70, 0x53, 0x25, 0x41, 0xe2, 0x13, + 0x98, 0xb0, 0x8c, 0x4f, 0x05, 0x83, 0x2f, 0x52, 0xdd, 0xba, 0xc5, 0x32, 0x02, 0x77, 0x69, 0xec, + 0x9d, 0x94, 0x19, 0x28, 0xcf, 0xd2, 0x98, 0xcc, 0x02, 0x99, 0xae, 0xbd, 0xbd, 0x67, 0xa5, 0x2a, + 0x22, 0x08, 0xd6, 0x8c, 0x3b, 0x12, 0xe7, 0xcc, 0x1c, 0xe9, 0xff, 0xa8, 0xa3, 0xa3, 0x11, 0x8b, + 0x48, 0x1e, 0xc3, 0x25, 0x17, 0xf0, 0xbe, 0x90, 0xf0, 0x27, 0xf4, 0x58, 0xe4, 0x49, 0xc8, 0xd4, + 0xa6, 0xc9, 0xb6, 0x4e, 0xad, 0xb3, 0xff, 0x07, 0x03, 0x77, 0xd7, 0xa5, 0xdc, 0xb7, 0xda, 0xfb, + 0xaa, 0xb4, 0xea, 0x9c, 0xaf, 0x6b, 0xfe, 0xb1, 0xd8, 0x12, 0x2f, 0x58, 0x19, 0x28, 0x2e, 0xc6, + 0x15, 0xd6, 0x7f, 0xff, 0xc2, 0x7a, 0xa7, 0xbd, 0x55, 0x56, 0xb6, 0x25, 0x8e, 0x13, 0xf4, 0x24, + 0x94, 0x32, 0x66, 0x44, 0x54, 0x60, 0x75, 0x0d, 0x3b, 0xdf, 0x0d, 0x1b, 0x1a, 0x73, 0x85, 0xd6, + 0x0d, 0xb7, 0x09, 0x78, 0x8c, 0xba, 0x51, 0x2c, 0x49, 0xa5, 0xf5, 0x76, 0x43, 0xc3, 0x5e, 0xee, + 0x86, 0x5d, 0x14, 0xd6, 0x0a, 0xaa, 0x13, 0x55, 0xc3, 0xc3, 0x7d, 0xd4, 0xd4, 0x89, 0xfb, 0xdf, + 0xea, 0xa8, 0xb3, 0xd2, 0x46, 0xab, 0x51, 0xc2, 0x18, 0x35, 0x04, 0x49, 0xcc, 0xf3, 0xb5, 0x7d, + 0xbd, 0xc6, 0x4f, 0x51, 0x9b, 0x12, 0x20, 0x01, 0xcc, 0x52, 0xd3, 0xeb, 0xb6, 0xdf, 0x2a, 0x02, + 0xd7, 0xb3, 0x94, 0xe1, 0x1e, 0x6a, 0x29, 0xf6, 0x39, 0xe7, 0x8a, 0x51, 0xdd, 0x9a, 0x96, 0xbf, + 0xda, 0x63, 0x17, 0x75, 0xca, 0x69, 0xd3, 0xd4, 0x20, 0xe2, 0x2c, 0xa6, 0xba, 0xa8, 0xb6, 0xff, + 0x68, 0x29, 0xe9, 0x8b, 0x5d, 0x14, 0x02, 0xf6, 0xd1, 0xe1, 0xc3, 0xe9, 0xb4, 0x9b, 0xba, 0xfe, + 0x17, 0xbb, 0xeb, 0x1f, 0x19, 0xcf, 0x95, 0xb6, 0xf8, 0x07, 0xf4, 0xcf, 0x2d, 0xfe, 0x88, 0x30, + 0x35, 0x53, 0x1b, 0x24, 0x5c, 0xc0, 0xb2, 0xaf, 0x7b, 0x3a, 0xaf, 0xfb, 0x97, 0xbc, 0x1b, 0xd3, + 0xee, 0x1f, 0xd1, 0xcd, 0xf9, 0x7f, 0x8e, 0x0e, 0x27, 0x9c, 0x52, 0x26, 0x02, 0x79, 0xc7, 0x14, + 0xa7, 0xcc, 0xde, 0xd7, 0x3d, 0x38, 0x30, 0xd1, 0x2b, 0x13, 0xc4, 0x03, 0xd4, 0x5d, 0x1e, 0x03, + 0x19, 0x24, 0x44, 0xdd, 0x32, 0x48, 0x63, 0x72, 0xc3, 0xec, 0x96, 0x3e, 0xdd, 0x31, 0xe2, 0xb5, + 0xbc, 0x5c, 0x4b, 0xf8, 0x18, 0x35, 0xb9, 0xa0, 0x6c, 0x6a, 0xb7, 0x4f, 0xad, 0xb3, 0x86, 0x6f, + 0x36, 0xc3, 0x37, 0xdf, 0xe7, 0x8e, 0x75, 0x3f, 0x77, 0xac, 0x5f, 0x73, 0xc7, 0xfa, 0xba, 0x70, + 0x6a, 0xf7, 0x0b, 0xa7, 0xf6, 0x73, 0xe1, 0xd4, 0x3e, 0x78, 0x63, 0x0e, 0x93, 0x3c, 0x74, 0x6f, + 0x64, 0xe2, 0x3d, 0x28, 0xcb, 0x33, 0x65, 0x79, 0x53, 0xaf, 0xfc, 0xe4, 0xc5, 0x43, 0x66, 0xe1, + 0x9e, 0xfe, 0xd7, 0xe7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x90, 0x02, 0x3f, 0x74, 0x5c, 0x04, + 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/display_option.pb.go b/x/nftmngr/migrations/v2/types/display_option.pb.go new file mode 100644 index 00000000..c6f01177 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/display_option.pb.go @@ -0,0 +1,431 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/display_option.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_38983a60548f9882, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + // proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/display_option.proto", fileDescriptor_38983a60548f9882) } + +var fileDescriptor_38983a60548f9882 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, + 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, + 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0xa4, + 0x54, 0x60, 0x7a, 0xf3, 0x0b, 0x52, 0xf3, 0x8a, 0x53, 0x13, 0xe3, 0xb1, 0x99, 0xa1, 0xb4, 0x9e, + 0x91, 0x8b, 0xd7, 0x05, 0x22, 0xe1, 0x0f, 0x16, 0x17, 0x52, 0xe3, 0xe2, 0x4f, 0xca, 0xcf, 0xcf, + 0x89, 0x2f, 0x29, 0x2a, 0x4d, 0x8d, 0x2f, 0x4b, 0xcc, 0x29, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, + 0xe0, 0x0c, 0xe2, 0x05, 0x09, 0x87, 0x14, 0x95, 0xa6, 0x86, 0x81, 0x04, 0x85, 0x34, 0xb8, 0x04, + 0xc0, 0xea, 0xd2, 0x12, 0x73, 0x8a, 0x61, 0x0a, 0x99, 0xc0, 0x0a, 0xf9, 0x40, 0xe2, 0x6e, 0x20, + 0x61, 0x88, 0x4a, 0x1f, 0x2e, 0x76, 0xa8, 0x1b, 0x24, 0x98, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x8c, + 0xf4, 0xf0, 0xb9, 0x5c, 0xcf, 0x1f, 0xa2, 0x18, 0xc5, 0x59, 0x41, 0x30, 0x23, 0x9c, 0x3c, 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, 0x3f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, + 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xc5, 0x02, 0x7d, 0x88, 0x05, 0xfa, 0x15, 0xfa, 0xb0, 0x30, + 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x81, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, + 0xb9, 0x3b, 0x08, 0xc6, 0x67, 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/nft_attribute_value.pb.go b/x/nftmngr/migrations/v2/types/nft_attribute_value.pb.go new file mode 100644 index 00000000..c75df442 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/nft_attribute_value.pb.go @@ -0,0 +1,1362 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/nft_attribute_value.proto + +package types + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8e19febe892d5c1e, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8e19febe892d5c1e, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8e19febe892d5c1e, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8e19febe892d5c1e, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8e19febe892d5c1e, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + // proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.NftAttributeValue") + // proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.NumberAttributeValue") + // proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.StringAttributeValue") + // proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.BooleanAttributeValue") + // proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.FloatAttributeValue") +} + +func init() { proto.RegisterFile("nftmngr/nft_attribute_value.proto", fileDescriptor_8e19febe892d5c1e) } + +var fileDescriptor_8e19febe892d5c1e = []byte{ + // 392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xb1, 0x4e, 0xe3, 0x30, + 0x18, 0xc7, 0xe3, 0xbb, 0xb4, 0xd7, 0xfa, 0xa6, 0x73, 0x9b, 0x23, 0x20, 0x14, 0x95, 0x4e, 0x95, + 0x80, 0x58, 0xb4, 0x4f, 0x40, 0x07, 0x04, 0x03, 0x1d, 0x02, 0x62, 0x60, 0x89, 0x9c, 0xd6, 0x49, + 0x43, 0x13, 0xbb, 0x4a, 0x1c, 0x68, 0xdf, 0x82, 0x81, 0x87, 0x62, 0xec, 0xc8, 0x88, 0xda, 0x17, + 0x41, 0x71, 0x1a, 0x55, 0x21, 0x51, 0xc5, 0x66, 0xf9, 0xfb, 0xfd, 0xfd, 0xfb, 0xf2, 0x39, 0x86, + 0x27, 0xcc, 0x15, 0x21, 0xf3, 0x22, 0xcc, 0x5c, 0x61, 0x13, 0x21, 0x22, 0xdf, 0x49, 0x04, 0xb5, + 0x9f, 0x49, 0x90, 0x50, 0x73, 0x1e, 0x71, 0xc1, 0xd1, 0xb1, 0x98, 0xd2, 0xd8, 0x5f, 0x30, 0x2a, + 0x5e, 0x78, 0x34, 0x33, 0xd3, 0xa5, 0x2b, 0xcc, 0x6d, 0xee, 0xe8, 0xd0, 0xe3, 0xdc, 0x0b, 0x28, + 0x96, 0xac, 0x93, 0xb8, 0x98, 0xb0, 0x65, 0x16, 0xec, 0xbe, 0xa9, 0xf0, 0xdf, 0xc8, 0x15, 0x97, + 0xf9, 0xa9, 0x0f, 0xe9, 0xa1, 0x08, 0x41, 0x95, 0x91, 0x90, 0xea, 0xa0, 0x03, 0x7a, 0x4d, 0x4b, + 0xae, 0xd1, 0x13, 0xfc, 0xcf, 0x92, 0xd0, 0xa1, 0xd1, 0xf7, 0x16, 0xf4, 0x5f, 0x1d, 0xd0, 0xfb, + 0xdb, 0xef, 0x9b, 0xfb, 0x7a, 0x30, 0x47, 0x32, 0x5b, 0xf4, 0x5c, 0x2b, 0x56, 0x9b, 0x55, 0xec, + 0xa7, 0xae, 0x58, 0x44, 0x3e, 0xf3, 0x4a, 0xae, 0xdf, 0x3f, 0x71, 0xdd, 0xc9, 0x6c, 0xd9, 0x15, + 0x57, 0xec, 0xa3, 0x10, 0x1e, 0x38, 0x9c, 0x07, 0x94, 0xb0, 0x92, 0x4c, 0x95, 0xb2, 0xc1, 0x7e, + 0xd9, 0x30, 0x0b, 0x97, 0x6c, 0x9a, 0x53, 0x55, 0x40, 0x1e, 0xd4, 0xdc, 0x80, 0x93, 0xd2, 0x45, + 0xea, 0x35, 0x29, 0xbb, 0xd8, 0x2f, 0xbb, 0x4a, 0xa3, 0x25, 0x55, 0xcb, 0x2d, 0x6f, 0xa3, 0x3e, + 0xd4, 0xa6, 0xfe, 0x64, 0x42, 0x99, 0x2d, 0xb8, 0x1d, 0x92, 0x68, 0x46, 0xc5, 0x3c, 0x20, 0x63, + 0xaa, 0xd7, 0x3b, 0xa0, 0xd7, 0xb0, 0x5a, 0x59, 0xf1, 0x9e, 0xdf, 0xee, 0x4a, 0xc3, 0x3f, 0xb0, + 0x26, 0x9b, 0xe9, 0x9e, 0xc1, 0x76, 0xd5, 0x85, 0xa1, 0xf6, 0x16, 0x90, 0x7f, 0x86, 0x6a, 0xed, + 0xe8, 0xaa, 0x91, 0x17, 0xe9, 0x66, 0x4e, 0x9f, 0x43, 0xad, 0x72, 0x66, 0x45, 0xbc, 0x91, 0xe3, + 0xa7, 0xb0, 0x55, 0xf1, 0xd5, 0x45, 0x18, 0x6c, 0xe1, 0xe1, 0xcd, 0xfb, 0xda, 0x00, 0xab, 0xb5, + 0x01, 0x3e, 0xd7, 0x06, 0x78, 0xdd, 0x18, 0xca, 0x6a, 0x63, 0x28, 0x1f, 0x1b, 0x43, 0x79, 0xc4, + 0x9e, 0x2f, 0xa6, 0x89, 0x63, 0x8e, 0x79, 0x88, 0x0b, 0x23, 0xc6, 0xd9, 0x88, 0xf1, 0x02, 0xe7, + 0xcf, 0x4c, 0x2c, 0xe7, 0x34, 0x76, 0xea, 0xf2, 0x81, 0x0c, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xbe, 0xd2, 0x1c, 0x9f, 0x7e, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/nft_schema.pb.go b/x/nftmngr/migrations/v2/types/nft_schema.pb.go new file mode 100644 index 00000000..ae3e4728 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/nft_schema.pb.go @@ -0,0 +1,2361 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/nft_schema.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_f35d7a245dabb499, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaV2 struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainDataV2 `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaV2) Reset() { *m = NFTSchemaV2{} } +func (m *NFTSchemaV2) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaV2) ProtoMessage() {} +func (*NFTSchemaV2) Descriptor() ([]byte, []int) { + return fileDescriptor_f35d7a245dabb499, []int{1} +} +func (m *NFTSchemaV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaV2.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 *NFTSchemaV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaV2.Merge(m, src) +} +func (m *NFTSchemaV2) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaV2) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaV2.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaV2 proto.InternalMessageInfo + +func (m *NFTSchemaV2) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaV2) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaV2) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaV2) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaV2) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaV2) GetOnchainData() *OnChainDataV2 { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaV2) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaV2) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaINPUT struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + SystemActioners []string `protobuf:"bytes,5,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,6,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,7,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,8,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,9,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } +func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaINPUT) ProtoMessage() {} +func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { + return fileDescriptor_f35d7a245dabb499, []int{2} +} +func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaINPUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaINPUT.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 *NFTSchemaINPUT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaINPUT.Merge(m, src) +} +func (m *NFTSchemaINPUT) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaINPUT) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaINPUT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaINPUT proto.InternalMessageInfo + +func (m *NFTSchemaINPUT) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaINPUT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaINPUT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaINPUT) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaINPUT) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaINPUT) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaINPUT) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaINPUT) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaINPUT) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaV1 struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainDataV1 `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaV1) Reset() { *m = NFTSchemaV1{} } +func (m *NFTSchemaV1) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaV1) ProtoMessage() {} +func (*NFTSchemaV1) Descriptor() ([]byte, []int) { + return fileDescriptor_f35d7a245dabb499, []int{3} +} +func (m *NFTSchemaV1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaV1.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 *NFTSchemaV1) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaV1.Merge(m, src) +} +func (m *NFTSchemaV1) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaV1) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaV1.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaV1 proto.InternalMessageInfo + +func (m *NFTSchemaV1) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaV1) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaV1) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaV1) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaV1) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaV1) GetOnchainData() *OnChainDataV1 { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaV1) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaV1) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + // proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchema") + // proto.RegisterType((*NFTSchemaV2)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaV2") + // proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaINPUT") + // proto.RegisterType((*NFTSchemaV1)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaV1") +} + +func init() { proto.RegisterFile("nftmngr/nft_schema.proto", fileDescriptor_f35d7a245dabb499) } + +var fileDescriptor_f35d7a245dabb499 = []byte{ + // 447 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0x4d, 0xab, 0xd3, 0x40, + 0x14, 0x6d, 0xfa, 0xf5, 0x9a, 0x89, 0xf8, 0x31, 0xb8, 0x18, 0x9f, 0x12, 0xc2, 0x5b, 0xe5, 0x21, + 0x26, 0xbc, 0xfa, 0x0b, 0x9e, 0x8a, 0x50, 0x90, 0x2a, 0xf1, 0xd9, 0x85, 0x9b, 0x30, 0x2f, 0x99, + 0x34, 0x83, 0x64, 0xa6, 0xcc, 0x4c, 0x69, 0xeb, 0xd6, 0x3f, 0xe0, 0xcf, 0x72, 0x59, 0x70, 0xa1, + 0xcb, 0xd2, 0xfe, 0x11, 0xc9, 0xa4, 0x8d, 0xa9, 0x54, 0x2d, 0xd8, 0x22, 0x6f, 0x77, 0x7b, 0x4e, + 0xcf, 0xcd, 0xbd, 0xe7, 0x1e, 0x06, 0x20, 0x96, 0xa8, 0x8c, 0x0d, 0x85, 0xcf, 0x12, 0x15, 0xca, + 0x28, 0x25, 0x19, 0xf6, 0x46, 0x82, 0x2b, 0x0e, 0x1f, 0xa9, 0x94, 0x48, 0x3a, 0x65, 0x44, 0x4d, + 0xb8, 0xf8, 0xe0, 0xe5, 0x65, 0xa2, 0xbc, 0xf5, 0xdf, 0x4f, 0x1f, 0x6e, 0x74, 0x9c, 0x85, 0x51, + 0x8a, 0x29, 0x0b, 0x63, 0xac, 0xd6, 0xd2, 0xd3, 0x07, 0x25, 0x29, 0xe8, 0x70, 0x8b, 0x3a, 0xfb, + 0x5a, 0x07, 0x66, 0xff, 0xe5, 0xd5, 0x5b, 0xfd, 0x25, 0x08, 0x41, 0x33, 0xe2, 0x31, 0x41, 0x86, + 0x63, 0xb8, 0x66, 0xa0, 0xeb, 0x1c, 0x63, 0x38, 0x23, 0xa8, 0x5e, 0x60, 0x79, 0x0d, 0xef, 0x83, + 0x16, 0x9f, 0x30, 0x22, 0x50, 0x43, 0x83, 0xc5, 0x0f, 0xe8, 0x00, 0x2b, 0x26, 0x32, 0x12, 0x74, + 0xa4, 0x28, 0x67, 0xa8, 0xa9, 0xb9, 0x2a, 0x04, 0x7b, 0xc0, 0xaa, 0x8c, 0x80, 0x5a, 0x8e, 0xe1, + 0x5a, 0x5d, 0xd7, 0xfb, 0xd3, 0x66, 0xde, 0x6b, 0x2d, 0x78, 0x81, 0x15, 0x0e, 0x00, 0x2f, 0x6b, + 0xf8, 0x0a, 0xdc, 0xe2, 0xec, 0xe7, 0xa6, 0xa8, 0xad, 0x7b, 0x9d, 0xff, 0xa5, 0x17, 0x7b, 0x9e, + 0x2b, 0x74, 0x33, 0x6b, 0x2d, 0xd7, 0xdd, 0x6c, 0x00, 0xa8, 0x1c, 0x10, 0x41, 0x13, 0x4a, 0x62, + 0x74, 0xe2, 0x18, 0x6e, 0x27, 0xa8, 0x20, 0xf0, 0x09, 0x80, 0x19, 0x65, 0x2a, 0xc4, 0x63, 0x95, + 0x72, 0x41, 0x3f, 0x62, 0xbd, 0x61, 0x47, 0x6f, 0x78, 0x2f, 0x67, 0x2e, 0xab, 0xc4, 0xd9, 0xb7, + 0x3a, 0xb0, 0x4a, 0x57, 0x07, 0xdd, 0x9b, 0xe4, 0x6b, 0x7f, 0xa7, 0xaf, 0x8f, 0xf7, 0xf6, 0x75, + 0xd0, 0x3d, 0xaa, 0xb3, 0x9f, 0x1a, 0xe0, 0x76, 0xe9, 0x6c, 0xaf, 0xff, 0xe6, 0xdd, 0xd5, 0xd1, + 0xcd, 0x3d, 0x07, 0x77, 0xe5, 0x4c, 0x2a, 0x92, 0x85, 0x38, 0xca, 0x01, 0x22, 0x24, 0x6a, 0x39, + 0x0d, 0xd7, 0x0c, 0xee, 0x14, 0xf8, 0xe5, 0x06, 0xfe, 0xf5, 0x0e, 0xed, 0x03, 0xe6, 0xfb, 0xe4, + 0x80, 0xf9, 0xee, 0xec, 0x79, 0x05, 0xf3, 0x77, 0x57, 0x58, 0x6c, 0xe5, 0xfb, 0xe2, 0x1f, 0x4f, + 0xb0, 0xcb, 0xe0, 0xe6, 0x5e, 0x06, 0xff, 0xd7, 0xa0, 0x5f, 0x1c, 0x33, 0xe8, 0xcf, 0x7a, 0x5f, + 0x96, 0xb6, 0x31, 0x5f, 0xda, 0xc6, 0x62, 0x69, 0x1b, 0x9f, 0x57, 0x76, 0x6d, 0xbe, 0xb2, 0x6b, + 0xdf, 0x57, 0x76, 0xed, 0xbd, 0x3f, 0xa4, 0x2a, 0x1d, 0x5f, 0x7b, 0x11, 0xcf, 0xfc, 0xad, 0x61, + 0xfd, 0x62, 0x58, 0x7f, 0xea, 0x6f, 0xde, 0x7b, 0x35, 0x1b, 0x11, 0x79, 0xdd, 0xd6, 0x4f, 0xfd, + 0xd3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x9e, 0xe0, 0xa8, 0x5c, 0x06, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaV2) 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 *NFTSchemaV2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaINPUT) 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 *NFTSchemaINPUT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x4a + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaV1) 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 *NFTSchemaV1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaV2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaV1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaV2) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaV2: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaV2: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainDataV2{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaINPUT) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaINPUT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaV1) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaV1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaV1: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainDataV1{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/on_chain_data.pb.go b/x/nftmngr/migrations/v2/types/on_chain_data.pb.go new file mode 100644 index 00000000..0c457644 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/on_chain_data.pb.go @@ -0,0 +1,1570 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/on_chain_data.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_35d167410338c830, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + NftAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,2,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,4,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_35d167410338c830, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +type OnChainDataV2 struct { + TokenAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,3,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainDataV2) Reset() { *m = OnChainDataV2{} } +func (m *OnChainDataV2) String() string { return proto.CompactTextString(m) } +func (*OnChainDataV2) ProtoMessage() {} +func (*OnChainDataV2) Descriptor() ([]byte, []int) { + return fileDescriptor_35d167410338c830, []int{2} +} +func (m *OnChainDataV2) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainDataV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainDataV2.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 *OnChainDataV2) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainDataV2.Merge(m, src) +} +func (m *OnChainDataV2) XXX_Size() int { + return m.Size() +} +func (m *OnChainDataV2) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainDataV2.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainDataV2 proto.InternalMessageInfo + +func (m *OnChainDataV2) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainDataV2) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainDataV2) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +type OnChainDataV1 struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,7,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainDataV1) Reset() { *m = OnChainDataV1{} } +func (m *OnChainDataV1) String() string { return proto.CompactTextString(m) } +func (*OnChainDataV1) ProtoMessage() {} +func (*OnChainDataV1) Descriptor() ([]byte, []int) { + return fileDescriptor_35d167410338c830, []int{3} +} +func (m *OnChainDataV1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainDataV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainDataV1.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 *OnChainDataV1) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainDataV1.Merge(m, src) +} +func (m *OnChainDataV1) XXX_Size() int { + return m.Size() +} +func (m *OnChainDataV1) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainDataV1.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainDataV1 proto.InternalMessageInfo + +func (m *OnChainDataV1) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainDataV1) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainDataV1) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainDataV1) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainDataV1) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainDataV1) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainDataV1) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + // proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.FlagStatus") + // proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.OnChainData") + // proto.RegisterType((*OnChainDataV2)(nil), "thesixnetwork.sixnft.nftmngr.OnChainDataV2") + // proto.RegisterType((*OnChainDataV1)(nil), "thesixnetwork.sixnft.nftmngr.OnChainDataV1") +} + +func init() { proto.RegisterFile("nftmngr/on_chain_data.proto", fileDescriptor_35d167410338c830) } + +var fileDescriptor_35d167410338c830 = []byte{ + // 465 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6b, 0x13, 0x41, + 0x18, 0xcd, 0x64, 0x6b, 0x5a, 0x27, 0x49, 0x2b, 0x43, 0x0f, 0x4b, 0x95, 0x35, 0x8d, 0x82, 0x7b, + 0xda, 0xa5, 0xf5, 0x2e, 0xfe, 0x28, 0x82, 0x97, 0x2a, 0x53, 0x28, 0x22, 0xc2, 0x32, 0xd9, 0xcc, + 0x26, 0x43, 0xb3, 0xb3, 0x75, 0xe6, 0xdb, 0x5a, 0xff, 0x0b, 0xff, 0x2b, 0x3d, 0xf6, 0xe8, 0x51, + 0x92, 0x3f, 0xc0, 0xbb, 0x27, 0xc9, 0xcc, 0x6e, 0xba, 0x0b, 0x25, 0x42, 0x42, 0x6e, 0xc3, 0xe3, + 0xbd, 0x37, 0xbc, 0xf7, 0x7d, 0x7c, 0xf8, 0xa1, 0x4c, 0x20, 0x95, 0x23, 0x15, 0x66, 0x32, 0x8a, + 0xc7, 0x4c, 0xc8, 0x68, 0xc8, 0x80, 0x05, 0x97, 0x2a, 0x83, 0x8c, 0x3c, 0x82, 0x31, 0xd7, 0xe2, + 0x5a, 0x72, 0xf8, 0x9a, 0xa9, 0x8b, 0x60, 0xfe, 0x4c, 0x20, 0x28, 0x14, 0x07, 0xfd, 0x52, 0xca, + 0x00, 0x94, 0x18, 0xe4, 0xc0, 0xa3, 0x21, 0x4f, 0x84, 0x14, 0x20, 0x32, 0x69, 0x1d, 0x0e, 0xf6, + 0x17, 0x9c, 0xb8, 0x82, 0x1e, 0x96, 0xa8, 0x4c, 0x20, 0xba, 0x55, 0x5f, 0xb1, 0x49, 0xce, 0x2d, + 0xa5, 0xff, 0x01, 0xe3, 0xb7, 0x13, 0x36, 0x3a, 0x03, 0x06, 0xb9, 0x26, 0x8f, 0x71, 0x5b, 0x9b, + 0x57, 0x24, 0x59, 0xca, 0x5d, 0xd4, 0x43, 0xfe, 0x7d, 0x8a, 0x2d, 0x74, 0xca, 0x52, 0x4e, 0x0e, + 0x71, 0xa7, 0x20, 0x18, 0x13, 0xb7, 0xd9, 0x43, 0xfe, 0x0e, 0x2d, 0x44, 0xe7, 0x73, 0xa8, 0xff, + 0xa3, 0x89, 0xdb, 0xef, 0xe5, 0x9b, 0x79, 0xc6, 0x13, 0x06, 0x8c, 0x7c, 0xc4, 0xbb, 0xb5, 0xef, + 0xb5, 0x8b, 0x7a, 0x8e, 0xdf, 0x3e, 0x3e, 0x0a, 0x96, 0xa5, 0x0e, 0x5e, 0x95, 0xfc, 0x93, 0x45, + 0x56, 0xda, 0x95, 0x09, 0x2c, 0x70, 0x4d, 0x3e, 0xe3, 0x07, 0x90, 0x5d, 0x70, 0x59, 0xf5, 0x6e, + 0xae, 0xea, 0xbd, 0x67, 0xac, 0x2a, 0xee, 0x2f, 0xf0, 0xb6, 0x2d, 0x53, 0xbb, 0x8e, 0x31, 0x7d, + 0xfa, 0x1f, 0x53, 0x43, 0xa6, 0xa5, 0x88, 0xbc, 0xc4, 0x2d, 0x5b, 0x8b, 0xbb, 0x65, 0xe4, 0xfe, + 0x72, 0xf9, 0xed, 0x14, 0x68, 0xa1, 0xeb, 0xff, 0x41, 0xb8, 0x5b, 0x69, 0xf2, 0xfc, 0xf8, 0xce, + 0xc4, 0x68, 0x13, 0x89, 0x9b, 0xeb, 0x25, 0x76, 0x56, 0x4c, 0xfc, 0xd7, 0xa9, 0x27, 0x3e, 0x22, + 0xcf, 0xf0, 0x9e, 0xe2, 0x57, 0x9c, 0x4d, 0x22, 0xc5, 0xbf, 0xe4, 0x42, 0xf1, 0xa1, 0xd9, 0xca, + 0x1d, 0xba, 0x6b, 0x61, 0x5a, 0xa0, 0xe4, 0x09, 0xee, 0x16, 0x44, 0xcd, 0x63, 0xc5, 0xc1, 0xac, + 0x66, 0x87, 0x76, 0x2c, 0x78, 0x66, 0xb0, 0x3b, 0x76, 0xd1, 0xd9, 0xe0, 0x2e, 0x6e, 0x6d, 0x62, + 0x32, 0xf7, 0xd6, 0x9b, 0x4c, 0x6b, 0xb5, 0xc9, 0x10, 0x86, 0xf7, 0xeb, 0xcd, 0x15, 0x07, 0x60, + 0xdb, 0xf8, 0x85, 0xcb, 0xfd, 0x4e, 0x2b, 0x55, 0x99, 0x23, 0x41, 0x49, 0xad, 0x3d, 0x83, 0xbd, + 0x7e, 0xf7, 0x73, 0xea, 0xa1, 0x9b, 0xa9, 0x87, 0x7e, 0x4f, 0x3d, 0xf4, 0x7d, 0xe6, 0x35, 0x6e, + 0x66, 0x5e, 0xe3, 0xd7, 0xcc, 0x6b, 0x7c, 0x0a, 0x47, 0x02, 0xc6, 0xf9, 0x20, 0x88, 0xb3, 0x34, + 0xac, 0x7d, 0x14, 0xda, 0x8f, 0xc2, 0xeb, 0xb0, 0xbc, 0x74, 0xf0, 0xed, 0x92, 0xeb, 0x41, 0xcb, + 0x1c, 0xb7, 0xe7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x77, 0x40, 0x4d, 0x76, 0x05, 0x00, + 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OnChainDataV2) 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 *OnChainDataV2) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainDataV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OnChainDataV1) 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 *OnChainDataV1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainDataV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func (m *OnChainDataV2) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func (m *OnChainDataV1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainDataV2) 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 ErrIntOverflowOnChainData + } + 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: OnChainDataV2: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainDataV2: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainDataV1) 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 ErrIntOverflowOnChainData + } + 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: OnChainDataV1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainDataV1: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/opensea_display_option.pb.go b/x/nftmngr/migrations/v2/types/opensea_display_option.pb.go new file mode 100644 index 00000000..32e6cb50 --- /dev/null +++ b/x/nftmngr/migrations/v2/types/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/opensea_display_option.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_0a72f14b2fd8c4d9, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + // proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/opensea_display_option.proto", fileDescriptor_0a72f14b2fd8c4d9) +} + +var fileDescriptor_0a72f14b2fd8c4d9 = []byte{ + // 226 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, + 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, + 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0x95, 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0xba, 0x5d, 0x20, + 0x9a, 0xfd, 0xc1, 0x7a, 0x85, 0x14, 0xb9, 0x78, 0x60, 0xa6, 0x95, 0x54, 0x16, 0xa4, 0x4a, 0x30, + 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x71, 0x43, 0xc5, 0x42, 0x2a, 0x0b, 0x52, 0x85, 0x64, 0xb9, 0xb8, + 0x4a, 0x8a, 0x12, 0x33, 0x4b, 0x20, 0x0a, 0x98, 0xc0, 0x0a, 0x38, 0xc1, 0x22, 0x60, 0x69, 0x69, + 0x2e, 0xce, 0xdc, 0xc4, 0x8a, 0xf8, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x66, 0x05, 0x46, 0x0d, + 0x96, 0x20, 0x8e, 0xdc, 0xc4, 0x8a, 0x30, 0x10, 0xdf, 0xc9, 0xf3, 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, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, + 0xf5, 0x51, 0x5c, 0xae, 0x0f, 0x71, 0xb9, 0x7e, 0x85, 0x3e, 0xcc, 0xdb, 0x20, 0x7b, 0x8b, 0x93, + 0xd8, 0xc0, 0xde, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x16, 0xc4, 0xe3, 0x7a, 0x0e, 0x01, + 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/origin_data.pb.go b/x/nftmngr/migrations/v2/types/origin_data.pb.go new file mode 100644 index 00000000..b33eda9c --- /dev/null +++ b/x/nftmngr/migrations/v2/types/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/origin_data.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_02bc4c05ee0c6896, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_02bc4c05ee0c6896, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_02bc4c05ee0c6896, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + // proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + // proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + // proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/origin_data.proto", fileDescriptor_02bc4c05ee0c6896) } + +var fileDescriptor_02bc4c05ee0c6896 = []byte{ + // 433 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0x20, 0x64, 0x85, 0x1e, 0x20, 0x54, + 0xc8, 0xe6, 0x43, 0xe2, 0x9e, 0xb4, 0x05, 0x2c, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x80, 0xb5, 0x8e, + 0x37, 0xc9, 0x08, 0xbc, 0x5b, 0x8d, 0xc7, 0xa5, 0xfc, 0x0b, 0x7e, 0x16, 0xc7, 0x1e, 0x39, 0xa2, + 0xe4, 0x8f, 0xa0, 0xac, 0x3f, 0x10, 0x14, 0x55, 0xdc, 0x56, 0x6f, 0xde, 0x7b, 0xfb, 0xde, 0x68, + 0xe0, 0x8e, 0x9e, 0x72, 0xa6, 0x67, 0x14, 0x18, 0xc2, 0x19, 0xea, 0x38, 0x95, 0x2c, 0xfd, 0x13, + 0x32, 0x6c, 0xc4, 0x3d, 0x9e, 0xab, 0x1c, 0xcf, 0xb4, 0xe2, 0x2f, 0x86, 0x3e, 0xf9, 0xab, 0xe7, + 0x94, 0xfd, 0x8a, 0x7f, 0x77, 0xaf, 0x16, 0x4a, 0x66, 0xc2, 0xa4, 0x60, 0x15, 0xa7, 0x6a, 0x8a, + 0x1a, 0x19, 0x8d, 0x2e, 0x1d, 0xf6, 0x16, 0x6d, 0x80, 0xb1, 0xf5, 0x3d, 0x94, 0x2c, 0xc5, 0x7d, + 0xb8, 0x5e, 0xfd, 0x32, 0x99, 0x4b, 0xd4, 0xae, 0xd3, 0x73, 0xfa, 0x1b, 0xd1, 0x66, 0x89, 0x1d, + 0xac, 0x20, 0xf1, 0x02, 0x6e, 0xd7, 0x14, 0xa3, 0x99, 0xe4, 0x84, 0x63, 0x99, 0xa6, 0xa4, 0xf2, + 0xdc, 0xbd, 0x62, 0xd9, 0xb7, 0x2a, 0x76, 0x35, 0x1d, 0x94, 0x43, 0xf1, 0x00, 0xb6, 0x2b, 0x5d, + 0x22, 0x73, 0x15, 0x17, 0x84, 0x6e, 0xdb, 0xf2, 0x6f, 0x94, 0xf0, 0x50, 0xe6, 0xea, 0x98, 0x50, + 0xa4, 0xb0, 0xfb, 0x3b, 0xaf, 0x39, 0x55, 0x44, 0x98, 0xa2, 0x9e, 0xb9, 0x6b, 0x3d, 0xa7, 0xbf, + 0xf5, 0xec, 0xa9, 0x7f, 0x59, 0x65, 0x7f, 0x50, 0x2b, 0xc7, 0x8d, 0x30, 0xda, 0x91, 0x17, 0x41, + 0xf1, 0x10, 0xb6, 0x33, 0xc5, 0x72, 0xb5, 0xcb, 0x78, 0x6a, 0x28, 0x93, 0xec, 0xae, 0xdb, 0x34, + 0x5b, 0x35, 0xfc, 0xd2, 0xa2, 0xe2, 0x23, 0xdc, 0xac, 0x62, 0x37, 0x36, 0xb9, 0xdb, 0xe9, 0xb5, + 0xfb, 0x9b, 0xff, 0x9d, 0xe5, 0xb0, 0x59, 0x7a, 0xd4, 0x2d, 0xbd, 0x9a, 0x51, 0x2e, 0x12, 0xd8, + 0x2d, 0x08, 0x63, 0x52, 0x4c, 0xa8, 0x4e, 0xe5, 0xe7, 0x38, 0x53, 0x3c, 0x37, 0xa9, 0x7b, 0xd5, + 0xd6, 0x7d, 0x72, 0xf9, 0x17, 0xc7, 0x51, 0x18, 0xd5, 0xc2, 0xb7, 0x56, 0x17, 0x89, 0x82, 0xf0, + 0x2f, 0x6c, 0xff, 0x31, 0xec, 0xfc, 0x63, 0x31, 0x02, 0xa0, 0x33, 0x8e, 0xc2, 0x57, 0xe1, 0xa8, + 0xdb, 0x12, 0x1b, 0xb0, 0x7e, 0xf0, 0x7a, 0x10, 0x8e, 0xba, 0xce, 0xfe, 0x23, 0x10, 0x17, 0x7d, + 0xc5, 0x35, 0x58, 0x1b, 0x0e, 0xde, 0x1d, 0x95, 0xd4, 0xf7, 0xe3, 0x37, 0x47, 0xa3, 0xae, 0x33, + 0x0c, 0xbf, 0x2f, 0x3c, 0xe7, 0x7c, 0xe1, 0x39, 0x3f, 0x17, 0x9e, 0xf3, 0x6d, 0xe9, 0xb5, 0xce, + 0x97, 0x5e, 0xeb, 0xc7, 0xd2, 0x6b, 0x7d, 0x08, 0x66, 0xc8, 0xf3, 0x22, 0xf1, 0x27, 0x26, 0x0b, + 0xfe, 0xa8, 0x10, 0x94, 0x15, 0x82, 0xb3, 0xa0, 0xbe, 0x4e, 0xfe, 0x7a, 0xa2, 0xf2, 0xa4, 0x63, + 0xef, 0xf1, 0xf9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x17, 0xaa, 0x9d, 0xee, 0x02, 0x00, + 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/migrations/v2/types/schema_attribute.pb.go b/x/nftmngr/migrations/v2/types/schema_attribute.pb.go new file mode 100644 index 00000000..88c48b1b --- /dev/null +++ b/x/nftmngr/migrations/v2/types/schema_attribute.pb.go @@ -0,0 +1,1648 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/schema_attribute.proto + +package types + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type SchemaAttribute struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,4,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } +func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } +func (*SchemaAttribute) ProtoMessage() {} +func (*SchemaAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_8228233d6832e497, []int{0} +} +func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttribute.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 *SchemaAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttribute.Merge(m, src) +} +func (m *SchemaAttribute) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttribute proto.InternalMessageInfo + +func (m *SchemaAttribute) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttribute) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttribute) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttribute) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttribute) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeV1 struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,5,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,6,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + HiddenOveride bool `protobuf:"varint,8,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,9,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttributeV1) Reset() { *m = SchemaAttributeV1{} } +func (m *SchemaAttributeV1) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeV1) ProtoMessage() {} +func (*SchemaAttributeV1) Descriptor() ([]byte, []int) { + return fileDescriptor_8228233d6832e497, []int{1} +} +func (m *SchemaAttributeV1) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeV1.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 *SchemaAttributeV1) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeV1.Merge(m, src) +} +func (m *SchemaAttributeV1) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeV1) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeV1.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeV1 proto.InternalMessageInfo + +func (m *SchemaAttributeV1) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttributeV1) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttributeV1) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttributeV1) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *SchemaAttributeV1) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *SchemaAttributeV1) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *SchemaAttributeV1) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttributeV1) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *SchemaAttributeV1) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *SchemaAttributeV1) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeValue struct { + // Types that are valid to be assigned to Value: + // *SchemaAttributeValue_NumberAttributeValue + // *SchemaAttributeValue_StringAttributeValue + // *SchemaAttributeValue_BooleanAttributeValue + // *SchemaAttributeValue_FloatAttributeValue + Value isSchemaAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } +func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeValue) ProtoMessage() {} +func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_8228233d6832e497, []int{2} +} +func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeValue.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 *SchemaAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeValue.Merge(m, src) +} +func (m *SchemaAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeValue proto.InternalMessageInfo + +type isSchemaAttributeValue_Value interface { + isSchemaAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type SchemaAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type SchemaAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type SchemaAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type SchemaAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*SchemaAttributeValue_NumberAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_StringAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_BooleanAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_FloatAttributeValue) isSchemaAttributeValue_Value() {} + +func (m *SchemaAttributeValue) GetValue() isSchemaAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SchemaAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SchemaAttributeValue_NumberAttributeValue)(nil), + (*SchemaAttributeValue_StringAttributeValue)(nil), + (*SchemaAttributeValue_BooleanAttributeValue)(nil), + (*SchemaAttributeValue_FloatAttributeValue)(nil), + } +} + +func init() { + // proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttribute") + // proto.RegisterType((*SchemaAttributeV1)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttributeV1") + // proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttributeValue") +} + +func init() { proto.RegisterFile("nftmngr/schema_attribute.proto", fileDescriptor_8228233d6832e497) } + +var fileDescriptor_8228233d6832e497 = []byte{ + // 549 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xdf, 0x6e, 0xd3, 0x3e, + 0x14, 0x6e, 0xd6, 0x6d, 0x6d, 0xfd, 0xfb, 0x75, 0x68, 0xee, 0x0a, 0x51, 0x99, 0xa2, 0x51, 0x81, + 0x34, 0x09, 0x29, 0xd1, 0xba, 0x27, 0xa0, 0xa0, 0x09, 0x2e, 0x60, 0x52, 0x98, 0x40, 0xe2, 0x26, + 0x72, 0xea, 0x93, 0xd6, 0x2c, 0xb1, 0x83, 0xe3, 0x8c, 0xf5, 0x2d, 0x78, 0x2c, 0xee, 0xd8, 0xe5, + 0x24, 0x6e, 0x50, 0xfb, 0x22, 0x28, 0x4e, 0x42, 0xd7, 0xa6, 0x2a, 0x5c, 0xc0, 0x9d, 0xfd, 0x7d, + 0xe7, 0x3b, 0xdf, 0xf9, 0x23, 0x1b, 0x59, 0x3c, 0x50, 0x11, 0x1f, 0x4b, 0x27, 0x19, 0x4d, 0x20, + 0x22, 0x1e, 0x51, 0x4a, 0x32, 0x3f, 0x55, 0x60, 0xc7, 0x52, 0x28, 0x81, 0x0f, 0xd5, 0x04, 0x12, + 0x76, 0xcd, 0x41, 0x7d, 0x16, 0xf2, 0xd2, 0xce, 0x8e, 0x81, 0xb2, 0x0b, 0x51, 0xef, 0xb0, 0x54, + 0x53, 0x96, 0xc4, 0x21, 0x99, 0x7a, 0x22, 0x56, 0x4c, 0xf0, 0x5c, 0xdb, 0x7b, 0x54, 0xb2, 0x3c, + 0x50, 0x8b, 0xc4, 0xde, 0x15, 0x09, 0xd3, 0x22, 0x7d, 0xaf, 0x5f, 0x86, 0x2c, 0x68, 0x0a, 0x01, + 0xe3, 0x6c, 0x91, 0xa6, 0xff, 0xdd, 0x40, 0xf7, 0xde, 0xea, 0xea, 0x9e, 0x95, 0x41, 0xf8, 0x31, + 0x6a, 0xf3, 0x40, 0xe5, 0xe8, 0x73, 0x41, 0xc1, 0x34, 0x8e, 0x8c, 0xe3, 0x96, 0xbb, 0x0c, 0x62, + 0x8c, 0xb6, 0x39, 0x89, 0xc0, 0xdc, 0xd2, 0xa4, 0x3e, 0xe3, 0x87, 0xa8, 0x45, 0x89, 0x22, 0x9e, + 0x9a, 0xc6, 0x60, 0xd6, 0x35, 0xd1, 0xcc, 0x80, 0x8b, 0x69, 0x0c, 0xf8, 0x3d, 0x6a, 0x8f, 0x52, + 0x29, 0x81, 0xab, 0xbc, 0x4a, 0x73, 0xfb, 0xc8, 0x38, 0xfe, 0x6f, 0x30, 0xb0, 0x37, 0x4d, 0xc1, + 0x5e, 0x29, 0xee, 0x5d, 0xa6, 0x74, 0xff, 0x2f, 0x12, 0xe9, 0x1b, 0x36, 0x51, 0x63, 0x24, 0x81, + 0x28, 0x21, 0xcd, 0x1d, 0xed, 0x59, 0x5e, 0xfb, 0xb7, 0x75, 0xb4, 0xbf, 0x9a, 0xe0, 0xe4, 0x5f, + 0xf5, 0xd7, 0x43, 0x4d, 0x09, 0x9f, 0x52, 0x26, 0x81, 0xea, 0xd6, 0x9a, 0xee, 0xaf, 0x3b, 0xb6, + 0x51, 0xa7, 0xdc, 0xa2, 0xee, 0xdd, 0x0b, 0x18, 0x84, 0xb4, 0x28, 0x77, 0xbf, 0xa0, 0x74, 0x37, + 0x67, 0x19, 0x81, 0x5d, 0xb4, 0xb7, 0xbc, 0x75, 0x73, 0x57, 0x0f, 0xeb, 0xe9, 0xe6, 0x61, 0xbd, + 0xc8, 0x35, 0xe7, 0x5a, 0xe2, 0xb6, 0xe9, 0xdd, 0x6b, 0x75, 0xfe, 0x8d, 0xbf, 0x34, 0xff, 0x27, + 0x68, 0x6f, 0xc2, 0x28, 0x05, 0xee, 0x89, 0x2b, 0x90, 0x8c, 0x82, 0xd9, 0xd4, 0xed, 0xb7, 0x73, + 0xf4, 0x3c, 0x07, 0xf1, 0x00, 0x75, 0x8b, 0x30, 0x25, 0xbc, 0x88, 0xc8, 0x4b, 0x50, 0x71, 0x48, + 0x46, 0x60, 0xb6, 0x74, 0x74, 0x27, 0x27, 0x2f, 0xc4, 0xeb, 0x05, 0x75, 0x77, 0xb5, 0x68, 0x79, + 0xb5, 0xdf, 0xea, 0xe8, 0x60, 0x5d, 0x6d, 0xf8, 0x23, 0xba, 0xcf, 0xd3, 0xc8, 0x07, 0xb9, 0xfa, + 0x2a, 0xf4, 0x9a, 0x7f, 0xdb, 0xef, 0x1b, 0xad, 0x5d, 0xce, 0xf9, 0xb2, 0xe6, 0x1e, 0xf0, 0x35, + 0x78, 0xe6, 0x95, 0x28, 0xc9, 0xf8, 0xb8, 0xe2, 0xb5, 0xf5, 0x47, 0xb3, 0xd5, 0xda, 0xaa, 0x57, + 0xb2, 0x06, 0xc7, 0x11, 0x7a, 0xe0, 0x0b, 0x11, 0x02, 0xe1, 0x15, 0xb3, 0xba, 0x36, 0x3b, 0xdd, + 0x6c, 0x36, 0xcc, 0xc5, 0x15, 0xb7, 0xae, 0xbf, 0x8e, 0xc0, 0x63, 0xd4, 0x0d, 0x42, 0x41, 0x2a, + 0x7f, 0x4b, 0xf1, 0x6a, 0x4f, 0x36, 0x9b, 0x9d, 0x65, 0xd2, 0x8a, 0x55, 0x27, 0xa8, 0xc2, 0xc3, + 0x06, 0xda, 0xd1, 0x89, 0x87, 0xaf, 0xbe, 0xce, 0x2c, 0xe3, 0x66, 0x66, 0x19, 0x3f, 0x66, 0x96, + 0xf1, 0x65, 0x6e, 0xd5, 0x6e, 0xe6, 0x56, 0xed, 0x76, 0x6e, 0xd5, 0x3e, 0x38, 0x63, 0xa6, 0x26, + 0xa9, 0x6f, 0x8f, 0x44, 0xe4, 0x2c, 0xd9, 0x3a, 0xb9, 0xad, 0x73, 0xed, 0x94, 0x5f, 0x5d, 0xf6, + 0x32, 0x13, 0x7f, 0x57, 0x7f, 0x6e, 0xa7, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x70, 0xeb, 0xff, + 0xab, 0x81, 0x05, 0x00, 0x00, +} + +func (m *SchemaAttribute) 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 *SchemaAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x2a + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeV1) 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 *SchemaAttributeV1) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x52 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue) 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 *SchemaAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func encodeVarintSchemaAttribute(dAtA []byte, offset int, v uint64) int { + offset -= sovSchemaAttribute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SchemaAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeV1) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *SchemaAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func sovSchemaAttribute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSchemaAttribute(x uint64) (n int) { + return sovSchemaAttribute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SchemaAttribute) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeV1) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeV1: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeV1: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeValue) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSchemaAttribute(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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrInvalidLengthSchemaAttribute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchemaAttribute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchemaAttribute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSchemaAttribute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchemaAttribute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchemaAttribute = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/module.go b/x/nftmngr/module.go index d377e2b0..4b6c2e09 100644 --- a/x/nftmngr/module.go +++ b/x/nftmngr/module.go @@ -140,6 +140,16 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterQueryServer(cfg.QueryServer(), am.keeper) + + m := keeper.NewMigrator(am.keeper) + err := cfg.RegisterMigration(types.ModuleName, 2, m.Migrate2toV3) + if err != nil { + panic(err) + } + err = cfg.RegisterMigration(types.ModuleName, 3, m.NoOpStoreMigrate) + if err != nil { + panic(err) + } } // RegisterInvariants registers the capability module's invariants. @@ -164,7 +174,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion implements ConsensusVersion. -func (AppModule) ConsensusVersion() uint64 { return 2 } +func (AppModule) ConsensusVersion() uint64 { return 3 } // BeginBlock executes all ABCI BeginBlock logic respective to the capability module. func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) { diff --git a/x/nftmngr/module_simulation.go b/x/nftmngr/module_simulation.go index 28c95adf..db7015a3 100644 --- a/x/nftmngr/module_simulation.go +++ b/x/nftmngr/module_simulation.go @@ -44,9 +44,9 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgToggleAction int = 100 - opWeightMsgSetSchemaOwner = "op_weight_msg_set_schema_owner" + _ = "op_weight_msg_set_schema_owner" // TODO: Determine the simulation weight value - defaultWeightMsgSetSchemaOwner int = 100 + _ int = 100 // this line is used by starport scaffolding # simapp/module/const ) diff --git a/x/nftmngr/simulation/create_metadata.go b/x/nftmngr/simulation/create_metadata.go index e0ce3031..ccdee290 100644 --- a/x/nftmngr/simulation/create_metadata.go +++ b/x/nftmngr/simulation/create_metadata.go @@ -1,8 +1,6 @@ package simulation import ( - fmt "fmt" - "github.com/thesixnetwork/sixnft/x/nftmngr/keeper" "github.com/thesixnetwork/sixnft/x/nftmngr/types" ) @@ -32,7 +30,7 @@ func SimulateCreateMetadata(schemaInput types.NFTSchemaINPUT, metaInput types.Nf _, err := keeper.ValidateNFTData(&metaInput, &_schema) if err != nil { - fmt.Println(err) + panic(err) } // Append Attribute with default value to NFT Data if not exist in NFT Data yet diff --git a/x/nftmngr/simulation/nft_metadata_test.json b/x/nftmngr/simulation/nft_metadata_test.json new file mode 100644 index 00000000..72ba6b88 --- /dev/null +++ b/x/nftmngr/simulation/nft_metadata_test.json @@ -0,0 +1,84 @@ +{ + "nft_schema_code": "smitivej.divine_elite", + "token_id": "1", + "token_owner": "", + "owner_address_type": "ORIGIN_ADDRESS", + "origin_image": "https://picsum.photos/200/300", + "onchain_image": "", + "token_uri": "", + "origin_attributes": [], + "onchain_attributes": [ + { + "name": "tier", + "string_attribute_value": { + "value": "10" + } + }, + { + "name": "start_date", + "string_attribute_value": { + "value": "2024-09-01T07:00:01Z" + } + }, + { + "name": "expire_date", + "string_attribute_value": { + "value": "2024-09-01T07:00:01Z" + } + }, + { + "name": "service_3", + "number_attribute_value": { + "value": 9999 + } + }, + { + "name": "service_4", + "number_attribute_value": { + "value": 10 + } + }, + { + "name": "service_5", + "number_attribute_value": { + "value": 10 + } + }, + { + "name": "service_6", + "number_attribute_value": { + "value": 10 + } + }, + { + "name": "service_7", + "number_attribute_value": { + "value": 10 + } + }, + { + "name": "service_8", + "number_attribute_value": { + "value": 5 + } + }, + { + "name": "service_9", + "number_attribute_value": { + "value": 3 + } + }, + { + "name": "service_10", + "number_attribute_value": { + "value": 3 + } + }, + { + "name": "service_11", + "number_attribute_value": { + "value": 3 + } + } + ] +} diff --git a/x/nftmngr/simulation/nft_schema_test.json b/x/nftmngr/simulation/nft_schema_test.json new file mode 100644 index 00000000..cfb56671 --- /dev/null +++ b/x/nftmngr/simulation/nft_schema_test.json @@ -0,0 +1,463 @@ +{ + "code": "smitivej.divine_elite", + "name": "Divine Elite", + "owner": "0xNFTOWNER", + "origin_data": { + "origin_base_uri": "", + "uri_retrieval_method": "TOKEN", + "origin_chain": "SIXNET", + "origin_contract_address": "", + "attribute_overriding": "CHAIN", + "metadata_format": "opensea", + "origin_attributes": [] + }, + "onchain_data": { + "nft_attributes": [], + "token_attributes": [ + { + "name": "tier", + "default_mint_value": { + "string_attribute_value": { + "value": "" + } + }, + "data_type": "string", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Tier" + } + }, + "hidden_overide": false, + "hidden_to_marketplace": false + }, + { + "name": "start_date", + "default_mint_value": { + "string_attribute_value": { + "value": "" + } + }, + "data_type": "string", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Start Date" + } + } + }, + { + "name": "expire_date", + "default_mint_value": { + "string_attribute_value": { + "value": "" + } + }, + "data_type": "string", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Expire Date" + } + } + }, + { + "name": "service_3", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Member Privileges and Services" + } + } + }, + { + "name": "service_4", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Vaccine Flu" + } + } + }, + { + "name": "service_5", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Complimentary SEI Voucher" + } + } + }, + { + "name": "service_6", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "30% Room Discount" + } + } + }, + { + "name": "service_7", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Cash Voucher" + } + } + }, + { + "name": "service_8", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "Bone Densitometry Voucher" + } + } + }, + { + "name": "service_9", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "EST Voucher" + } + } + }, + { + "name": "service_10", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "CT Scan Voucher" + } + } + }, + { + "name": "service_11", + "default_mint_value": { + "number_attribute_value": { + "value": 0 + } + }, + "data_type": "number", + "required": true, + "display_value_field": "value", + "display_option": { + "opensea": { + "trait_type": "MRI Voucher" + } + } + } + ], + "actions": [ + { + "name": "transfer_service", + "desc": "Transfer Service", + "disable": false, + "params": [ + { + "name": "service_name", + "desc": "Service", + "data_type": "string", + "required": true, + "default_value": "" + }, + { + "name": "amount", + "desc": "Amount of service to transfer", + "data_type": "number", + "required": true, + "default_value": "1" + }, + { + "name": "token_id", + "desc": "Token Id Destination", + "data_type": "string", + "required": true, + "default_value": "" + } + ], + "when": "( params['amount'].GetNumber() > 0 ) && ( params['service_name'].GetString() !='service_0' || params['service_name'].GetString() !='service_1' || params['service_name'].GetString() !='service_2' || params['service_name'].GetString() !='service_3' || params['service_name'].GetString() !='service_4' || params['service_name'].GetString() !='service_5' || params['service_name'].GetString() !='service_6') && ( meta.GetNumber(params['service_name'].GetString()) > 0 )", + "then": [ + "meta.TransferNumber(params['service_name'].GetString(), params['token_id'].GetString(), params['amount'].GetNumber())" + ] + }, + { + "name": "use_service", + "desc": "Use Given Service", + "params": [ + { + "name": "service_name", + "desc": "Service Name", + "data_type": "string", + "required": true, + "default_value": "" + } + ], + "when": "meta.GetNumber(params['service_name'].GetString()) > 0", + "then": [ + "meta.SetNumber(params['service_name'].GetString(), meta.GetNumber(params['service_name'].GetString()) - 1)" + ] + }, + { + "name": "airdrop", + "desc": "Use for airdrop some service", + "params": [ + { + "name": "service_name", + "desc": "Service", + "data_type": "string", + "required": true, + "default_value": "" + }, + { + "name": "amount", + "desc": "Amount of service to transfer", + "data_type": "number", + "required": true, + "default_value": "1" + } + ], + "when": "meta.GetNumber(params['service_name'].GetString()) >= 0", + "then": [ + "meta.SetNumber(params['service_name'].GetString(), meta.GetNumber(params['service_name'].GetString()) + params['amount'].GetNumber())" + ] + }, + { + "name": "revoke_service", + "desc": "Revoke used service", + "params": [ + { + "name": "service_name", + "desc": "Service Name", + "data_type": "string", + "required": true, + "default_value": "" + } + ], + "when": "meta.GetNumber(params['service_name'].GetString()) >= 0", + "then": [ + "meta.SetNumber(params['service_name'].GetString(), meta.GetNumber(params['service_name'].GetString()) + 1)" + ] + }, + { + "name": "burn_service", + "desc": "Use for burn some service", + "params": [ + { + "name": "service_name", + "desc": "Service", + "data_type": "string", + "required": true, + "default_value": "" + }, + { + "name": "amount", + "desc": "Amount of service to transfer", + "data_type": "number", + "required": true, + "default_value": "1" + } + ], + "when": "meta.GetNumber(params['service_name'].GetString()) >= 0", + "then": [ + "meta.SetNumber(params['service_name'].GetString(), meta.GetNumber(params['service_name'].GetString()) - params['amount'].GetNumber())" + ] + }, + { + "name": "extend_privilege", + "desc": "use for update tier of user", + "params": [ + { + "name": "group_one", + "desc": "amount of group on to be increase", + "data_type": "number", + "required": true, + "default_value": "" + }, + { + "name": "group_two", + "desc": "amount of group on to be increase", + "data_type": "number", + "required": true, + "default_value": "" + }, + { + "name": "group_three", + "desc": "amount of group on to be increase", + "data_type": "number", + "required": true, + "default_value": "" + + }, + { + "name": "expire_date", + "desc": "set expire date of Privileges", + "data_type": "string", + "required": true, + "default_value": "" + } + ], + "when": "true", + "then": [ + "group_one = params['group_one'].GetNumber()", + "group_two = params['group_two'].GetNumber()", + "group_three = params['group_three'].GetNumber()", + "meta.SetString('expire_date', params['expire_date'].GetString())", + "meta.SetNumber('service_3', 9999)", + "meta.SetNumber('service_4', meta.GetNumber('service_4') + group_one)", + "meta.SetNumber('service_5', meta.GetNumber('service_5') + group_one)", + "meta.SetNumber('service_6', meta.GetNumber('service_5') + group_one)", + "meta.SetNumber('service_7', meta.GetNumber('service_7') + group_one)", + "meta.SetNumber('service_8', meta.GetNumber('service_8') + group_two)", + "meta.SetNumber('service_9', meta.GetNumber('service_9') + group_three)", + "meta.SetNumber('service_10', meta.GetNumber('service_10') + group_three)", + "meta.SetNumber('service_11', meta.GetNumber('service_11') + group_three)" + ] + }, + { + "name": "update_tier_name", + "desc": "Use for update tier of user", + "params": [ + { + "name": "tier", + "desc": "tier name to upgrade", + "data_type": "string", + "required": true, + "default_value": "" + }, + { + "name": "start_date", + "desc": "set start date of privileges", + "data_type": "string", + "required": true, + "default_value": "" + } + ], + "when": "true", + "then": [ + "meta.SetString('tier', params['tier'].GetString())", + "meta.SetString('start_date', params['start_date'].GetString())" + ] + }, + { + "name": "set_service", + "desc": "To recover state of service", + "params": [ + { + "name": "service_name", + "desc": "Service", + "data_type": "string", + "required": true, + "default_value": "" + }, + { + "name": "amount", + "desc": "Amount of service to set", + "data_type": "number", + "required": true, + "default_value": "" + } + ], + "when": "true", + "then": [ + "toset = params['amount'].GetNumber() + 0", + "meta.SetNumber(params['service_name'].GetString(), toset)" + ] + } + ] + }, + "system_actioners": [ + "6x18rev37jrxpcxl462226dsj9cnswz9jkp0ja6a3", + "6x142pyczdwpaw3sxtslqnquusv6swf4kf2rkjzyy", + "6x18a0nwqlfavlvddqjmgx9f6alj6fr56gl59up0a", + "6x1lyu2xa9td93rk06evxsv43mac8d32u6q7z7ccz", + "6x1szlehjhj4044dhdfay4a5qn5vchtrywazqc99h", + "6x1e95h9rwg33920j6kyd9qcm38fnmqvcufs6ayvd", + "6x18j60dn65k9x5q52ce0h9xqtqwn4vc96qj8y6fm", + "6x1eau5sjxclcszh070ynre28rge6ykjazpxw8afp", + "6x1va9ur9zm5acqpf0dtz34ks43mdhqzxp5zn4zqg", + "6x16anqfxc5tguduesfh4wvess07htj54s0htj9d5", + "6x1wss4scf8tuafejtywwcfnrcv9425zmrclyjkfg", + "6x1uy4sv5c80nwg6cjsfs6wy57rwlsu5faf0l086e", + "6x1edpucf29ewd9futllktwhftvupt3fpqav4te27", + "6x1dqj9t7lthfjvwsddra0xgsxuxgwmr0ea2fx3fl", + "6x1ypw2x2ws08pmrnpu6xwmprnfn0q4urfvhktn9a", + "6x1hfj5xz3lflr26dd6savpmv5rj5xap5cm7aq7eq", + "6x13y6rmuyvq2cvnfvpr77slnqw84khsz07n8336k", + "6x1ga7h79e26cpzh52upedqeysfuyve7zd5mlt0nv", + "6x1es4v6wq99a05eqrvemjf9nrq3t3kcuvnpnnvsp", + "6x1prkzgh6n9tnphafxp7ylwwt6yqcfarhddfctpa", + "6x16qy39rpu675uafmavd3ervluegpgz2vady6vjq", + "6x1smygjpgl9j2mptvx4vqp79a6v55yu4ksd9g353", + "6x12v86prpcjckrhhf647p3tgh2ejrglm3zsvunqc", + "6x1tmc7qfy5kd0503ahz4mfjh47uqencxsyx23k63", + "6x17gragzfq95pz3amrnj8avex4rjrx3gmchqdysl", + "6x1nxnnsw4x44pcj72e33m44yf5yq905jpyvq7smc", + "6x1lzz0k5ghfm6n9h7jcu2dr238rgwgtn8zjmlz6t", + "6x1e8zglmrq7u3xs5u40majdpkayjvm7p7e5054cm", + "6x1ksxe8fn4u8ngtaakp4dgcp5qqn58xvut92ttgy", + "6x1x5xxynstd4hzf5dlw4h7hxh6zsfw6y0cy0aexn" + ], + "mint_authorization": "system" +} diff --git a/x/nftmngr/simulation/schema.json b/x/nftmngr/simulation/schema.json index 91dc80db..1a05147e 100644 --- a/x/nftmngr/simulation/schema.json +++ b/x/nftmngr/simulation/schema.json @@ -33,9 +33,7 @@ ] }, "onchain_data": { - "reveal_required": true, - "reveal_secret": "", - "schema_attributes": [ + "nft_attributes": [ { "name": "tumbler_stock", "default_mint_value": { diff --git a/x/nftmngr/types/action.pb.go b/x/nftmngr/types/action.pb.go index 73526f8c..13c9d072 100644 --- a/x/nftmngr/types/action.pb.go +++ b/x/nftmngr/types/action.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/action.proto +// source: nftmngr/latest/action.proto package types @@ -48,7 +48,7 @@ func (x AllowedActioner) String() string { } func (AllowedActioner) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4895bbc0baa3e92e, []int{0} + return fileDescriptor_4710e2c4dcc733cb, []int{0} } type ActionParams struct { @@ -63,7 +63,7 @@ func (m *ActionParams) Reset() { *m = ActionParams{} } func (m *ActionParams) String() string { return proto.CompactTextString(m) } func (*ActionParams) ProtoMessage() {} func (*ActionParams) Descriptor() ([]byte, []int) { - return fileDescriptor_4895bbc0baa3e92e, []int{0} + return fileDescriptor_4710e2c4dcc733cb, []int{0} } func (m *ActionParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -141,7 +141,7 @@ func (m *Action) Reset() { *m = Action{} } func (m *Action) String() string { return proto.CompactTextString(m) } func (*Action) ProtoMessage() {} func (*Action) Descriptor() ([]byte, []int) { - return fileDescriptor_4895bbc0baa3e92e, []int{1} + return fileDescriptor_4710e2c4dcc733cb, []int{1} } func (m *Action) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -221,41 +221,42 @@ func (m *Action) GetParams() []*ActionParams { func init() { proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.AllowedActioner", AllowedActioner_name, AllowedActioner_value) - proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.action_params") + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.ActionParams") proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.Action") } -func init() { proto.RegisterFile("nftmngr/action.proto", fileDescriptor_4895bbc0baa3e92e) } - -var fileDescriptor_4895bbc0baa3e92e = []byte{ - // 430 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0xe3, 0xb6, 0xcb, 0x52, 0xc3, 0x58, 0x65, 0xf5, 0x60, 0x95, 0x29, 0x44, 0xe3, 0x12, - 0x81, 0x48, 0xa4, 0xf1, 0x09, 0x32, 0xc8, 0xa1, 0x52, 0x58, 0xa5, 0xb4, 0x80, 0xc6, 0x81, 0xc8, - 0x6d, 0xdc, 0x34, 0x22, 0x89, 0x43, 0xe2, 0xd0, 0xed, 0x5b, 0x70, 0xe1, 0xc8, 0xf7, 0xd9, 0x71, - 0x47, 0x4e, 0x08, 0xb5, 0x5f, 0x04, 0xd9, 0xce, 0x90, 0xca, 0xa4, 0x6a, 0xb7, 0xc7, 0xbf, 0xf7, - 0x4f, 0x9e, 0xf7, 0xcd, 0x0b, 0x87, 0xc5, 0x92, 0xe7, 0x45, 0x52, 0xb9, 0x64, 0xc1, 0x53, 0x56, - 0x38, 0x65, 0xc5, 0x38, 0x43, 0x27, 0x7c, 0x45, 0xeb, 0xf4, 0xaa, 0xa0, 0x7c, 0xcd, 0xaa, 0x2f, - 0x8e, 0x90, 0x4b, 0xee, 0xb4, 0xa9, 0xa3, 0x61, 0xc2, 0x12, 0x26, 0x13, 0x5d, 0xa1, 0x54, 0xcd, - 0xe9, 0x0f, 0x00, 0x8f, 0x54, 0x93, 0xa8, 0x24, 0x15, 0xc9, 0x6b, 0x84, 0x60, 0xaf, 0x20, 0x39, - 0xc5, 0xc0, 0x02, 0x76, 0x3f, 0x94, 0x5a, 0xb0, 0x98, 0xd6, 0x0b, 0xdc, 0x51, 0x4c, 0x68, 0xf4, - 0x14, 0xf6, 0x63, 0xc2, 0x49, 0xc4, 0xaf, 0x4b, 0x8a, 0xbb, 0x32, 0x60, 0x08, 0x30, 0xbb, 0x2e, - 0x29, 0x1a, 0x41, 0xa3, 0xa2, 0x5f, 0x9b, 0xb4, 0xa2, 0x31, 0xee, 0x59, 0xc0, 0x36, 0xc2, 0x7f, - 0x6f, 0xf4, 0x1c, 0x1e, 0xc5, 0x74, 0x49, 0x9a, 0x8c, 0x47, 0xdf, 0x48, 0xd6, 0x50, 0x7c, 0x20, - 0x8b, 0x1f, 0xb7, 0xf0, 0x83, 0x60, 0xa7, 0x3f, 0x3b, 0x50, 0xf7, 0xa4, 0xaf, 0x07, 0x1b, 0xc2, - 0xf0, 0x30, 0x4e, 0x6b, 0x32, 0xcf, 0x94, 0x1d, 0x23, 0xbc, 0x7b, 0x8a, 0xec, 0xf5, 0x8a, 0x16, - 0xd2, 0x49, 0x3f, 0x94, 0x5a, 0x30, 0x2e, 0xd8, 0x81, 0xd5, 0x15, 0x4c, 0x68, 0xf4, 0x19, 0x0e, - 0x48, 0x96, 0xb1, 0x35, 0x8d, 0x23, 0xb5, 0x13, 0x5a, 0x61, 0xdd, 0x02, 0xf6, 0x93, 0xb3, 0x57, - 0xce, 0xbe, 0xdd, 0x3a, 0x9e, 0xaa, 0xf2, 0xda, 0xa2, 0xf3, 0xde, 0xcd, 0xef, 0x67, 0x20, 0x3c, - 0x26, 0xbb, 0x18, 0x8d, 0xa1, 0xae, 0x96, 0x8c, 0x0f, 0xad, 0xae, 0xfd, 0xe8, 0xec, 0xe5, 0xfe, - 0xae, 0x3b, 0xff, 0xa5, 0xed, 0xd9, 0x36, 0x78, 0x91, 0xc3, 0xe3, 0xff, 0x3e, 0x8a, 0x30, 0x1c, - 0x7a, 0x41, 0x30, 0xf9, 0xe8, 0xbf, 0x8d, 0xbc, 0x37, 0xb3, 0xf1, 0xe4, 0xc2, 0x0f, 0x23, 0x2f, - 0x08, 0x06, 0x1a, 0xb2, 0xe0, 0xc9, 0xbd, 0xc8, 0xf4, 0x72, 0x3a, 0xf3, 0xdf, 0x45, 0x93, 0x8b, - 0xe0, 0x72, 0x00, 0x90, 0x09, 0x47, 0xf7, 0x32, 0xde, 0x4f, 0xfd, 0x50, 0xc5, 0x3b, 0xe7, 0xe3, - 0x9b, 0x8d, 0x09, 0x6e, 0x37, 0x26, 0xf8, 0xb3, 0x31, 0xc1, 0xf7, 0xad, 0xa9, 0xdd, 0x6e, 0x4d, - 0xed, 0xd7, 0xd6, 0xd4, 0x3e, 0xb9, 0x49, 0xca, 0x57, 0xcd, 0xdc, 0x59, 0xb0, 0xdc, 0xdd, 0x99, - 0xc6, 0x55, 0xd3, 0xb8, 0x57, 0xee, 0xdd, 0xb1, 0x8a, 0x4b, 0xa9, 0xe7, 0xba, 0x3c, 0xbc, 0xd7, - 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xc8, 0x72, 0x81, 0xc4, 0x02, 0x00, 0x00, +func init() { proto.RegisterFile("nftmngr/latest/action.proto", fileDescriptor_4710e2c4dcc733cb) } + +var fileDescriptor_4710e2c4dcc733cb = []byte{ + // 436 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0xea, 0x3a, 0x4b, 0xa1, 0xd1, 0xaa, 0x87, 0x55, 0x5a, 0x19, 0xab, 0x5c, + 0xac, 0x4a, 0x78, 0xa5, 0xf2, 0x04, 0x2e, 0x58, 0xa2, 0x92, 0x69, 0x90, 0x13, 0x40, 0xe5, 0x80, + 0xb5, 0x89, 0x37, 0x8e, 0x85, 0xed, 0x35, 0xf6, 0x9a, 0xb4, 0x6f, 0xc1, 0x81, 0x23, 0x0f, 0xd4, + 0x63, 0x8f, 0x9c, 0x10, 0x4a, 0x5e, 0x04, 0xed, 0xae, 0x8b, 0x28, 0x95, 0xa0, 0xb7, 0x7f, 0xbf, + 0x99, 0x7f, 0x3c, 0x33, 0x1e, 0xb8, 0x5f, 0x2c, 0x44, 0x5e, 0x24, 0x15, 0xc9, 0xa8, 0x60, 0xb5, + 0x20, 0x74, 0x2e, 0x52, 0x5e, 0xb8, 0x65, 0xc5, 0x05, 0x47, 0x07, 0x62, 0xc9, 0xea, 0xf4, 0xa2, + 0x60, 0x62, 0xc5, 0xab, 0x8f, 0xae, 0x94, 0x0b, 0xe1, 0xb6, 0x8e, 0xd1, 0x5e, 0xc2, 0x13, 0xae, + 0x12, 0x89, 0x54, 0xda, 0x73, 0xf8, 0x15, 0xc0, 0x1d, 0x4f, 0x15, 0x79, 0x4d, 0x2b, 0x9a, 0xd7, + 0x08, 0xc1, 0x7e, 0x41, 0x73, 0x86, 0x81, 0x0d, 0x9c, 0x41, 0xa8, 0xb4, 0x64, 0x31, 0xab, 0xe7, + 0xb8, 0xab, 0x99, 0xd4, 0x68, 0x1f, 0x0e, 0x62, 0x2a, 0x68, 0x24, 0x2e, 0x4b, 0x86, 0x7b, 0x2a, + 0x60, 0x4a, 0x30, 0xbd, 0x2c, 0x19, 0x1a, 0x41, 0xb3, 0x62, 0x9f, 0x9a, 0xb4, 0x62, 0x31, 0xee, + 0xdb, 0xc0, 0x31, 0xc3, 0xdf, 0x6f, 0xf4, 0x04, 0x3e, 0x8c, 0xd9, 0x82, 0x36, 0x99, 0x88, 0x3e, + 0xd3, 0xac, 0x61, 0x78, 0x4b, 0x99, 0x77, 0x5a, 0xf8, 0x56, 0xb2, 0xc3, 0x6f, 0x5d, 0x68, 0xe8, + 0xb6, 0xee, 0xdd, 0x10, 0x86, 0xdb, 0x71, 0x5a, 0xd3, 0x59, 0xa6, 0xdb, 0x31, 0xc3, 0x9b, 0xa7, + 0xcc, 0x5e, 0x2d, 0x59, 0xa1, 0x3a, 0x19, 0x84, 0x4a, 0x4b, 0x26, 0x24, 0xdb, 0xb2, 0x7b, 0x92, + 0x49, 0x8d, 0x3e, 0xc0, 0x21, 0xcd, 0x32, 0xbe, 0x62, 0x71, 0xa4, 0xf7, 0xca, 0x2a, 0x6c, 0xd8, + 0xc0, 0x79, 0x74, 0xfc, 0xd4, 0xfd, 0xd7, 0x6a, 0x5d, 0x4f, 0xbb, 0xbc, 0xd6, 0x74, 0xd2, 0xbf, + 0xfa, 0xf1, 0x18, 0x84, 0xbb, 0xf4, 0x36, 0x46, 0x2f, 0xa1, 0x51, 0xaa, 0x25, 0xe3, 0x6d, 0xbb, + 0xe7, 0x3c, 0x38, 0x3e, 0xfa, 0x4f, 0xd5, 0x3f, 0x7e, 0x4b, 0x5b, 0xb2, 0xf5, 0x1f, 0xe5, 0x70, + 0xf7, 0xaf, 0x6f, 0x22, 0x0c, 0xf7, 0xbc, 0x20, 0x18, 0xbf, 0xf3, 0x5f, 0x44, 0xde, 0xf3, 0xe9, + 0xe9, 0xf8, 0xcc, 0x0f, 0x23, 0x2f, 0x08, 0x86, 0x1d, 0x64, 0xc3, 0x83, 0x3b, 0x91, 0xc9, 0xf9, + 0x64, 0xea, 0xbf, 0x8a, 0xc6, 0x67, 0xc1, 0xf9, 0x10, 0x20, 0x0b, 0x8e, 0xee, 0x64, 0xbc, 0x99, + 0xf8, 0xa1, 0x8e, 0x77, 0x4f, 0x4e, 0xaf, 0xd6, 0x16, 0xb8, 0x5e, 0x5b, 0xe0, 0xe7, 0xda, 0x02, + 0x5f, 0x36, 0x56, 0xe7, 0x7a, 0x63, 0x75, 0xbe, 0x6f, 0xac, 0xce, 0x7b, 0x92, 0xa4, 0x62, 0xd9, + 0xcc, 0xdc, 0x39, 0xcf, 0xc9, 0xad, 0x61, 0x88, 0x1e, 0x86, 0x5c, 0x90, 0x9b, 0x8b, 0x95, 0x87, + 0x52, 0xcf, 0x0c, 0x75, 0x76, 0xcf, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x32, 0x48, 0xbd, 0xb5, + 0xc9, 0x02, 0x00, 0x00, } func (m *ActionParams) Marshal() (dAtA []byte, err error) { @@ -508,10 +509,10 @@ func (m *ActionParams) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: action_params: wiretype end group for non-group") + return fmt.Errorf("proto: ActionParams: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ActionParams: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/nftmngr/types/action_by_ref_id.pb.go b/x/nftmngr/types/action_by_ref_id.pb.go index 657697f6..d70b4329 100644 --- a/x/nftmngr/types/action_by_ref_id.pb.go +++ b/x/nftmngr/types/action_by_ref_id.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/action_by_ref_id.proto +// source: nftmngr/latest/action_by_ref_id.proto package types @@ -34,7 +34,7 @@ func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } func (*ActionByRefId) ProtoMessage() {} func (*ActionByRefId) Descriptor() ([]byte, []int) { - return fileDescriptor_8bf414553fb0f05e, []int{0} + return fileDescriptor_2352e5571d06f5b7, []int{0} } func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -102,25 +102,28 @@ func init() { proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.ActionByRefId") } -func init() { proto.RegisterFile("nftmngr/action_by_ref_id.proto", fileDescriptor_8bf414553fb0f05e) } +func init() { + proto.RegisterFile("nftmngr/latest/action_by_ref_id.proto", fileDescriptor_2352e5571d06f5b7) +} -var fileDescriptor_8bf414553fb0f05e = []byte{ - // 237 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, - 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, - 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, - 0x9a, 0x94, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, 0x35, 0x3a, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, - 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, - 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, - 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, - 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, - 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, 0x5c, 0x6c, 0x10, 0x97, 0x4b, 0xb0, 0x82, 0x25, - 0xa0, 0x3c, 0x27, 0xcf, 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, 0xd2, 0x4f, - 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0xf1, 0x9c, 0x3e, 0xc4, 0x73, - 0xfa, 0x15, 0xfa, 0xb0, 0x30, 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x84, 0x31, - 0x20, 0x00, 0x00, 0xff, 0xff, 0x09, 0xfc, 0x42, 0x78, 0x2b, 0x01, 0x00, 0x00, +var fileDescriptor_2352e5571d06f5b7 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, + 0xcf, 0x8b, 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, 0x35, + 0x3a, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, 0x8c, + 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, 0x49, + 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, 0x4e, + 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, 0xf4, + 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, 0x5c, + 0x6c, 0x10, 0x97, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xcf, 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, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, + 0xd5, 0x47, 0xf1, 0x9c, 0x3e, 0xc4, 0x73, 0xfa, 0x15, 0xfa, 0xb0, 0xa0, 0x29, 0xa9, 0x2c, 0x48, + 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x84, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x06, 0xd5, 0xd4, 0xc8, + 0x32, 0x01, 0x00, 0x00, } func (m *ActionByRefId) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/action_executor.pb.go b/x/nftmngr/types/action_executor.pb.go index cf6025e5..41e9617f 100644 --- a/x/nftmngr/types/action_executor.pb.go +++ b/x/nftmngr/types/action_executor.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/action_executor.proto +// source: nftmngr/latest/action_executor.proto package types @@ -32,7 +32,7 @@ func (m *ActionExecutor) Reset() { *m = ActionExecutor{} } func (m *ActionExecutor) String() string { return proto.CompactTextString(m) } func (*ActionExecutor) ProtoMessage() {} func (*ActionExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_8f424de86493371c, []int{0} + return fileDescriptor_5c8aec7ef476c54a, []int{0} } func (m *ActionExecutor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -91,7 +91,7 @@ func (m *ActionExecutorBySchema) Reset() { *m = ActionExecutorBySchema{} func (m *ActionExecutorBySchema) String() string { return proto.CompactTextString(m) } func (*ActionExecutorBySchema) ProtoMessage() {} func (*ActionExecutorBySchema) Descriptor() ([]byte, []int) { - return fileDescriptor_8f424de86493371c, []int{1} + return fileDescriptor_5c8aec7ef476c54a, []int{1} } func (m *ActionExecutorBySchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -139,25 +139,27 @@ func init() { proto.RegisterType((*ActionExecutorBySchema)(nil), "thesixnetwork.sixnft.nftmngr.ActionExecutorBySchema") } -func init() { proto.RegisterFile("nftmngr/action_executor.proto", fileDescriptor_8f424de86493371c) } +func init() { + proto.RegisterFile("nftmngr/latest/action_executor.proto", fileDescriptor_5c8aec7ef476c54a) +} -var fileDescriptor_8f424de86493371c = []byte{ - // 228 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, 0x4f, 0xad, 0x48, 0x4d, 0x2e, - 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, - 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, - 0x94, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0xda, 0x5c, 0xa1, 0xba, 0x84, 0x54, 0xb8, 0x78, 0xf3, 0xd2, - 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, - 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, 0x61, 0xf6, 0x38, 0xa6, 0xa4, 0x14, 0xa5, 0x16, - 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, - 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, 0x4a, 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, - 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, 0xe0, 0xe4, 0x79, 0xe2, 0x91, 0x1c, 0xe3, 0x85, - 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, - 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, - 0xfa, 0x28, 0x01, 0xa5, 0x0f, 0x09, 0x28, 0xfd, 0x0a, 0x7d, 0x58, 0xf0, 0x96, 0x54, 0x16, 0xa4, - 0x16, 0x27, 0xb1, 0x81, 0x43, 0xd5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x2c, 0x05, 0xb2, - 0x76, 0x01, 0x00, 0x00, +var fileDescriptor_5c8aec7ef476c54a = []byte{ + // 235 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, + 0xcf, 0x8b, 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, + 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0x95, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0xda, 0x5c, 0xa1, + 0xba, 0x84, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, 0xf3, + 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, 0x61, + 0xf6, 0x38, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, 0x49, + 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, 0x4a, + 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, 0xe0, + 0xe4, 0x79, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, + 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, + 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0x01, 0xa5, 0x0f, 0x09, 0x28, 0xfd, 0x0a, + 0x7d, 0x58, 0x28, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x43, 0xd5, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xd1, 0x60, 0xe9, 0x0d, 0x7d, 0x01, 0x00, 0x00, } func (m *ActionExecutor) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/action_of_schema.pb.go b/x/nftmngr/types/action_of_schema.pb.go index d465accd..56aa3787 100644 --- a/x/nftmngr/types/action_of_schema.pb.go +++ b/x/nftmngr/types/action_of_schema.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/action_of_schema.proto +// source: nftmngr/latest/action_of_schema.proto package types @@ -32,7 +32,7 @@ func (m *ActionOfSchema) Reset() { *m = ActionOfSchema{} } func (m *ActionOfSchema) String() string { return proto.CompactTextString(m) } func (*ActionOfSchema) ProtoMessage() {} func (*ActionOfSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_43d1ce2c7a79358b, []int{0} + return fileDescriptor_127733c95861b84d, []int{0} } func (m *ActionOfSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,23 +86,26 @@ func init() { proto.RegisterType((*ActionOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.ActionOfSchema") } -func init() { proto.RegisterFile("nftmngr/action_of_schema.proto", fileDescriptor_43d1ce2c7a79358b) } +func init() { + proto.RegisterFile("nftmngr/latest/action_of_schema.proto", fileDescriptor_127733c95861b84d) +} -var fileDescriptor_43d1ce2c7a79358b = []byte{ - // 206 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, - 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, - 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, - 0x9a, 0x94, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0xfa, 0xfc, 0xd3, 0x82, 0xc1, 0xba, 0x84, 0x54, 0xb8, - 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, - 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, 0xc4, 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, - 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, 0x5a, 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, - 0x04, 0xe1, 0x38, 0x79, 0x9e, 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, 0x7e, - 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x8a, 0x23, 0xf5, 0x21, 0x8e, - 0xd4, 0xaf, 0xd0, 0x87, 0xf9, 0xad, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x23, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x40, 0x74, 0xb4, 0xf3, 0x00, 0x00, 0x00, +var fileDescriptor_127733c95861b84d = []byte{ + // 213 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, + 0xcf, 0x8b, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0x95, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0xfa, 0xfc, + 0xd3, 0x82, 0xc1, 0xba, 0x84, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, 0x94, + 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, 0xc4, + 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, 0x5a, + 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0x04, 0xe1, 0x38, 0x79, 0x9e, 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, 0x7e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, + 0xae, 0x3e, 0x8a, 0x23, 0xf5, 0x21, 0x8e, 0xd4, 0xaf, 0xd0, 0x87, 0x79, 0xb1, 0xa4, 0xb2, 0x20, + 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x23, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x63, 0x61, + 0xb7, 0xfa, 0x00, 0x00, 0x00, } func (m *ActionOfSchema) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/action_signer.pb.go b/x/nftmngr/types/action_signer.pb.go deleted file mode 100644 index 73699261..00000000 --- a/x/nftmngr/types/action_signer.pb.go +++ /dev/null @@ -1,978 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: evmsupport/action_signer.proto - -package types - -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - _ "google.golang.org/protobuf/types/known/timestamppb" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// 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 - -type ActionSigner struct { - ActorAddress string `protobuf:"bytes,1,opt,name=actor_address,json=actorAddress,proto3" json:"actor_address,omitempty"` - OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` - CreatedAt time.Time `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` - ExpiredAt time.Time `protobuf:"bytes,4,opt,name=expired_at,json=expiredAt,proto3,stdtime" json:"expired_at"` - Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` -} - -func (m *ActionSigner) Reset() { *m = ActionSigner{} } -func (m *ActionSigner) String() string { return proto.CompactTextString(m) } -func (*ActionSigner) ProtoMessage() {} -func (*ActionSigner) Descriptor() ([]byte, []int) { - return fileDescriptor_e8f230d94de32e88, []int{0} -} -func (m *ActionSigner) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActionSigner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActionSigner.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 *ActionSigner) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActionSigner.Merge(m, src) -} -func (m *ActionSigner) XXX_Size() int { - return m.Size() -} -func (m *ActionSigner) XXX_DiscardUnknown() { - xxx_messageInfo_ActionSigner.DiscardUnknown(m) -} - -var xxx_messageInfo_ActionSigner proto.InternalMessageInfo - -func (m *ActionSigner) GetActorAddress() string { - if m != nil { - return m.ActorAddress - } - return "" -} - -func (m *ActionSigner) GetOwnerAddress() string { - if m != nil { - return m.OwnerAddress - } - return "" -} - -func (m *ActionSigner) GetCreatedAt() time.Time { - if m != nil { - return m.CreatedAt - } - return time.Time{} -} - -func (m *ActionSigner) GetExpiredAt() time.Time { - if m != nil { - return m.ExpiredAt - } - return time.Time{} -} - -func (m *ActionSigner) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -type SetSignerSignature struct { - Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (m *SetSignerSignature) Reset() { *m = SetSignerSignature{} } -func (m *SetSignerSignature) String() string { return proto.CompactTextString(m) } -func (*SetSignerSignature) ProtoMessage() {} -func (*SetSignerSignature) Descriptor() ([]byte, []int) { - return fileDescriptor_e8f230d94de32e88, []int{1} -} -func (m *SetSignerSignature) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetSignerSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetSignerSignature.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 *SetSignerSignature) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetSignerSignature.Merge(m, src) -} -func (m *SetSignerSignature) XXX_Size() int { - return m.Size() -} -func (m *SetSignerSignature) XXX_DiscardUnknown() { - xxx_messageInfo_SetSignerSignature.DiscardUnknown(m) -} - -var xxx_messageInfo_SetSignerSignature proto.InternalMessageInfo - -func (m *SetSignerSignature) GetSignature() string { - if m != nil { - return m.Signature - } - return "" -} - -func (m *SetSignerSignature) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -type SetSignerParams struct { - ActorAddress string `protobuf:"bytes,1,opt,name=actor_address,json=actorAddress,proto3" json:"actor_address,omitempty"` - ExpiredAt time.Time `protobuf:"bytes,2,opt,name=expired_at,json=expiredAt,proto3,stdtime" json:"expired_at"` -} - -func (m *SetSignerParams) Reset() { *m = SetSignerParams{} } -func (m *SetSignerParams) String() string { return proto.CompactTextString(m) } -func (*SetSignerParams) ProtoMessage() {} -func (*SetSignerParams) Descriptor() ([]byte, []int) { - return fileDescriptor_e8f230d94de32e88, []int{2} -} -func (m *SetSignerParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetSignerParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetSignerParams.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 *SetSignerParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetSignerParams.Merge(m, src) -} -func (m *SetSignerParams) XXX_Size() int { - return m.Size() -} -func (m *SetSignerParams) XXX_DiscardUnknown() { - xxx_messageInfo_SetSignerParams.DiscardUnknown(m) -} - -var xxx_messageInfo_SetSignerParams proto.InternalMessageInfo - -func (m *SetSignerParams) GetActorAddress() string { - if m != nil { - return m.ActorAddress - } - return "" -} - -func (m *SetSignerParams) GetExpiredAt() time.Time { - if m != nil { - return m.ExpiredAt - } - return time.Time{} -} - -func init() { - proto.RegisterType((*ActionSigner)(nil), "thesixnetwork.sixnft.evmsupport.ActionSigner") - proto.RegisterType((*SetSignerSignature)(nil), "thesixnetwork.sixnft.evmsupport.SetSignerSignature") - proto.RegisterType((*SetSignerParams)(nil), "thesixnetwork.sixnft.evmsupport.SetSignerParams") -} - -func init() { proto.RegisterFile("evmsupport/action_signer.proto", fileDescriptor_e8f230d94de32e88) } - -var fileDescriptor_e8f230d94de32e88 = []byte{ - // 359 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xcd, 0x4e, 0xf2, 0x40, - 0x14, 0xed, 0xf0, 0x7d, 0xfe, 0x30, 0x62, 0x4c, 0x1a, 0x17, 0x0d, 0x31, 0x2d, 0xc1, 0x0d, 0xab, - 0x4e, 0x82, 0x4f, 0x50, 0xdc, 0xb2, 0x30, 0xe0, 0xca, 0x0d, 0x19, 0xca, 0xa5, 0x34, 0xda, 0x4e, - 0x33, 0x73, 0x2b, 0x18, 0x5f, 0x82, 0xc7, 0x62, 0xc9, 0xd2, 0x95, 0x1a, 0x78, 0x0d, 0x17, 0xa6, - 0x33, 0xad, 0xc8, 0x4e, 0xdd, 0x34, 0x73, 0x4f, 0xce, 0x39, 0xf7, 0x9c, 0xe6, 0x52, 0x17, 0x1e, - 0x13, 0x95, 0x67, 0x99, 0x90, 0xc8, 0x78, 0x88, 0xb1, 0x48, 0x47, 0x2a, 0x8e, 0x52, 0x90, 0x7e, - 0x26, 0x05, 0x0a, 0xdb, 0xc3, 0x19, 0xa8, 0x78, 0x91, 0x02, 0xce, 0x85, 0xbc, 0xf7, 0x8b, 0xe7, - 0x14, 0xfd, 0x9d, 0xa8, 0x79, 0x1e, 0x89, 0x48, 0x68, 0x2e, 0x2b, 0x5e, 0x46, 0xd6, 0xf4, 0x22, - 0x21, 0xa2, 0x07, 0x60, 0x7a, 0x1a, 0xe7, 0x53, 0x86, 0x71, 0x02, 0x0a, 0x79, 0x92, 0x19, 0x42, - 0xfb, 0x83, 0xd0, 0x46, 0xa0, 0xf7, 0x0d, 0xf5, 0x3a, 0xfb, 0x92, 0x9e, 0xf2, 0x10, 0x85, 0x1c, - 0xf1, 0xc9, 0x44, 0x82, 0x52, 0x0e, 0x69, 0x91, 0x4e, 0x7d, 0xd0, 0xd0, 0x60, 0x60, 0xb0, 0x82, - 0x24, 0xe6, 0x29, 0xec, 0x48, 0x35, 0x43, 0xd2, 0x60, 0x45, 0xba, 0xa6, 0x34, 0x94, 0xc0, 0x11, - 0x26, 0x23, 0x8e, 0xce, 0xbf, 0x16, 0xe9, 0x9c, 0x74, 0x9b, 0xbe, 0x09, 0xe4, 0x57, 0x81, 0xfc, - 0xdb, 0x2a, 0x50, 0xef, 0x78, 0xf5, 0xea, 0x59, 0xcb, 0x37, 0x8f, 0x0c, 0xea, 0xa5, 0x2e, 0xc0, - 0xc2, 0x04, 0x16, 0x59, 0x2c, 0x8d, 0xc9, 0xff, 0xdf, 0x98, 0x94, 0xba, 0x00, 0x6d, 0x87, 0x1e, - 0x69, 0x47, 0x21, 0x9d, 0x03, 0x1d, 0xb4, 0x1a, 0xdb, 0x7d, 0x6a, 0x0f, 0x01, 0x4d, 0xf5, 0xe2, - 0xcb, 0x31, 0x97, 0x60, 0x5f, 0xd0, 0xba, 0xaa, 0x86, 0xb2, 0xff, 0x0e, 0x28, 0xdc, 0x12, 0x50, - 0x8a, 0x47, 0x50, 0xd6, 0xae, 0xc6, 0xf6, 0x33, 0x3d, 0xfb, 0x72, 0xbb, 0xe1, 0x92, 0x27, 0xea, - 0x67, 0xbf, 0x73, 0xbf, 0x64, 0xed, 0x4f, 0x25, 0x7b, 0xfd, 0xd5, 0xc6, 0x25, 0xeb, 0x8d, 0x4b, - 0xde, 0x37, 0x2e, 0x59, 0x6e, 0x5d, 0x6b, 0xbd, 0x75, 0xad, 0x97, 0xad, 0x6b, 0xdd, 0x75, 0xa3, - 0x18, 0x67, 0xf9, 0xd8, 0x0f, 0x45, 0xc2, 0xf6, 0xce, 0x88, 0x99, 0x33, 0x62, 0x0b, 0xf6, 0xed, - 0xfa, 0xf0, 0x29, 0x03, 0x35, 0x3e, 0xd4, 0x6b, 0xaf, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x89, - 0x98, 0x34, 0x99, 0x98, 0x02, 0x00, 0x00, -} - -func (m *ActionSigner) 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 *ActionSigner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActionSigner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x2a - } - n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExpiredAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExpiredAt):]) - if err1 != nil { - return 0, err1 - } - i -= n1 - i = encodeVarintActionSigner(dAtA, i, uint64(n1)) - i-- - dAtA[i] = 0x22 - n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintActionSigner(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x1a - if len(m.OwnerAddress) > 0 { - i -= len(m.OwnerAddress) - copy(dAtA[i:], m.OwnerAddress) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.OwnerAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.ActorAddress) > 0 { - i -= len(m.ActorAddress) - copy(dAtA[i:], m.ActorAddress) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.ActorAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SetSignerSignature) 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 *SetSignerSignature) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetSignerSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SetSignerParams) 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 *SetSignerParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetSignerParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExpiredAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExpiredAt):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintActionSigner(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x12 - if len(m.ActorAddress) > 0 { - i -= len(m.ActorAddress) - copy(dAtA[i:], m.ActorAddress) - i = encodeVarintActionSigner(dAtA, i, uint64(len(m.ActorAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintActionSigner(dAtA []byte, offset int, v uint64) int { - offset -= sovActionSigner(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ActionSigner) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActorAddress) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - l = len(m.OwnerAddress) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt) - n += 1 + l + sovActionSigner(uint64(l)) - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExpiredAt) - n += 1 + l + sovActionSigner(uint64(l)) - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - return n -} - -func (m *SetSignerSignature) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - return n -} - -func (m *SetSignerParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ActorAddress) - if l > 0 { - n += 1 + l + sovActionSigner(uint64(l)) - } - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExpiredAt) - n += 1 + l + sovActionSigner(uint64(l)) - return n -} - -func sovActionSigner(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozActionSigner(x uint64) (n int) { - return sovActionSigner(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ActionSigner) 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 ErrIntOverflowActionSigner - } - 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: ActionSigner: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActionSigner: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthActionSigner - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiredAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthActionSigner - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExpiredAt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipActionSigner(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthActionSigner - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetSignerSignature) 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 ErrIntOverflowActionSigner - } - 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: SetSignerSignature: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetSignerSignature: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Signature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipActionSigner(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthActionSigner - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetSignerParams) 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 ErrIntOverflowActionSigner - } - 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: SetSignerParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetSignerParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - 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 ErrInvalidLengthActionSigner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpiredAt", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowActionSigner - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthActionSigner - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthActionSigner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExpiredAt, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipActionSigner(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthActionSigner - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipActionSigner(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, ErrIntOverflowActionSigner - } - 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, ErrIntOverflowActionSigner - } - 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, ErrIntOverflowActionSigner - } - 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, ErrInvalidLengthActionSigner - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupActionSigner - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthActionSigner - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthActionSigner = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowActionSigner = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupActionSigner = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/nftmngr/types/attribute_definition.pb.go b/x/nftmngr/types/attribute_definition.pb.go index a25b1fbb..4844d6ae 100644 --- a/x/nftmngr/types/attribute_definition.pb.go +++ b/x/nftmngr/types/attribute_definition.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/attribute_definition.proto +// source: nftmngr/latest/attribute_definition.proto package types @@ -35,7 +35,7 @@ func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } func (*DefaultMintValue) ProtoMessage() {} func (*DefaultMintValue) Descriptor() ([]byte, []int) { - return fileDescriptor_92a3bff541821c50, []int{0} + return fileDescriptor_4c99227faa6e3d38, []int{0} } func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -149,7 +149,7 @@ func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } func (*AttributeDefinition) ProtoMessage() {} func (*AttributeDefinition) Descriptor() ([]byte, []int) { - return fileDescriptor_92a3bff541821c50, []int{1} + return fileDescriptor_4c99227faa6e3d38, []int{1} } func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -247,44 +247,44 @@ func init() { } func init() { - proto.RegisterFile("nftmngr/attribute_definition.proto", fileDescriptor_92a3bff541821c50) + proto.RegisterFile("nftmngr/latest/attribute_definition.proto", fileDescriptor_4c99227faa6e3d38) } -var fileDescriptor_92a3bff541821c50 = []byte{ - // 514 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xd1, 0x6e, 0xd3, 0x3c, - 0x14, 0xc7, 0x9b, 0xaf, 0xed, 0xd6, 0xfa, 0xd3, 0xa6, 0xe1, 0xae, 0x10, 0x95, 0x29, 0x1a, 0x95, - 0x90, 0x26, 0x21, 0x25, 0xa2, 0x7b, 0x02, 0xaa, 0x6a, 0x82, 0x8b, 0x31, 0x29, 0x4c, 0x5c, 0x20, +var fileDescriptor_4c99227faa6e3d38 = []byte{ + // 520 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xdf, 0x6e, 0xd3, 0x3e, + 0x14, 0xc7, 0x9b, 0x5f, 0xdb, 0xad, 0xf5, 0x4f, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0x50, 0x34, 0x0d, + 0x21, 0x15, 0x21, 0x25, 0xa2, 0x7b, 0x02, 0xaa, 0x6a, 0x82, 0x8b, 0x31, 0x29, 0x4c, 0x5c, 0x20, 0xa4, 0xc8, 0x99, 0x9d, 0xd6, 0x2c, 0xb1, 0x83, 0x73, 0x32, 0xda, 0xb7, 0xe0, 0x65, 0x78, 0x07, - 0x24, 0x6e, 0x76, 0xc9, 0x25, 0x6a, 0x5f, 0x04, 0xc5, 0x6e, 0x5a, 0xd6, 0x54, 0x85, 0x3b, 0xfb, - 0xfc, 0xfd, 0x3f, 0x3f, 0x9f, 0xe3, 0x63, 0xd4, 0x17, 0x11, 0x24, 0x62, 0xac, 0x3c, 0x02, 0xa0, - 0x78, 0x98, 0x03, 0x0b, 0x28, 0x8b, 0xb8, 0xe0, 0xc0, 0xa5, 0x70, 0x53, 0x25, 0x41, 0xe2, 0x13, - 0x98, 0xb0, 0x8c, 0x4f, 0x05, 0x83, 0x2f, 0x52, 0xdd, 0xba, 0xc5, 0x32, 0x02, 0x77, 0x69, 0xec, - 0x9d, 0x94, 0x19, 0x28, 0xcf, 0xd2, 0x98, 0xcc, 0x02, 0x99, 0xae, 0xbd, 0xbd, 0x67, 0xa5, 0x2a, - 0x22, 0x08, 0xd6, 0x8c, 0x3b, 0x12, 0xe7, 0xcc, 0x1c, 0xe9, 0xff, 0xa8, 0xa3, 0xa3, 0x11, 0x8b, - 0x48, 0x1e, 0xc3, 0x25, 0x17, 0xf0, 0xbe, 0x90, 0xf0, 0x27, 0xf4, 0x58, 0xe4, 0x49, 0xc8, 0xd4, - 0xa6, 0xc9, 0xb6, 0x4e, 0xad, 0xb3, 0xff, 0x07, 0x03, 0x77, 0xd7, 0xa5, 0xdc, 0xb7, 0xda, 0xfb, - 0xaa, 0xb4, 0xea, 0x9c, 0xaf, 0x6b, 0xfe, 0xb1, 0xd8, 0x12, 0x2f, 0x58, 0x19, 0x28, 0x2e, 0xc6, - 0x15, 0xd6, 0x7f, 0xff, 0xc2, 0x7a, 0xa7, 0xbd, 0x55, 0x56, 0xb6, 0x25, 0x8e, 0x13, 0xf4, 0x24, - 0x94, 0x32, 0x66, 0x44, 0x54, 0x60, 0x75, 0x0d, 0x3b, 0xdf, 0x0d, 0x1b, 0x1a, 0x73, 0x85, 0xd6, - 0x0d, 0xb7, 0x09, 0x78, 0x8c, 0xba, 0x51, 0x2c, 0x49, 0xa5, 0xf5, 0x76, 0x43, 0xc3, 0x5e, 0xee, - 0x86, 0x5d, 0x14, 0xd6, 0x0a, 0xaa, 0x13, 0x55, 0xc3, 0xc3, 0x7d, 0xd4, 0xd4, 0x89, 0xfb, 0xdf, - 0xea, 0xa8, 0xb3, 0xd2, 0x46, 0xab, 0x51, 0xc2, 0x18, 0x35, 0x04, 0x49, 0xcc, 0xf3, 0xb5, 0x7d, - 0xbd, 0xc6, 0x4f, 0x51, 0x9b, 0x12, 0x20, 0x01, 0xcc, 0x52, 0xd3, 0xeb, 0xb6, 0xdf, 0x2a, 0x02, - 0xd7, 0xb3, 0x94, 0xe1, 0x1e, 0x6a, 0x29, 0xf6, 0x39, 0xe7, 0x8a, 0x51, 0xdd, 0x9a, 0x96, 0xbf, - 0xda, 0x63, 0x17, 0x75, 0xca, 0x69, 0xd3, 0xd4, 0x20, 0xe2, 0x2c, 0xa6, 0xba, 0xa8, 0xb6, 0xff, - 0x68, 0x29, 0xe9, 0x8b, 0x5d, 0x14, 0x02, 0xf6, 0xd1, 0xe1, 0xc3, 0xe9, 0xb4, 0x9b, 0xba, 0xfe, - 0x17, 0xbb, 0xeb, 0x1f, 0x19, 0xcf, 0x95, 0xb6, 0xf8, 0x07, 0xf4, 0xcf, 0x2d, 0xfe, 0x88, 0x30, - 0x35, 0x53, 0x1b, 0x24, 0x5c, 0xc0, 0xb2, 0xaf, 0x7b, 0x3a, 0xaf, 0xfb, 0x97, 0xbc, 0x1b, 0xd3, - 0xee, 0x1f, 0xd1, 0xcd, 0xf9, 0x7f, 0x8e, 0x0e, 0x27, 0x9c, 0x52, 0x26, 0x02, 0x79, 0xc7, 0x14, - 0xa7, 0xcc, 0xde, 0xd7, 0x3d, 0x38, 0x30, 0xd1, 0x2b, 0x13, 0xc4, 0x03, 0xd4, 0x5d, 0x1e, 0x03, - 0x19, 0x24, 0x44, 0xdd, 0x32, 0x48, 0x63, 0x72, 0xc3, 0xec, 0x96, 0x3e, 0xdd, 0x31, 0xe2, 0xb5, - 0xbc, 0x5c, 0x4b, 0xf8, 0x18, 0x35, 0xb9, 0xa0, 0x6c, 0x6a, 0xb7, 0x4f, 0xad, 0xb3, 0x86, 0x6f, - 0x36, 0xc3, 0x37, 0xdf, 0xe7, 0x8e, 0x75, 0x3f, 0x77, 0xac, 0x5f, 0x73, 0xc7, 0xfa, 0xba, 0x70, - 0x6a, 0xf7, 0x0b, 0xa7, 0xf6, 0x73, 0xe1, 0xd4, 0x3e, 0x78, 0x63, 0x0e, 0x93, 0x3c, 0x74, 0x6f, - 0x64, 0xe2, 0x3d, 0x28, 0xcb, 0x33, 0x65, 0x79, 0x53, 0xaf, 0xfc, 0xe4, 0xc5, 0x43, 0x66, 0xe1, - 0x9e, 0xfe, 0xd7, 0xe7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x90, 0x02, 0x3f, 0x74, 0x5c, 0x04, - 0x00, 0x00, + 0x24, 0x6e, 0x76, 0xc9, 0x25, 0x6a, 0x5f, 0x04, 0xc5, 0xee, 0x1f, 0x96, 0x54, 0x85, 0xbb, 0xf8, + 0x7c, 0xcf, 0xf7, 0x7c, 0x72, 0x8e, 0x8f, 0xd1, 0x73, 0x11, 0x41, 0x22, 0xc6, 0xca, 0x8b, 0x09, + 0xb0, 0x0c, 0x3c, 0x02, 0xa0, 0x78, 0x98, 0x03, 0x0b, 0x28, 0x8b, 0xb8, 0xe0, 0xc0, 0xa5, 0x70, + 0x53, 0x25, 0x41, 0xe2, 0x27, 0x30, 0x61, 0x19, 0x9f, 0x0a, 0x06, 0x5f, 0xa4, 0xba, 0x71, 0x8b, + 0xcf, 0x08, 0xdc, 0xa5, 0xbf, 0xf7, 0xb4, 0x54, 0x88, 0xf2, 0x2c, 0x8d, 0xc9, 0x2c, 0x90, 0xe9, + 0xa6, 0x44, 0xaf, 0x5f, 0x4a, 0x12, 0x11, 0x04, 0x1b, 0xe2, 0x2d, 0x89, 0x73, 0x66, 0x32, 0x4f, + 0x7f, 0xd4, 0xd1, 0xd1, 0x88, 0x45, 0x24, 0x8f, 0xe1, 0x82, 0x0b, 0x78, 0x5f, 0x48, 0xf8, 0x13, + 0x7a, 0x28, 0xf2, 0x24, 0x64, 0xaa, 0x6c, 0xb2, 0xad, 0x13, 0xab, 0xff, 0xff, 0x60, 0xe0, 0xee, + 0xfa, 0x45, 0xf7, 0xad, 0xf6, 0xbe, 0x5a, 0x59, 0x75, 0xcd, 0xd7, 0x35, 0xff, 0x58, 0x6c, 0x89, + 0x17, 0xac, 0x0c, 0x14, 0x17, 0xe3, 0x0a, 0xeb, 0xbf, 0x7f, 0x61, 0xbd, 0xd3, 0xde, 0x2a, 0x2b, + 0xdb, 0x12, 0xc7, 0x09, 0x7a, 0x14, 0x4a, 0x19, 0x33, 0x22, 0x2a, 0xb0, 0xba, 0x86, 0x9d, 0xed, + 0x86, 0x0d, 0x8d, 0xb9, 0x42, 0xeb, 0x86, 0xdb, 0x04, 0x3c, 0x46, 0xdd, 0x28, 0x96, 0xa4, 0x32, + 0x7a, 0xbb, 0xa1, 0x61, 0x2f, 0x77, 0xc3, 0xce, 0x0b, 0x6b, 0x05, 0xd5, 0x89, 0xaa, 0xe1, 0xe1, + 0x3e, 0x6a, 0xea, 0xc2, 0xa7, 0xdf, 0xea, 0xa8, 0xb3, 0xd6, 0x46, 0xeb, 0xc5, 0xc2, 0x18, 0x35, + 0x04, 0x49, 0xcc, 0xf5, 0xb5, 0x7d, 0xfd, 0x8d, 0x1f, 0xa3, 0x36, 0x25, 0x40, 0x02, 0x98, 0xa5, + 0x66, 0xd6, 0x6d, 0xbf, 0x55, 0x04, 0xae, 0x66, 0x29, 0xc3, 0x3d, 0xd4, 0x52, 0xec, 0x73, 0xce, + 0x15, 0xa3, 0x7a, 0x34, 0x2d, 0x7f, 0x7d, 0xc6, 0x2e, 0xea, 0xac, 0x96, 0x4e, 0x53, 0x83, 0x88, + 0xb3, 0x98, 0xea, 0xa6, 0xda, 0xfe, 0x83, 0xa5, 0xa4, 0x7f, 0xec, 0xbc, 0x10, 0xb0, 0x8f, 0x0e, + 0xef, 0x2f, 0xa9, 0xdd, 0xd4, 0xfd, 0xbf, 0xd8, 0xdd, 0xff, 0xc8, 0x78, 0x2e, 0xb5, 0xc5, 0x3f, + 0xa0, 0x7f, 0x1e, 0xf1, 0x47, 0x84, 0xa9, 0xd9, 0xda, 0x20, 0xe1, 0x02, 0x96, 0x73, 0xdd, 0xd3, + 0x75, 0xdd, 0xbf, 0xd4, 0x2d, 0x6d, 0xbb, 0x7f, 0x44, 0xcb, 0xfb, 0xff, 0x0c, 0x1d, 0x4e, 0x38, + 0xa5, 0x4c, 0x04, 0xf2, 0x96, 0x29, 0x4e, 0x99, 0xbd, 0xaf, 0x67, 0x70, 0x60, 0xa2, 0x97, 0x26, + 0x88, 0x07, 0xa8, 0xbb, 0x4c, 0x03, 0x19, 0x24, 0x44, 0xdd, 0x30, 0x48, 0x63, 0x72, 0xcd, 0xec, + 0x96, 0xce, 0xee, 0x18, 0xf1, 0x4a, 0x5e, 0x6c, 0x24, 0x7c, 0x8c, 0x9a, 0x5c, 0x50, 0x36, 0xb5, + 0xdb, 0x27, 0x56, 0xbf, 0xe1, 0x9b, 0xc3, 0xf0, 0xcd, 0xf7, 0xb9, 0x63, 0xdd, 0xcd, 0x1d, 0xeb, + 0xd7, 0xdc, 0xb1, 0xbe, 0x2e, 0x9c, 0xda, 0xdd, 0xc2, 0xa9, 0xfd, 0x5c, 0x38, 0xb5, 0x0f, 0xde, + 0x98, 0xc3, 0x24, 0x0f, 0xdd, 0x6b, 0x99, 0x78, 0xf7, 0xda, 0xf2, 0x4c, 0x5b, 0xde, 0xd4, 0x5b, + 0xbd, 0xf5, 0xe2, 0x22, 0xb3, 0x70, 0x4f, 0xbf, 0xeb, 0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x01, 0x00, 0xe3, 0x6a, 0x71, 0x04, 0x00, 0x00, } func (m *DefaultMintValue) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/attribute_of_schema.pb.go b/x/nftmngr/types/attribute_of_schema.pb.go index f6976c7f..22070846 100644 --- a/x/nftmngr/types/attribute_of_schema.pb.go +++ b/x/nftmngr/types/attribute_of_schema.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/attribute_of_schema.proto +// source: nftmngr/latest/attribute_of_schema.proto package types @@ -23,15 +23,15 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type AttributeOfSchema struct { - NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` - SchemaAttributes []*SchemaAttributeV1 `protobuf:"bytes,2,rep,name=schemaAttributes,proto3" json:"schemaAttributes,omitempty"` + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + SchemaAttributes []*SchemaAttribute `protobuf:"bytes,2,rep,name=schemaAttributes,proto3" json:"schemaAttributes,omitempty"` } func (m *AttributeOfSchema) Reset() { *m = AttributeOfSchema{} } func (m *AttributeOfSchema) String() string { return proto.CompactTextString(m) } func (*AttributeOfSchema) ProtoMessage() {} func (*AttributeOfSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_176788f85b418b2c, []int{0} + return fileDescriptor_075c2a23365f10e1, []int{0} } func (m *AttributeOfSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -67,7 +67,7 @@ func (m *AttributeOfSchema) GetNftSchemaCode() string { return "" } -func (m *AttributeOfSchema) GetSchemaAttributes() []*SchemaAttributeV1 { +func (m *AttributeOfSchema) GetSchemaAttributes() []*SchemaAttribute { if m != nil { return m.SchemaAttributes } @@ -78,24 +78,27 @@ func init() { proto.RegisterType((*AttributeOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.AttributeOfSchema") } -func init() { proto.RegisterFile("nftmngr/attribute_of_schema.proto", fileDescriptor_176788f85b418b2c) } +func init() { + proto.RegisterFile("nftmngr/latest/attribute_of_schema.proto", fileDescriptor_075c2a23365f10e1) +} -var fileDescriptor_176788f85b418b2c = []byte{ - // 219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0x2c, 0x29, 0x29, 0xca, 0x4c, 0x2a, 0x2d, 0x49, 0x8d, 0xcf, 0x4f, - 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, - 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, - 0x4a, 0xf4, 0xa0, 0xfa, 0xa4, 0xe4, 0x60, 0x06, 0x40, 0xf4, 0xc4, 0xc3, 0xcd, 0x81, 0xe8, 0x56, - 0x9a, 0xc6, 0xc8, 0x25, 0xe8, 0x08, 0x13, 0xf3, 0x4f, 0x0b, 0x06, 0xab, 0x12, 0x52, 0xe1, 0xe2, - 0xcd, 0x4b, 0x2b, 0x81, 0x70, 0x9c, 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, - 0x50, 0x05, 0x85, 0xa2, 0xb9, 0x04, 0x20, 0xa6, 0xc2, 0x0d, 0x28, 0x96, 0x60, 0x52, 0x60, 0xd6, - 0xe0, 0x36, 0xd2, 0xd7, 0xc3, 0xe7, 0x28, 0xbd, 0x60, 0x54, 0x5d, 0x61, 0x86, 0x41, 0x18, 0x06, - 0x39, 0x79, 0x9e, 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, 0x7e, 0x7a, 0x66, - 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x8a, 0x35, 0xfa, 0x10, 0x6b, 0xf4, 0x2b, - 0xf4, 0x61, 0x9e, 0x2e, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x7b, 0xd5, 0x18, 0x10, 0x00, - 0x00, 0xff, 0xff, 0xee, 0x92, 0x8f, 0xee, 0x4d, 0x01, 0x00, 0x00, +var fileDescriptor_075c2a23365f10e1 = []byte{ + // 225 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0x2c, 0x29, 0x29, 0xca, + 0x4c, 0x2a, 0x2d, 0x49, 0x8d, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, + 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xda, 0xa5, 0x54, 0xd1, 0xcc, 0x81, + 0x68, 0x8d, 0x87, 0x1b, 0x07, 0x31, 0x44, 0x69, 0x0a, 0x23, 0x97, 0xa0, 0x23, 0x4c, 0xcc, 0x3f, + 0x2d, 0x18, 0xac, 0x4a, 0x48, 0x85, 0x8b, 0x37, 0x2f, 0xad, 0x04, 0xc2, 0x71, 0xce, 0x4f, 0x49, + 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x15, 0x14, 0x8a, 0xe4, 0x12, 0x80, 0x98, 0x0a, + 0x37, 0xa0, 0x58, 0x82, 0x49, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x57, 0x0f, 0x9f, 0xdb, 0xf4, 0x82, + 0x51, 0x75, 0x05, 0x61, 0x18, 0xe3, 0xe4, 0x79, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, + 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, + 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0x96, + 0xe8, 0x43, 0x2c, 0xd1, 0xaf, 0xd0, 0x87, 0xf9, 0xbc, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, + 0xec, 0x51, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0xc6, 0x30, 0xef, 0x59, 0x01, 0x00, + 0x00, } func (m *AttributeOfSchema) Marshal() (dAtA []byte, err error) { @@ -268,7 +271,7 @@ func (m *AttributeOfSchema) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.SchemaAttributes = append(m.SchemaAttributes, &SchemaAttributeV1{}) + m.SchemaAttributes = append(m.SchemaAttributes, &SchemaAttribute{}) if err := m.SchemaAttributes[len(m.SchemaAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/x/nftmngr/types/display_option.pb.go b/x/nftmngr/types/display_option.pb.go index 192bc504..b359c462 100644 --- a/x/nftmngr/types/display_option.pb.go +++ b/x/nftmngr/types/display_option.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/display_option.proto +// source: nftmngr/latest/display_option.proto package types @@ -32,7 +32,7 @@ func (m *DisplayOption) Reset() { *m = DisplayOption{} } func (m *DisplayOption) String() string { return proto.CompactTextString(m) } func (*DisplayOption) ProtoMessage() {} func (*DisplayOption) Descriptor() ([]byte, []int) { - return fileDescriptor_38983a60548f9882, []int{0} + return fileDescriptor_ebc2b664be471560, []int{0} } func (m *DisplayOption) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,26 +86,28 @@ func init() { proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.DisplayOption") } -func init() { proto.RegisterFile("nftmngr/display_option.proto", fileDescriptor_38983a60548f9882) } +func init() { + proto.RegisterFile("nftmngr/latest/display_option.proto", fileDescriptor_ebc2b664be471560) +} -var fileDescriptor_38983a60548f9882 = []byte{ - // 248 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, - 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, - 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0xa4, - 0x54, 0x60, 0x7a, 0xf3, 0x0b, 0x52, 0xf3, 0x8a, 0x53, 0x13, 0xe3, 0xb1, 0x99, 0xa1, 0xb4, 0x9e, - 0x91, 0x8b, 0xd7, 0x05, 0x22, 0xe1, 0x0f, 0x16, 0x17, 0x52, 0xe3, 0xe2, 0x4f, 0xca, 0xcf, 0xcf, - 0x89, 0x2f, 0x29, 0x2a, 0x4d, 0x8d, 0x2f, 0x4b, 0xcc, 0x29, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, - 0xe0, 0x0c, 0xe2, 0x05, 0x09, 0x87, 0x14, 0x95, 0xa6, 0x86, 0x81, 0x04, 0x85, 0x34, 0xb8, 0x04, - 0xc0, 0xea, 0xd2, 0x12, 0x73, 0x8a, 0x61, 0x0a, 0x99, 0xc0, 0x0a, 0xf9, 0x40, 0xe2, 0x6e, 0x20, - 0x61, 0x88, 0x4a, 0x1f, 0x2e, 0x76, 0xa8, 0x1b, 0x24, 0x98, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x8c, - 0xf4, 0xf0, 0xb9, 0x5c, 0xcf, 0x1f, 0xa2, 0x18, 0xc5, 0x59, 0x41, 0x30, 0x23, 0x9c, 0x3c, 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, 0x3f, 0x3d, 0xb3, 0x24, 0xa3, 0x34, - 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xc5, 0x02, 0x7d, 0x88, 0x05, 0xfa, 0x15, 0xfa, 0xb0, 0x30, - 0x29, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0x87, 0x81, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, - 0xb9, 0x3b, 0x08, 0xc6, 0x67, 0x01, 0x00, 0x00, +var fileDescriptor_ebc2b664be471560 = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, + 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xa5, 0xb4, 0xd1, 0x8c, 0xc8, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, + 0x4d, 0x8c, 0xc7, 0x66, 0x94, 0xd2, 0x7a, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, 0x5c, + 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, 0x31, + 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, 0x9a, + 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, 0x64, + 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x7d, 0xb8, 0xd8, 0xa1, 0x6e, 0x90, + 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd2, 0xc3, 0xe7, 0x01, 0x3d, 0x7f, 0x88, 0x62, 0x14, + 0x67, 0x05, 0xc1, 0x8c, 0x70, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, + 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, + 0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x0b, 0xf4, + 0x21, 0x16, 0xe8, 0x57, 0xe8, 0xc3, 0x82, 0xa6, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, + 0x06, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0x94, 0x5f, 0xe3, 0x75, 0x01, 0x00, 0x00, } func (m *DisplayOption) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/executor_of_schema.pb.go b/x/nftmngr/types/executor_of_schema.pb.go index 2dc34677..648855c3 100644 --- a/x/nftmngr/types/executor_of_schema.pb.go +++ b/x/nftmngr/types/executor_of_schema.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/executor_of_schema.proto +// source: nftmngr/latest/executor_of_schema.proto package types @@ -31,7 +31,7 @@ func (m *ExecutorOfSchema) Reset() { *m = ExecutorOfSchema{} } func (m *ExecutorOfSchema) String() string { return proto.CompactTextString(m) } func (*ExecutorOfSchema) ProtoMessage() {} func (*ExecutorOfSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_b9f9b7c97b3275cc, []int{0} + return fileDescriptor_41f94f44eb69684b, []int{0} } func (m *ExecutorOfSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,23 +78,25 @@ func init() { proto.RegisterType((*ExecutorOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.ExecutorOfSchema") } -func init() { proto.RegisterFile("nftmngr/executor_of_schema.proto", fileDescriptor_b9f9b7c97b3275cc) } +func init() { + proto.RegisterFile("nftmngr/latest/executor_of_schema.proto", fileDescriptor_41f94f44eb69684b) +} -var fileDescriptor_b9f9b7c97b3275cc = []byte{ - // 198 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0x8a, 0xcf, 0x4f, 0x8b, - 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, - 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, - 0xf4, 0xa0, 0xda, 0x94, 0x92, 0xb8, 0x04, 0x5c, 0xa1, 0x3a, 0xfd, 0xd3, 0x82, 0xc1, 0xfa, 0x84, - 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, - 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x0d, 0x2e, 0x7e, 0x98, 0x9d, 0x8e, 0x29, 0x29, 0x45, 0xa9, - 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, 0x41, 0xe8, 0xc2, 0x4e, 0x9e, 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, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, - 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x4c, 0x7d, 0x88, 0x33, 0xf5, 0x2b, 0xf4, 0x61, 0xfe, 0x2b, 0xa9, - 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, 0xc9, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xb2, - 0x74, 0x8d, 0xf7, 0x00, 0x00, 0x00, +var fileDescriptor_41f94f44eb69684b = []byte{ + // 205 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x4f, 0xad, 0x48, 0x4d, 0x2e, + 0x2d, 0xc9, 0x2f, 0x8a, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, + 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xba, 0x95, 0x92, 0xb8, 0x04, 0x5c, 0xa1, + 0x3a, 0xfd, 0xd3, 0x82, 0xc1, 0xfa, 0x84, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, + 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x0d, 0x2e, 0x7e, + 0x98, 0x9d, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, 0x41, + 0xe8, 0xc2, 0x4e, 0x9e, 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, 0x9f, + 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x4c, 0x7d, 0x88, 0x33, + 0xf5, 0x2b, 0xf4, 0x61, 0xde, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, 0xc9, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0x06, 0xec, 0xa2, 0xd7, 0xfe, 0x00, 0x00, 0x00, } func (m *ExecutorOfSchema) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/genesis.pb.go b/x/nftmngr/types/genesis.pb.go index b52d8145..33fa4a7f 100644 --- a/x/nftmngr/types/genesis.pb.go +++ b/x/nftmngr/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/genesis.proto +// source: nftmngr/latest/genesis.proto package types @@ -45,7 +45,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_0c26d098aac64c1a, []int{0} + return fileDescriptor_ad9f6b41a6524b4e, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -176,51 +176,51 @@ func init() { proto.RegisterType((*GenesisState)(nil), "thesixnetwork.sixnft.nftmngr.GenesisState") } -func init() { proto.RegisterFile("nftmngr/genesis.proto", fileDescriptor_0c26d098aac64c1a) } +func init() { proto.RegisterFile("nftmngr/latest/genesis.proto", fileDescriptor_ad9f6b41a6524b4e) } -var fileDescriptor_0c26d098aac64c1a = []byte{ - // 642 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x6e, 0xd3, 0x3e, - 0x14, 0xc7, 0xdb, 0xdf, 0xf6, 0x1b, 0xe0, 0x6e, 0x03, 0xcc, 0x80, 0xaa, 0xda, 0x42, 0x85, 0x86, - 0x98, 0x36, 0x48, 0xc4, 0x78, 0x82, 0xa5, 0xac, 0x68, 0x12, 0xfb, 0x43, 0xcb, 0x15, 0x42, 0x8a, - 0x9c, 0xd4, 0x4e, 0x23, 0x5a, 0xbb, 0x24, 0xa7, 0xa2, 0xe5, 0x29, 0x78, 0x12, 0x9e, 0x63, 0x97, - 0xbb, 0xe4, 0x0a, 0xa1, 0xf6, 0x45, 0x50, 0x1c, 0xbb, 0x4b, 0xda, 0x2e, 0xcb, 0x5d, 0x9b, 0x73, - 0xbe, 0x9f, 0xaf, 0x7d, 0x7c, 0xce, 0x41, 0x8f, 0x39, 0x83, 0x3e, 0xf7, 0x43, 0xcb, 0xa7, 0x9c, - 0x46, 0x41, 0x64, 0x0e, 0x42, 0x01, 0x02, 0x6f, 0x43, 0x97, 0x46, 0xc1, 0x88, 0x53, 0xf8, 0x2e, - 0xc2, 0xaf, 0x66, 0xfc, 0x93, 0x81, 0xa9, 0x72, 0x6b, 0x5b, 0xbe, 0xf0, 0x85, 0x4c, 0xb4, 0xe2, - 0x5f, 0x89, 0xa6, 0xb6, 0xa5, 0x51, 0x03, 0x12, 0x92, 0xbe, 0x22, 0xd5, 0xaa, 0xfa, 0x2b, 0x67, - 0xe0, 0x44, 0x5e, 0x97, 0xf6, 0x89, 0x8a, 0x3c, 0x49, 0x47, 0x3a, 0x04, 0xf4, 0x77, 0x43, 0x7f, - 0x27, 0x1e, 0x04, 0x82, 0x3b, 0xee, 0xd8, 0x09, 0x29, 0x73, 0x82, 0x8e, 0x8a, 0xd7, 0x74, 0x5c, - 0x84, 0x3e, 0xe1, 0xc1, 0x0f, 0x12, 0x67, 0xa9, 0xd8, 0xee, 0xa2, 0x5b, 0xac, 0xf7, 0x04, 0x87, - 0x90, 0x78, 0xa0, 0xb2, 0xb6, 0xd3, 0x59, 0x8c, 0xd2, 0x38, 0xce, 0x02, 0x5f, 0x45, 0x77, 0xe6, - 0xa3, 0x2e, 0xe9, 0x11, 0xee, 0xd1, 0xf9, 0xe3, 0xf5, 0x29, 0x90, 0xf8, 0xd8, 0x8e, 0x17, 0x52, - 0x02, 0x22, 0x5c, 0x06, 0xf7, 0x44, 0xaf, 0x47, 0xbd, 0xd4, 0x01, 0x77, 0xe6, 0x2e, 0x47, 0x47, - 0xd4, 0x1b, 0x5e, 0x8b, 0x67, 0x70, 0x75, 0x76, 0x02, 0x10, 0x06, 0xee, 0x10, 0xe8, 0x0d, 0xb5, - 0x11, 0x2c, 0x5b, 0xd3, 0xba, 0x8e, 0x6b, 0xee, 0x7c, 0xc6, 0xf3, 0x5f, 0x08, 0xad, 0xbf, 0x4f, - 0xde, 0xba, 0x0d, 0x04, 0x28, 0xb6, 0xd1, 0x5a, 0xf2, 0x60, 0xd5, 0x72, 0xbd, 0xbc, 0x57, 0x39, - 0xdc, 0x35, 0xf3, 0xde, 0xde, 0xbc, 0x90, 0xb9, 0xf6, 0xea, 0xe5, 0x9f, 0x67, 0xa5, 0x96, 0x52, - 0xe2, 0x36, 0xda, 0xe0, 0xcd, 0x4f, 0x6d, 0xe9, 0xf3, 0x21, 0x88, 0xa0, 0xfa, 0x5f, 0x7d, 0x65, - 0xaf, 0x72, 0xf8, 0x32, 0x1f, 0x75, 0xa6, 0x25, 0x8a, 0x96, 0x65, 0xe0, 0x53, 0x54, 0xe1, 0x0c, - 0xde, 0x11, 0x48, 0x90, 0x2b, 0x12, 0xf9, 0xe2, 0x16, 0x64, 0x22, 0x50, 0xc0, 0xb4, 0x1e, 0x3b, - 0xe8, 0x61, 0x52, 0x34, 0x7b, 0xdc, 0xa2, 0xec, 0xa4, 0x23, 0xa1, 0xab, 0x12, 0x7a, 0x90, 0x0f, - 0x3d, 0x4a, 0xcb, 0x14, 0x7a, 0x91, 0x85, 0xbf, 0xa0, 0x07, 0xe9, 0x8e, 0x94, 0xfc, 0xff, 0x25, - 0x7f, 0x3f, 0x9f, 0x7f, 0x9e, 0x52, 0x29, 0xfc, 0x02, 0x09, 0x7f, 0x43, 0x4f, 0x67, 0xe5, 0xb1, - 0xc7, 0x0d, 0xd5, 0xd0, 0xd2, 0xe4, 0x8e, 0x34, 0x79, 0x53, 0xb4, 0xd8, 0x33, 0xb1, 0xf2, 0xba, - 0x89, 0x8b, 0x2f, 0xd0, 0x66, 0x76, 0x40, 0xaa, 0x77, 0x65, 0x87, 0xec, 0xdf, 0xea, 0xd4, 0xa4, - 0xb4, 0x21, 0x15, 0xad, 0x75, 0xce, 0x60, 0xf6, 0x0f, 0x7f, 0x94, 0x7d, 0xd2, 0xa4, 0xd4, 0x4e, - 0x46, 0xaa, 0x7a, 0x4f, 0x02, 0x0f, 0x8a, 0x00, 0x95, 0xa4, 0x95, 0x25, 0x60, 0x8a, 0x1e, 0xe9, - 0x41, 0x6c, 0x24, 0x73, 0x28, 0x6b, 0x82, 0x64, 0x4d, 0x5e, 0xe7, 0x83, 0x4f, 0xb3, 0x42, 0x55, - 0x8f, 0x65, 0xbc, 0xb8, 0x7b, 0x38, 0x83, 0xc6, 0x6c, 0x9c, 0xa5, 0x49, 0xa5, 0x48, 0xf7, 0x9c, - 0xa5, 0x65, 0xba, 0x7b, 0x16, 0x58, 0xd8, 0x45, 0x38, 0x69, 0xa9, 0x63, 0x35, 0xb9, 0xd2, 0x61, - 0x5d, 0x3a, 0xbc, 0x2a, 0xd2, 0x9f, 0x5a, 0xa7, 0x2c, 0x96, 0xd0, 0xe2, 0x5a, 0x25, 0xbb, 0xe0, - 0x48, 0xaf, 0x15, 0x69, 0xb2, 0x51, 0xa4, 0x56, 0xed, 0xac, 0x50, 0xd7, 0x6a, 0x09, 0xef, 0xfa, - 0x2a, 0xe7, 0x2c, 0xb5, 0x12, 0x36, 0x8b, 0x5f, 0x45, 0xeb, 0xb2, 0x57, 0x49, 0xd3, 0x70, 0x17, - 0x6d, 0xe9, 0x15, 0x97, 0x71, 0xb9, 0x2f, 0x5d, 0xcc, 0x7c, 0x97, 0xe3, 0x39, 0xa5, 0xf2, 0x59, - 0x4a, 0xb4, 0x4f, 0x2e, 0x27, 0x46, 0xf9, 0x6a, 0x62, 0x94, 0xff, 0x4e, 0x8c, 0xf2, 0xcf, 0xa9, - 0x51, 0xba, 0x9a, 0x1a, 0xa5, 0xdf, 0x53, 0xa3, 0xf4, 0xd9, 0xf2, 0x03, 0xe8, 0x0e, 0x5d, 0xd3, - 0x13, 0x7d, 0x2b, 0xe3, 0x67, 0x25, 0x7e, 0xd6, 0xc8, 0xd2, 0xeb, 0x18, 0xc6, 0x03, 0x1a, 0xb9, - 0x6b, 0x72, 0x05, 0xbf, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x50, 0x2d, 0x84, 0xb4, 0x75, 0x07, - 0x00, 0x00, +var fileDescriptor_ad9f6b41a6524b4e = []byte{ + // 647 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xdf, 0x4e, 0xd4, 0x40, + 0x14, 0xc6, 0x77, 0x05, 0x51, 0x67, 0x01, 0x75, 0x24, 0x71, 0x83, 0xb8, 0xa0, 0x42, 0x20, 0xa0, + 0x6d, 0xc4, 0x27, 0xa0, 0x2b, 0x18, 0x12, 0xf9, 0xe3, 0xae, 0x57, 0xc6, 0xa4, 0x99, 0x96, 0x33, + 0xdd, 0xc6, 0xdd, 0x19, 0x6c, 0x0f, 0x91, 0xf5, 0x29, 0x7c, 0x12, 0x9f, 0x83, 0x4b, 0x2e, 0xbd, + 0x32, 0x06, 0x5e, 0xc4, 0x74, 0x3a, 0x5d, 0xda, 0x6e, 0xb7, 0xf4, 0xae, 0x64, 0xbe, 0xef, 0xf7, + 0x71, 0xce, 0x9e, 0x73, 0xc8, 0x92, 0xe0, 0x38, 0x10, 0x5e, 0x60, 0xf6, 0x19, 0x42, 0x88, 0xa6, + 0x07, 0x02, 0x42, 0x3f, 0x34, 0x4e, 0x03, 0x89, 0x92, 0x2e, 0x61, 0x0f, 0x42, 0xff, 0x5c, 0x00, + 0xfe, 0x90, 0xc1, 0x37, 0x23, 0xfa, 0xe4, 0x68, 0x68, 0xcb, 0xe2, 0x82, 0x27, 0x3d, 0xa9, 0x84, + 0x66, 0xf4, 0x15, 0x7b, 0x16, 0x9f, 0xe5, 0x88, 0xa7, 0x2c, 0x60, 0x03, 0x0d, 0x5c, 0x5c, 0xce, + 0x3d, 0x0a, 0x8e, 0x76, 0xe8, 0xf6, 0x60, 0xc0, 0xb4, 0xe0, 0x79, 0x81, 0xe0, 0x84, 0x61, 0xf2, + 0xbc, 0x96, 0x7b, 0x66, 0x2e, 0xfa, 0x52, 0xd8, 0xce, 0xd0, 0x0e, 0x80, 0xdb, 0xfe, 0x89, 0x96, + 0xbd, 0xc8, 0xc9, 0x64, 0xe0, 0x31, 0xe1, 0xff, 0x64, 0x91, 0x58, 0x4b, 0xb6, 0x26, 0xfe, 0x27, + 0x11, 0xcd, 0x95, 0x02, 0x03, 0xe6, 0xa2, 0x16, 0xbf, 0x2a, 0x10, 0x73, 0x80, 0x48, 0xc6, 0x7d, + 0x4f, 0x8b, 0x56, 0x27, 0x88, 0x1c, 0xd6, 0x67, 0xc2, 0x85, 0x09, 0x15, 0x0c, 0x00, 0x59, 0x54, + 0xa0, 0xed, 0x06, 0xc0, 0x50, 0x06, 0x25, 0x89, 0xae, 0xec, 0xf7, 0xc1, 0x4d, 0xd5, 0xb0, 0x5a, + 0xdc, 0x0d, 0x38, 0x07, 0xf7, 0xec, 0x06, 0x95, 0x4f, 0xd4, 0x55, 0x32, 0xc4, 0xc0, 0x77, 0xce, + 0x10, 0xca, 0x5b, 0x2b, 0x79, 0xf6, 0x07, 0x5a, 0xcf, 0xc9, 0x92, 0xb0, 0xbc, 0xf0, 0xe5, 0x6f, + 0x42, 0x66, 0x3f, 0xc4, 0xd3, 0xd4, 0x45, 0x86, 0x40, 0x2d, 0x32, 0x13, 0xcf, 0x42, 0xb3, 0xbe, + 0x52, 0xdf, 0x68, 0x6c, 0xaf, 0x1a, 0x65, 0xd3, 0x65, 0x1c, 0x2b, 0xad, 0x35, 0x7d, 0xf1, 0x77, + 0xb9, 0xd6, 0xd1, 0x4e, 0xda, 0x25, 0x73, 0x62, 0xef, 0x73, 0x57, 0xe5, 0x7c, 0xf4, 0x43, 0x6c, + 0xde, 0x59, 0x99, 0xda, 0x68, 0x6c, 0xaf, 0x97, 0xa3, 0x0e, 0x13, 0x8b, 0xa6, 0x65, 0x19, 0xf4, + 0x80, 0x34, 0x04, 0xc7, 0xf7, 0x0c, 0x63, 0xe4, 0x94, 0x42, 0xae, 0xdd, 0x82, 0x8c, 0x0d, 0x1a, + 0x98, 0xf6, 0x53, 0x9b, 0x3c, 0x8e, 0x7b, 0x67, 0x0d, 0x3b, 0xc0, 0xf7, 0x4f, 0x14, 0x74, 0x5a, + 0x41, 0xb7, 0xca, 0xa1, 0x3b, 0x69, 0x9b, 0x46, 0x8f, 0xb3, 0xe8, 0x57, 0xf2, 0x28, 0x3d, 0xd0, + 0x8a, 0x7f, 0x57, 0xf1, 0x37, 0xcb, 0xf9, 0x47, 0x29, 0x97, 0xc6, 0x8f, 0x91, 0xe8, 0x77, 0xf2, + 0x74, 0xd4, 0x1e, 0x6b, 0xd8, 0xd6, 0x8b, 0xa0, 0x42, 0xee, 0xa9, 0x90, 0xb7, 0x55, 0x9b, 0x3d, + 0x32, 0xeb, 0xac, 0x49, 0x5c, 0x7a, 0x4c, 0xe6, 0xb3, 0x1b, 0xd5, 0xbc, 0xaf, 0x26, 0x64, 0xf3, + 0xd6, 0xa4, 0x3d, 0x80, 0xb6, 0x72, 0x74, 0x66, 0x05, 0xc7, 0xd1, 0x5f, 0xf4, 0x93, 0x9a, 0x93, + 0x3d, 0x00, 0x2b, 0x5e, 0xbe, 0xe6, 0x03, 0x05, 0xdc, 0xaa, 0x02, 0xd4, 0x96, 0x4e, 0x96, 0x40, + 0x81, 0x3c, 0x49, 0x76, 0xb5, 0x1d, 0xaf, 0xaa, 0xea, 0x09, 0x51, 0x3d, 0x79, 0x53, 0x0e, 0x3e, + 0xc8, 0x1a, 0x75, 0x3f, 0x8a, 0x78, 0xd1, 0xf4, 0x08, 0x8e, 0xed, 0xd1, 0xaa, 0xab, 0x90, 0x46, + 0x95, 0xe9, 0x39, 0x4c, 0xdb, 0x92, 0xe9, 0x19, 0x63, 0x51, 0x87, 0xd0, 0x78, 0xa4, 0x76, 0xf5, + 0xe6, 0xaa, 0x84, 0x59, 0x95, 0xf0, 0xba, 0xca, 0x7c, 0x26, 0x3e, 0x1d, 0x51, 0x40, 0x8b, 0x7a, + 0x15, 0xdf, 0x82, 0x9d, 0xe4, 0xc8, 0xa8, 0x90, 0xb9, 0x2a, 0xbd, 0xea, 0x66, 0x8d, 0x49, 0xaf, + 0x0a, 0x78, 0x37, 0xa5, 0x1c, 0xf1, 0xd4, 0x49, 0x98, 0xaf, 0x5e, 0x4a, 0xe2, 0xcb, 0x96, 0x92, + 0xa6, 0xd1, 0x1e, 0x59, 0x48, 0x4e, 0x5c, 0x26, 0xe5, 0xa1, 0x4a, 0x31, 0xca, 0x53, 0x76, 0x73, + 0x4e, 0x9d, 0x53, 0x48, 0xb4, 0xf6, 0x2f, 0xae, 0x5a, 0xf5, 0xcb, 0xab, 0x56, 0xfd, 0xdf, 0x55, + 0xab, 0xfe, 0xeb, 0xba, 0x55, 0xbb, 0xbc, 0x6e, 0xd5, 0xfe, 0x5c, 0xb7, 0x6a, 0x5f, 0x4c, 0xcf, + 0xc7, 0xde, 0x99, 0x63, 0xb8, 0x72, 0x60, 0x66, 0xf2, 0xcc, 0x38, 0xcf, 0x3c, 0x37, 0x93, 0xab, + 0x8c, 0xc3, 0x53, 0x08, 0x9d, 0x19, 0x75, 0x82, 0xdf, 0xfd, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x22, + 0xc7, 0x36, 0x2c, 0xde, 0x07, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/message_perform_action_by_admin.go b/x/nftmngr/types/message_perform_action_by_admin.go index 4119099d..9c837cb2 100644 --- a/x/nftmngr/types/message_perform_action_by_admin.go +++ b/x/nftmngr/types/message_perform_action_by_admin.go @@ -2,7 +2,6 @@ package types import ( "encoding/json" - "fmt" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -17,7 +16,7 @@ func NewMsgPerformActionByAdmin(creator string, nftSchemaCode string, tokenId st var actionPrams_ []*ActionParameter err := json.Unmarshal([]byte(actionPrams), &actionPrams_) if err != nil { - fmt.Println("Error in NewMsgPerformActionByAdmin: ", err) + panic(err) } return &MsgPerformActionByAdmin{ diff --git a/x/nftmngr/types/message_toggle_action.go b/x/nftmngr/types/message_toggle_action.go index f64c7233..c978ec1a 100644 --- a/x/nftmngr/types/message_toggle_action.go +++ b/x/nftmngr/types/message_toggle_action.go @@ -9,12 +9,12 @@ const TypeMsgToggleAction = "toggle_action" var _ sdk.Msg = &MsgToggleAction{} -func NewMsgToggleAction(creator string, code string, action string, disable bool) *MsgToggleAction { +func NewMsgToggleAction(creator string, code string, action string, status bool) *MsgToggleAction { return &MsgToggleAction{ Creator: creator, Code: code, Action: action, - Disable: disable, + Status: status, } } diff --git a/x/nftmngr/types/meta.go b/x/nftmngr/types/meta.go index 14f7a15e..e062c49a 100644 --- a/x/nftmngr/types/meta.go +++ b/x/nftmngr/types/meta.go @@ -108,6 +108,10 @@ func (m *Metadata) GetTokenURI() string { return m.nftData.TokenUri } +func (m *Metadata) GetTokenID() string { + return m.nftData.TokenId +} + func (m *Metadata) SetTokenURI(uri string) { m.ChangeList = append(m.ChangeList, &MetadataChange{ Key: "tokenURI", @@ -475,6 +479,38 @@ func (p *ActionParameter) GetNumber() uint64 { return v } +func (p *ActionParameter) MustGetFloat(key string) (float64, error) { + v, err := strconv.ParseFloat(p.Value, 64) + if err != nil { + return 0, sdkerrors.Wrap(ErrAttributeTypeNotMatch, key) + } + return v, nil +} + +func (p *ActionParameter) GetFloat() float64 { + v, err := p.MustGetFloat(p.Name) + if err != nil { + panic(err) + } + return v +} + +func (p *ActionParameter) MustGetBool(key string) (bool, error) { + v, err := strconv.ParseBool(p.Value) + if err != nil { + return false, sdkerrors.Wrap(ErrAttributeTypeNotMatch, key) + } + return v, nil +} + +func (p *ActionParameter) GetBoolean() bool { + v, err := p.MustGetBool(p.Name) + if err != nil { + panic(err) + } + return v +} + func (p *ActionParameter) GetString() string { return p.Value } @@ -506,6 +542,6 @@ func (p *ActionParameter) ToLowerCase() string { } // return UpperCase of parameter -func (p *ActionParameter) TtUpperCase() string { +func (p *ActionParameter) ToUpperCase() string { return strings.ToUpper(p.Value) } diff --git a/x/nftmngr/types/metadata_creator.pb.go b/x/nftmngr/types/metadata_creator.pb.go index 97f4a178..0516dea9 100644 --- a/x/nftmngr/types/metadata_creator.pb.go +++ b/x/nftmngr/types/metadata_creator.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/metadata_creator.proto +// source: nftmngr/latest/metadata_creator.proto package types @@ -31,7 +31,7 @@ func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } func (*MapTokenToMinter) ProtoMessage() {} func (*MapTokenToMinter) Descriptor() ([]byte, []int) { - return fileDescriptor_6792a93868be51b9, []int{0} + return fileDescriptor_e4fbbb1dea62acbc, []int{0} } func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } func (*MetadataCreator) ProtoMessage() {} func (*MetadataCreator) Descriptor() ([]byte, []int) { - return fileDescriptor_6792a93868be51b9, []int{1} + return fileDescriptor_e4fbbb1dea62acbc, []int{1} } func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -131,27 +131,29 @@ func init() { proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.MetadataCreator") } -func init() { proto.RegisterFile("nftmngr/metadata_creator.proto", fileDescriptor_6792a93868be51b9) } +func init() { + proto.RegisterFile("nftmngr/latest/metadata_creator.proto", fileDescriptor_e4fbbb1dea62acbc) +} -var fileDescriptor_6792a93868be51b9 = []byte{ - // 257 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcb, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0x8c, 0x4f, 0x2e, 0x4a, - 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, - 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, - 0x9a, 0x94, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, - 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, - 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, - 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, 0x9a, 0xcc, 0xc8, 0xc5, 0xef, 0x0b, 0xb5, 0xdf, - 0x19, 0x62, 0xbd, 0x90, 0x0a, 0x17, 0x6f, 0x5e, 0x5a, 0x49, 0x70, 0x72, 0x46, 0x6a, 0x6e, 0xa2, - 0x73, 0x7e, 0x4a, 0x2a, 0xd4, 0x2c, 0x54, 0x41, 0xa1, 0x28, 0x2e, 0x01, 0x98, 0xc3, 0xc1, 0xd6, - 0xa7, 0x38, 0x55, 0x4a, 0x30, 0x29, 0x30, 0x6b, 0x70, 0x1b, 0xe9, 0xe9, 0xe1, 0x73, 0xb9, 0x1e, - 0xba, 0xb3, 0x83, 0x30, 0xcc, 0x71, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, - 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, - 0x86, 0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, - 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x82, 0xb5, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, - 0x1c, 0x98, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x97, 0x34, 0x97, 0x6e, 0x01, 0x00, - 0x00, +var fileDescriptor_e4fbbb1dea62acbc = []byte{ + // 264 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, + 0x49, 0x2c, 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, 0x42, + 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, 0x38, + 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, 0xbe, + 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, 0x9a, + 0xcc, 0xc8, 0xc5, 0xef, 0x0b, 0xb5, 0xdf, 0x19, 0x62, 0xbd, 0x90, 0x0a, 0x17, 0x6f, 0x5e, 0x5a, + 0x49, 0x70, 0x72, 0x46, 0x6a, 0x6e, 0xa2, 0x73, 0x7e, 0x4a, 0x2a, 0xd4, 0x2c, 0x54, 0x41, 0xa1, + 0x28, 0x2e, 0x01, 0x98, 0xc3, 0xc1, 0xd6, 0xa7, 0x38, 0x55, 0x4a, 0x30, 0x29, 0x30, 0x6b, 0x70, + 0x1b, 0xe9, 0xe9, 0xe1, 0x73, 0xb9, 0x1e, 0xba, 0xb3, 0x83, 0x30, 0xcc, 0x71, 0xf2, 0x3c, 0xf1, + 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, + 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, + 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xb7, + 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x98, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x67, 0x0d, 0xc9, 0xfe, 0x75, 0x01, 0x00, 0x00, } func (m *MapTokenToMinter) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_attribute_value.pb.go b/x/nftmngr/types/nft_attribute_value.pb.go index a18f4bea..4658026b 100644 --- a/x/nftmngr/types/nft_attribute_value.pb.go +++ b/x/nftmngr/types/nft_attribute_value.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_attribute_value.proto +// source: nftmngr/latest/nft_attribute_value.proto package types @@ -39,7 +39,7 @@ func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } func (*NftAttributeValue) ProtoMessage() {} func (*NftAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8e19febe892d5c1e, []int{0} + return fileDescriptor_566403a0c9c4adef, []int{0} } func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -159,7 +159,7 @@ func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } func (*NumberAttributeValue) ProtoMessage() {} func (*NumberAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8e19febe892d5c1e, []int{1} + return fileDescriptor_566403a0c9c4adef, []int{1} } func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -203,7 +203,7 @@ func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } func (*StringAttributeValue) ProtoMessage() {} func (*StringAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8e19febe892d5c1e, []int{2} + return fileDescriptor_566403a0c9c4adef, []int{2} } func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -247,7 +247,7 @@ func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } func (*BooleanAttributeValue) ProtoMessage() {} func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8e19febe892d5c1e, []int{3} + return fileDescriptor_566403a0c9c4adef, []int{3} } func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -291,7 +291,7 @@ func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } func (*FloatAttributeValue) ProtoMessage() {} func (*FloatAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8e19febe892d5c1e, []int{4} + return fileDescriptor_566403a0c9c4adef, []int{4} } func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -335,35 +335,37 @@ func init() { proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.FloatAttributeValue") } -func init() { proto.RegisterFile("nftmngr/nft_attribute_value.proto", fileDescriptor_8e19febe892d5c1e) } - -var fileDescriptor_8e19febe892d5c1e = []byte{ - // 392 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xb1, 0x4e, 0xe3, 0x30, - 0x18, 0xc7, 0xe3, 0xbb, 0xb4, 0xd7, 0xfa, 0xa6, 0x73, 0x9b, 0x23, 0x20, 0x14, 0x95, 0x4e, 0x95, - 0x80, 0x58, 0xb4, 0x4f, 0x40, 0x07, 0x04, 0x03, 0x1d, 0x02, 0x62, 0x60, 0x89, 0x9c, 0xd6, 0x49, - 0x43, 0x13, 0xbb, 0x4a, 0x1c, 0x68, 0xdf, 0x82, 0x81, 0x87, 0x62, 0xec, 0xc8, 0x88, 0xda, 0x17, - 0x41, 0x71, 0x1a, 0x55, 0x21, 0x51, 0xc5, 0x66, 0xf9, 0xfb, 0xfd, 0xfd, 0xfb, 0xf2, 0x39, 0x86, - 0x27, 0xcc, 0x15, 0x21, 0xf3, 0x22, 0xcc, 0x5c, 0x61, 0x13, 0x21, 0x22, 0xdf, 0x49, 0x04, 0xb5, - 0x9f, 0x49, 0x90, 0x50, 0x73, 0x1e, 0x71, 0xc1, 0xd1, 0xb1, 0x98, 0xd2, 0xd8, 0x5f, 0x30, 0x2a, - 0x5e, 0x78, 0x34, 0x33, 0xd3, 0xa5, 0x2b, 0xcc, 0x6d, 0xee, 0xe8, 0xd0, 0xe3, 0xdc, 0x0b, 0x28, - 0x96, 0xac, 0x93, 0xb8, 0x98, 0xb0, 0x65, 0x16, 0xec, 0xbe, 0xa9, 0xf0, 0xdf, 0xc8, 0x15, 0x97, - 0xf9, 0xa9, 0x0f, 0xe9, 0xa1, 0x08, 0x41, 0x95, 0x91, 0x90, 0xea, 0xa0, 0x03, 0x7a, 0x4d, 0x4b, - 0xae, 0xd1, 0x13, 0xfc, 0xcf, 0x92, 0xd0, 0xa1, 0xd1, 0xf7, 0x16, 0xf4, 0x5f, 0x1d, 0xd0, 0xfb, - 0xdb, 0xef, 0x9b, 0xfb, 0x7a, 0x30, 0x47, 0x32, 0x5b, 0xf4, 0x5c, 0x2b, 0x56, 0x9b, 0x55, 0xec, - 0xa7, 0xae, 0x58, 0x44, 0x3e, 0xf3, 0x4a, 0xae, 0xdf, 0x3f, 0x71, 0xdd, 0xc9, 0x6c, 0xd9, 0x15, - 0x57, 0xec, 0xa3, 0x10, 0x1e, 0x38, 0x9c, 0x07, 0x94, 0xb0, 0x92, 0x4c, 0x95, 0xb2, 0xc1, 0x7e, - 0xd9, 0x30, 0x0b, 0x97, 0x6c, 0x9a, 0x53, 0x55, 0x40, 0x1e, 0xd4, 0xdc, 0x80, 0x93, 0xd2, 0x45, - 0xea, 0x35, 0x29, 0xbb, 0xd8, 0x2f, 0xbb, 0x4a, 0xa3, 0x25, 0x55, 0xcb, 0x2d, 0x6f, 0xa3, 0x3e, - 0xd4, 0xa6, 0xfe, 0x64, 0x42, 0x99, 0x2d, 0xb8, 0x1d, 0x92, 0x68, 0x46, 0xc5, 0x3c, 0x20, 0x63, - 0xaa, 0xd7, 0x3b, 0xa0, 0xd7, 0xb0, 0x5a, 0x59, 0xf1, 0x9e, 0xdf, 0xee, 0x4a, 0xc3, 0x3f, 0xb0, - 0x26, 0x9b, 0xe9, 0x9e, 0xc1, 0x76, 0xd5, 0x85, 0xa1, 0xf6, 0x16, 0x90, 0x7f, 0x86, 0x6a, 0xed, - 0xe8, 0xaa, 0x91, 0x17, 0xe9, 0x66, 0x4e, 0x9f, 0x43, 0xad, 0x72, 0x66, 0x45, 0xbc, 0x91, 0xe3, - 0xa7, 0xb0, 0x55, 0xf1, 0xd5, 0x45, 0x18, 0x6c, 0xe1, 0xe1, 0xcd, 0xfb, 0xda, 0x00, 0xab, 0xb5, - 0x01, 0x3e, 0xd7, 0x06, 0x78, 0xdd, 0x18, 0xca, 0x6a, 0x63, 0x28, 0x1f, 0x1b, 0x43, 0x79, 0xc4, - 0x9e, 0x2f, 0xa6, 0x89, 0x63, 0x8e, 0x79, 0x88, 0x0b, 0x23, 0xc6, 0xd9, 0x88, 0xf1, 0x02, 0xe7, - 0xcf, 0x4c, 0x2c, 0xe7, 0x34, 0x76, 0xea, 0xf2, 0x81, 0x0c, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, - 0xbe, 0xd2, 0x1c, 0x9f, 0x7e, 0x03, 0x00, 0x00, +func init() { + proto.RegisterFile("nftmngr/latest/nft_attribute_value.proto", fileDescriptor_566403a0c9c4adef) +} + +var fileDescriptor_566403a0c9c4adef = []byte{ + // 397 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xb1, 0x8e, 0x9b, 0x30, + 0x18, 0xc7, 0x71, 0x4b, 0xd2, 0xc4, 0x9d, 0xea, 0x84, 0x96, 0x56, 0x15, 0x8a, 0x32, 0x21, 0xb5, + 0xc5, 0x6a, 0xf2, 0x04, 0xcd, 0x50, 0xb5, 0x43, 0x33, 0xd0, 0xaa, 0x43, 0x17, 0x64, 0x12, 0x43, + 0x68, 0xc0, 0x8e, 0xe0, 0xe3, 0x2e, 0x79, 0x8b, 0x1b, 0xee, 0xa1, 0x6e, 0xcc, 0x78, 0xe3, 0x29, + 0x79, 0x91, 0x13, 0x26, 0x28, 0xe2, 0x40, 0xd1, 0x6d, 0x96, 0xbf, 0xdf, 0xdf, 0xbf, 0x8f, 0xcf, + 0x18, 0xdb, 0x22, 0x80, 0x44, 0x84, 0x29, 0x8d, 0x19, 0xf0, 0x0c, 0xa8, 0x08, 0xc0, 0x63, 0x00, + 0x69, 0xe4, 0xe7, 0xc0, 0xbd, 0x2b, 0x16, 0xe7, 0xdc, 0xd9, 0xa4, 0x12, 0x24, 0xf9, 0x08, 0x2b, + 0x9e, 0x45, 0x5b, 0xc1, 0xe1, 0x5a, 0xa6, 0x6b, 0xa7, 0x58, 0x06, 0xe0, 0x9c, 0xe2, 0x1f, 0xde, + 0x87, 0x52, 0x86, 0x31, 0xa7, 0x8a, 0xf5, 0xf3, 0x80, 0x32, 0xb1, 0x2b, 0x83, 0xe3, 0x5b, 0x1d, + 0xbf, 0x99, 0x07, 0xf0, 0xad, 0x3a, 0xf5, 0x6f, 0x71, 0x28, 0x21, 0x58, 0x17, 0x2c, 0xe1, 0x26, + 0x1a, 0x21, 0xbb, 0xef, 0xaa, 0x35, 0xf9, 0x8f, 0xdf, 0x8a, 0x3c, 0xf1, 0x79, 0xfa, 0xb4, 0x05, + 0xf3, 0xc5, 0x08, 0xd9, 0xaf, 0x27, 0x13, 0xe7, 0x52, 0x0f, 0xce, 0x5c, 0x65, 0xeb, 0x9e, 0x1f, + 0x9a, 0x3b, 0x14, 0x2d, 0xfb, 0x85, 0x2b, 0x83, 0x34, 0x12, 0x61, 0xc3, 0xf5, 0xf2, 0x39, 0xae, + 0xdf, 0x2a, 0xdb, 0x74, 0x65, 0x2d, 0xfb, 0x24, 0xc1, 0xef, 0x7c, 0x29, 0x63, 0xce, 0x44, 0x43, + 0xa6, 0x2b, 0xd9, 0xf4, 0xb2, 0x6c, 0x56, 0x86, 0x1b, 0x36, 0xc3, 0x6f, 0x2b, 0x90, 0x10, 0x1b, + 0x41, 0x2c, 0x59, 0xe3, 0x22, 0xcd, 0x8e, 0x92, 0x7d, 0xbd, 0x2c, 0xfb, 0x5e, 0x44, 0x1b, 0xaa, + 0x41, 0xd0, 0xdc, 0x26, 0x13, 0x6c, 0xac, 0xa2, 0xe5, 0x92, 0x0b, 0x0f, 0xa4, 0x97, 0xb0, 0x74, + 0xcd, 0x61, 0x13, 0xb3, 0x05, 0x37, 0xbb, 0x23, 0x64, 0xf7, 0xdc, 0x41, 0x59, 0xfc, 0x23, 0x7f, + 0x9d, 0x4b, 0xb3, 0x57, 0xb8, 0xa3, 0x9a, 0x19, 0x7f, 0xc6, 0xc3, 0xb6, 0x0b, 0x23, 0xc3, 0x13, + 0xa0, 0xfe, 0x0c, 0xdd, 0x3d, 0xd3, 0x6d, 0x23, 0xaf, 0xd3, 0xfd, 0x8a, 0xfe, 0x82, 0x8d, 0xd6, + 0x99, 0xd5, 0xf1, 0x5e, 0x85, 0x7f, 0xc2, 0x83, 0x96, 0xaf, 0xae, 0xc3, 0xe8, 0x04, 0xcf, 0x7e, + 0xde, 0x1d, 0x2c, 0xb4, 0x3f, 0x58, 0xe8, 0xe1, 0x60, 0xa1, 0x9b, 0xa3, 0xa5, 0xed, 0x8f, 0x96, + 0x76, 0x7f, 0xb4, 0xb4, 0x7f, 0x34, 0x8c, 0x60, 0x95, 0xfb, 0xce, 0x42, 0x26, 0xb4, 0x36, 0x62, + 0x5a, 0x8e, 0x98, 0x6e, 0x69, 0xf5, 0xda, 0x60, 0xb7, 0xe1, 0x99, 0xdf, 0x55, 0x0f, 0x64, 0xfa, + 0x18, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xcb, 0x58, 0x20, 0x85, 0x03, 0x00, 0x00, } func (m *NftAttributeValue) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_collection.pb.go b/x/nftmngr/types/nft_collection.pb.go index 9cb6553d..dd212257 100644 --- a/x/nftmngr/types/nft_collection.pb.go +++ b/x/nftmngr/types/nft_collection.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_collection.proto +// source: nftmngr/latest/nft_collection.proto package types @@ -32,7 +32,7 @@ func (m *NftCollection) Reset() { *m = NftCollection{} } func (m *NftCollection) String() string { return proto.CompactTextString(m) } func (*NftCollection) ProtoMessage() {} func (*NftCollection) Descriptor() ([]byte, []int) { - return fileDescriptor_512bb9d739eee40d, []int{0} + return fileDescriptor_1040d64df20b5c5b, []int{0} } func (m *NftCollection) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,25 +86,28 @@ func init() { proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.NftCollection") } -func init() { proto.RegisterFile("nftmngr/nft_collection.proto", fileDescriptor_512bb9d739eee40d) } +func init() { + proto.RegisterFile("nftmngr/latest/nft_collection.proto", fileDescriptor_1040d64df20b5c5b) +} -var fileDescriptor_512bb9d739eee40d = []byte{ - // 234 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, 0xc9, 0x49, 0x4d, 0x2e, 0xc9, - 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, - 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0xa4, - 0xc4, 0x90, 0xf5, 0xa6, 0x24, 0x96, 0x24, 0x42, 0x74, 0x29, 0xf5, 0x31, 0x72, 0xf1, 0xfa, 0xa5, - 0x95, 0x38, 0xc3, 0x4d, 0x13, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, 0x4e, 0xce, 0x48, 0xcd, - 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x15, 0x14, 0x12, - 0xe1, 0x62, 0x2d, 0xc9, 0x2f, 0x49, 0xcc, 0x91, 0x60, 0x52, 0x60, 0xd4, 0x60, 0x09, 0x82, 0x70, - 0x84, 0x1c, 0xb9, 0x38, 0xf2, 0xd2, 0x4a, 0x5c, 0x12, 0x4b, 0x12, 0x8b, 0x25, 0x98, 0x15, 0x98, - 0x35, 0xb8, 0x8d, 0x54, 0xf5, 0xf0, 0x39, 0x4b, 0xcf, 0x0f, 0xa2, 0x3a, 0x08, 0xae, 0xcd, 0xc9, - 0xf3, 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, 0xf4, 0xd3, 0x33, 0x4b, 0x32, - 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x0c, 0xd5, 0x87, 0x18, 0xaa, 0x5f, 0xa1, 0x0f, - 0xf3, 0x64, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x8b, 0xc6, 0x80, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x61, 0x1b, 0x5c, 0x6e, 0x38, 0x01, 0x00, 0x00, +var fileDescriptor_1040d64df20b5c5b = []byte{ + // 241 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, + 0xce, 0xcf, 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xa5, 0x64, 0xb1, 0x18, 0x91, 0x92, 0x58, 0x92, 0x08, 0xd1, + 0xac, 0xd4, 0xc7, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x54, 0x48, 0x85, 0x8b, 0x37, + 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, 0x81, + 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, 0x82, + 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe4, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, 0x49, + 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0x52, 0xd5, 0xc3, 0xe7, 0x3a, 0x3d, + 0x3f, 0x88, 0xea, 0x20, 0xb8, 0x36, 0x27, 0xcf, 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, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x31, + 0x54, 0x1f, 0x62, 0xa8, 0x7e, 0x85, 0x3e, 0xcc, 0xaf, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, + 0x60, 0x2f, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xeb, 0x3f, 0x7e, 0x46, 0x01, 0x00, + 0x00, } func (m *NftCollection) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_data.pb.go b/x/nftmngr/types/nft_data.pb.go index c71f590f..514db15d 100644 --- a/x/nftmngr/types/nft_data.pb.go +++ b/x/nftmngr/types/nft_data.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_data.proto +// source: nftmngr/latest/nft_data.proto package types @@ -44,7 +44,7 @@ func (x OwnerAddressType) String() string { } func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_57c30ce621a5c153, []int{0} + return fileDescriptor_2b8e12fb8b8ea00b, []int{0} } type NftData struct { @@ -63,7 +63,7 @@ func (m *NftData) Reset() { *m = NftData{} } func (m *NftData) String() string { return proto.CompactTextString(m) } func (*NftData) ProtoMessage() {} func (*NftData) Descriptor() ([]byte, []int) { - return fileDescriptor_57c30ce621a5c153, []int{0} + return fileDescriptor_2b8e12fb8b8ea00b, []int{0} } func (m *NftData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -160,37 +160,38 @@ func init() { proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.NftData") } -func init() { proto.RegisterFile("nftmngr/nft_data.proto", fileDescriptor_57c30ce621a5c153) } +func init() { proto.RegisterFile("nftmngr/latest/nft_data.proto", fileDescriptor_2b8e12fb8b8ea00b) } -var fileDescriptor_57c30ce621a5c153 = []byte{ - // 430 bytes of a gzipped FileDescriptorProto +var fileDescriptor_2b8e12fb8b8ea00b = []byte{ + // 435 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0x13, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x10, 0x0a, 0x7f, 0x14, 0x3a, 0x90, 0x50, - 0xc5, 0x21, 0x91, 0xc6, 0x95, 0x4b, 0xa0, 0x13, 0x8a, 0x84, 0x32, 0x29, 0x1d, 0x1c, 0xd0, 0x84, - 0xe5, 0x26, 0x4e, 0x62, 0x8d, 0xd8, 0x95, 0xf3, 0x86, 0x6d, 0xdf, 0x82, 0x8f, 0xc5, 0x71, 0x47, - 0x8e, 0xa8, 0xbd, 0xf3, 0x19, 0x50, 0xec, 0x34, 0x8c, 0x1d, 0x76, 0xe0, 0x96, 0xfc, 0xde, 0xe7, - 0x7d, 0xfc, 0x3e, 0xf6, 0x8b, 0x1e, 0x8a, 0x1c, 0x2a, 0x51, 0xa8, 0x40, 0xe4, 0x40, 0x32, 0x0a, - 0xd4, 0x5f, 0x2a, 0x09, 0x12, 0x3f, 0x85, 0x92, 0xd5, 0xfc, 0x42, 0x30, 0x38, 0x97, 0xea, 0xcc, - 0x6f, 0x3f, 0x73, 0xf0, 0x3b, 0xf1, 0xe3, 0x83, 0xeb, 0x5d, 0x14, 0x40, 0xf1, 0x45, 0x03, 0x8c, - 0x7c, 0xa3, 0x5f, 0x1b, 0x66, 0x0c, 0x9e, 0xff, 0x1e, 0xa0, 0x61, 0x9c, 0xc3, 0x8c, 0x02, 0xc5, - 0x2f, 0xd1, 0xfd, 0x56, 0x58, 0xa7, 0x25, 0xab, 0x28, 0x49, 0x65, 0xc6, 0x5c, 0x7b, 0x62, 0x4f, - 0x47, 0xc9, 0xae, 0xc8, 0x61, 0xae, 0xe9, 0x3b, 0x99, 0x31, 0xfc, 0x08, 0x6d, 0x83, 0x3c, 0x63, - 0x82, 0xf0, 0xcc, 0xbd, 0xa3, 0x05, 0x43, 0xfd, 0x1f, 0x65, 0xf8, 0x19, 0x1a, 0x9b, 0x92, 0x3c, - 0x17, 0x4c, 0xb9, 0x03, 0x5d, 0x45, 0x1a, 0x1d, 0xb7, 0x04, 0x9f, 0x22, 0xac, 0x4b, 0x84, 0x66, - 0x99, 0x62, 0x75, 0x4d, 0xe0, 0x72, 0xc9, 0xdc, 0xbb, 0x13, 0x7b, 0xba, 0x77, 0xe8, 0xfb, 0xb7, - 0xa5, 0xf1, 0xb5, 0x41, 0x68, 0xda, 0x4e, 0x2e, 0x97, 0x2c, 0x71, 0xe4, 0x0d, 0x82, 0x0f, 0xd0, - 0x8e, 0x54, 0xbc, 0xe0, 0x82, 0xf0, 0x8a, 0x16, 0xcc, 0xbd, 0xa7, 0xcf, 0x1f, 0x1b, 0x16, 0xb5, - 0x08, 0xbf, 0x40, 0xbb, 0x52, 0xa4, 0x25, 0xed, 0x35, 0x5b, 0x5a, 0xb3, 0xd3, 0x41, 0x23, 0x7a, - 0x82, 0x46, 0x26, 0x46, 0xa3, 0xb8, 0x3b, 0xd4, 0x02, 0x13, 0xf9, 0xa3, 0xe2, 0xf8, 0x14, 0xed, - 0x77, 0x87, 0xf4, 0x57, 0x5a, 0xbb, 0xdb, 0x93, 0xc1, 0x74, 0x7c, 0x18, 0xdc, 0x9e, 0x20, 0xce, - 0x21, 0xdc, 0xb4, 0x7c, 0x6a, 0x1f, 0x21, 0x71, 0x8c, 0x53, 0x4f, 0x6b, 0xfc, 0x05, 0xe1, 0xcd, - 0x7c, 0xd7, 0xec, 0x47, 0xff, 0x67, 0xbf, 0xdf, 0x59, 0xfd, 0xf5, 0x7f, 0xf5, 0x06, 0x39, 0x37, - 0x2f, 0x12, 0x63, 0xb4, 0x77, 0x9c, 0x44, 0xef, 0xa3, 0x98, 0x84, 0xb3, 0x59, 0x72, 0x34, 0x9f, - 0x3b, 0x16, 0x7e, 0x80, 0x9c, 0x28, 0x3e, 0x39, 0x4a, 0xe2, 0xf0, 0x43, 0x4f, 0xed, 0xb7, 0xd1, - 0x8f, 0x95, 0x67, 0x5f, 0xad, 0x3c, 0xfb, 0xd7, 0xca, 0xb3, 0xbf, 0xaf, 0x3d, 0xeb, 0x6a, 0xed, - 0x59, 0x3f, 0xd7, 0x9e, 0xf5, 0x39, 0x28, 0x38, 0x94, 0xcd, 0xc2, 0x4f, 0x65, 0x15, 0xfc, 0x33, - 0x65, 0x60, 0xa6, 0x0c, 0x2e, 0x82, 0xcd, 0x36, 0xb6, 0x4f, 0x5e, 0x2f, 0xb6, 0xf4, 0x02, 0xbe, - 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x33, 0x29, 0x0e, 0x4e, 0xdb, 0x02, 0x00, 0x00, + 0x18, 0xc6, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x84, 0x7f, 0xa1, 0x80, 0x84, 0x2a, + 0x0e, 0xb1, 0x34, 0xae, 0x5c, 0x0a, 0x9d, 0x50, 0x24, 0x94, 0x49, 0xe9, 0xe0, 0x80, 0x26, 0x2c, + 0xb7, 0x71, 0x1a, 0x6b, 0x8b, 0x5d, 0xd9, 0x6f, 0xd8, 0xf6, 0x2d, 0xf8, 0x58, 0x1c, 0x77, 0xe4, + 0x88, 0xda, 0x3b, 0x9f, 0x01, 0xc5, 0x4e, 0x03, 0x4c, 0x68, 0x07, 0x6e, 0xc9, 0xef, 0x7d, 0xde, + 0xc7, 0xef, 0x63, 0xbf, 0xe8, 0xb1, 0xcc, 0xa1, 0x94, 0x0b, 0x4d, 0xce, 0x18, 0x70, 0x03, 0x44, + 0xe6, 0x40, 0x33, 0x06, 0x2c, 0x5a, 0x6a, 0x05, 0x0a, 0x3f, 0x82, 0x82, 0x1b, 0x71, 0x21, 0x39, + 0x9c, 0x2b, 0x7d, 0x1a, 0xd5, 0x9f, 0x39, 0x44, 0x4d, 0xcf, 0x83, 0xd1, 0x3f, 0x9a, 0x19, 0x80, + 0x16, 0xb3, 0x0a, 0x38, 0xfd, 0xc2, 0xce, 0x2a, 0xee, 0x7c, 0x9e, 0xfd, 0xec, 0xa2, 0x5e, 0x92, + 0xc3, 0x84, 0x01, 0xc3, 0x2f, 0xd0, 0xdd, 0x5a, 0x68, 0xe6, 0x05, 0x2f, 0x19, 0x9d, 0xab, 0x8c, + 0x07, 0xde, 0xd0, 0x1b, 0xf5, 0xd3, 0x5d, 0x99, 0xc3, 0xd4, 0xd2, 0xb7, 0x2a, 0xe3, 0xf8, 0x3e, + 0xda, 0x06, 0x75, 0xca, 0x25, 0x15, 0x59, 0x70, 0xcb, 0x0a, 0x7a, 0xf6, 0x3f, 0xce, 0xf0, 0x13, + 0x34, 0x70, 0x25, 0x75, 0x2e, 0xb9, 0x0e, 0xba, 0xb6, 0x8a, 0x2c, 0x3a, 0xaa, 0x09, 0x3e, 0x41, + 0xd8, 0x96, 0x28, 0xcb, 0x32, 0xcd, 0x8d, 0xa1, 0x70, 0xb9, 0xe4, 0xc1, 0xed, 0xa1, 0x37, 0xda, + 0x3b, 0x88, 0xa2, 0x9b, 0x42, 0x45, 0xd6, 0x60, 0xec, 0xda, 0x8e, 0x2f, 0x97, 0x3c, 0xf5, 0xd5, + 0x35, 0x82, 0x9f, 0xa2, 0x1d, 0xa5, 0xc5, 0x42, 0x48, 0x2a, 0x4a, 0xb6, 0xe0, 0xc1, 0x1d, 0x7b, + 0xfe, 0xc0, 0xb1, 0xb8, 0x46, 0xf8, 0x39, 0xda, 0x55, 0x72, 0x5e, 0xb0, 0x56, 0xb3, 0x65, 0x35, + 0x3b, 0x0d, 0x74, 0xa2, 0x87, 0xa8, 0xef, 0x62, 0x54, 0x5a, 0x04, 0x3d, 0x2b, 0x70, 0x91, 0x3f, + 0x68, 0x81, 0x4f, 0xd0, 0x7e, 0x73, 0x48, 0x7b, 0xa5, 0x26, 0xd8, 0x1e, 0x76, 0x47, 0x83, 0x03, + 0x72, 0x73, 0x82, 0x24, 0x87, 0xf1, 0xa6, 0xe5, 0x63, 0xfd, 0x08, 0xa9, 0xef, 0x9c, 0x5a, 0x6a, + 0xf0, 0x67, 0x84, 0x37, 0xf3, 0xfd, 0x61, 0xdf, 0xff, 0x3f, 0xfb, 0xfd, 0xc6, 0xea, 0xb7, 0xff, + 0xcb, 0xd7, 0xc8, 0xbf, 0x7e, 0x91, 0x18, 0xa3, 0xbd, 0xa3, 0x34, 0x7e, 0x17, 0x27, 0x74, 0x3c, + 0x99, 0xa4, 0x87, 0xd3, 0xa9, 0xdf, 0xc1, 0xf7, 0x90, 0x1f, 0x27, 0xc7, 0x87, 0x69, 0x32, 0x7e, + 0xdf, 0x52, 0xef, 0x4d, 0xfc, 0x6d, 0x15, 0x7a, 0x57, 0xab, 0xd0, 0xfb, 0xb1, 0x0a, 0xbd, 0xaf, + 0xeb, 0xb0, 0x73, 0xb5, 0x0e, 0x3b, 0xdf, 0xd7, 0x61, 0xe7, 0x13, 0x59, 0x08, 0x28, 0xaa, 0x59, + 0x34, 0x57, 0x25, 0xf9, 0x6b, 0x4a, 0xe2, 0xa6, 0x24, 0x17, 0x64, 0xb3, 0x94, 0xf5, 0x93, 0x9b, + 0xd9, 0x96, 0x5d, 0xc0, 0x57, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x05, 0xfe, 0x84, 0xbb, 0xe9, + 0x02, 0x00, 0x00, } func (m *NftData) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_fee_balance.pb.go b/x/nftmngr/types/nft_fee_balance.pb.go index d5479b4b..a0c112aa 100644 --- a/x/nftmngr/types/nft_fee_balance.pb.go +++ b/x/nftmngr/types/nft_fee_balance.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_fee_balance.proto +// source: nftmngr/latest/nft_fee_balance.proto package types @@ -31,7 +31,7 @@ func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } func (*NFTFeeBalance) ProtoMessage() {} func (*NFTFeeBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_bd0cce48fb5892cd, []int{0} + return fileDescriptor_6a15720b6f640170, []int{0} } func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,21 +71,24 @@ func init() { proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.NFTFeeBalance") } -func init() { proto.RegisterFile("nftmngr/nft_fee_balance.proto", fileDescriptor_bd0cce48fb5892cd) } +func init() { + proto.RegisterFile("nftmngr/latest/nft_fee_balance.proto", fileDescriptor_6a15720b6f640170) +} -var fileDescriptor_bd0cce48fb5892cd = []byte{ - // 171 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, 0x8d, 0x4f, 0x4a, 0xcc, 0x49, - 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, - 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, - 0x94, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, 0x52, 0x53, 0x9d, 0x20, 0x9a, 0x84, 0x14, 0xb9, - 0x78, 0x90, 0xcc, 0x28, 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, - 0x76, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, - 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, - 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x6b, 0xf5, 0x21, 0xd6, 0xea, 0x57, - 0xe8, 0xc3, 0x1c, 0x5b, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xa3, 0x31, 0x20, 0x00, - 0x00, 0xff, 0xff, 0x50, 0x72, 0xbb, 0x5e, 0xc4, 0x00, 0x00, 0x00, +var fileDescriptor_6a15720b6f640170 = []byte{ + // 178 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, + 0x4b, 0x4d, 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, + 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, 0x52, + 0x53, 0x9d, 0x20, 0x9a, 0x84, 0x14, 0xb9, 0x78, 0x90, 0xcc, 0x28, 0x96, 0x60, 0x54, 0x60, 0xd6, + 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, + 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, + 0x63, 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, + 0x14, 0x6b, 0xf5, 0x21, 0xd6, 0xea, 0x57, 0xe8, 0xc3, 0xdc, 0x5c, 0x52, 0x59, 0x90, 0x5a, 0x9c, + 0xc4, 0x06, 0x76, 0xa3, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x57, 0x3e, 0x30, 0xb6, 0xcb, 0x00, + 0x00, 0x00, } func (m *NFTFeeBalance) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_fee_config.pb.go b/x/nftmngr/types/nft_fee_config.pb.go index c3c48bf9..a0bcd946 100644 --- a/x/nftmngr/types/nft_fee_config.pb.go +++ b/x/nftmngr/types/nft_fee_config.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_fee_config.proto +// source: nftmngr/latest/nft_fee_config.proto package types @@ -48,7 +48,7 @@ func (x FeeDistributionMethod) String() string { } func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7b201b18cd88e0ee, []int{0} + return fileDescriptor_caa21ed8cbe1cc93, []int{0} } type FeeDistribution struct { @@ -60,7 +60,7 @@ func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } func (*FeeDistribution) ProtoMessage() {} func (*FeeDistribution) Descriptor() ([]byte, []int) { - return fileDescriptor_7b201b18cd88e0ee, []int{0} + return fileDescriptor_caa21ed8cbe1cc93, []int{0} } func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -112,7 +112,7 @@ func (m *FeeConfig) Reset() { *m = FeeConfig{} } func (m *FeeConfig) String() string { return proto.CompactTextString(m) } func (*FeeConfig) ProtoMessage() {} func (*FeeConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_7b201b18cd88e0ee, []int{1} + return fileDescriptor_caa21ed8cbe1cc93, []int{1} } func (m *FeeConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -163,7 +163,7 @@ func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } func (*NFTFeeConfig) ProtoMessage() {} func (*NFTFeeConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_7b201b18cd88e0ee, []int{2} + return fileDescriptor_caa21ed8cbe1cc93, []int{2} } func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,32 +206,35 @@ func init() { proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.NFTFeeConfig") } -func init() { proto.RegisterFile("nftmngr/nft_fee_config.proto", fileDescriptor_7b201b18cd88e0ee) } - -var fileDescriptor_7b201b18cd88e0ee = []byte{ - // 350 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x6a, 0xea, 0x40, - 0x14, 0x87, 0x33, 0xb9, 0x17, 0xaf, 0x39, 0xca, 0x35, 0x77, 0xe0, 0x42, 0x16, 0x36, 0x88, 0x9b, - 0x4a, 0xa1, 0x09, 0xe8, 0x0b, 0x54, 0xab, 0x81, 0xd2, 0x56, 0xcb, 0xd4, 0xb6, 0xe0, 0x46, 0xfc, - 0x73, 0xc6, 0x84, 0x92, 0x19, 0x49, 0x46, 0x6a, 0x5f, 0xa0, 0xeb, 0x3e, 0x56, 0x97, 0x2e, 0xbb, - 0x2c, 0xfa, 0x22, 0x25, 0x51, 0x69, 0x2d, 0xa5, 0xa5, 0xbb, 0x99, 0x73, 0xf8, 0xce, 0xef, 0xe3, - 0x70, 0xa0, 0x28, 0xb8, 0x0a, 0xc5, 0x24, 0x72, 0x05, 0x57, 0x7d, 0x8e, 0xd8, 0x1f, 0x49, 0xc1, - 0x83, 0x89, 0x33, 0x8d, 0xa4, 0x92, 0xb4, 0xa8, 0x7c, 0x8c, 0x83, 0xb9, 0x40, 0x75, 0x27, 0xa3, - 0x5b, 0x27, 0x79, 0x72, 0xe5, 0x6c, 0x90, 0xf2, 0x1c, 0x0a, 0x1e, 0x62, 0x33, 0x88, 0x55, 0x14, - 0x0c, 0x67, 0x2a, 0x90, 0x82, 0x9e, 0x42, 0x26, 0x44, 0xe5, 0xcb, 0xb1, 0x45, 0x4a, 0xa4, 0xf2, - 0xb7, 0x5a, 0x73, 0xbe, 0x9a, 0xe0, 0x7c, 0xc0, 0xcf, 0x53, 0x94, 0x6d, 0x46, 0x50, 0x0b, 0xfe, - 0x4c, 0x65, 0x94, 0x34, 0x2c, 0xbd, 0x44, 0x2a, 0x3a, 0xdb, 0x7e, 0xcb, 0x0f, 0x04, 0x0c, 0x0f, - 0xf1, 0x38, 0x75, 0xa5, 0x7b, 0x00, 0x89, 0xf9, 0x20, 0x94, 0x33, 0xa1, 0xd2, 0x60, 0x83, 0x19, - 0x1c, 0xb1, 0x9e, 0x16, 0x68, 0x0f, 0xfe, 0x25, 0xed, 0xf1, 0xbb, 0xa0, 0xd8, 0xd2, 0x4b, 0xbf, - 0x2a, 0xb9, 0xea, 0xe1, 0x8f, 0xf4, 0x98, 0xc9, 0x77, 0x0b, 0x71, 0xf9, 0x1a, 0xf2, 0x6d, 0xaf, - 0xfb, 0xa6, 0xe2, 0x01, 0xc4, 0x23, 0x1f, 0xc3, 0x41, 0xb2, 0xcb, 0x54, 0x25, 0x57, 0xdd, 0xff, - 0x36, 0x64, 0x0d, 0x33, 0x63, 0x8d, 0x7a, 0x88, 0x07, 0x47, 0xf0, 0xff, 0xd3, 0xdd, 0xd0, 0x2c, - 0xfc, 0x6e, 0x5c, 0xb1, 0xb6, 0xa9, 0xd1, 0x02, 0xe4, 0x58, 0xeb, 0xa6, 0xce, 0x9a, 0xfd, 0x8b, - 0x4e, 0xe7, 0xcc, 0x24, 0x34, 0x0f, 0xd9, 0x2e, 0xab, 0xb7, 0x2f, 0xbd, 0x16, 0x33, 0xf5, 0xc6, - 0xc9, 0xd3, 0xd2, 0x26, 0x8b, 0xa5, 0x4d, 0x5e, 0x96, 0x36, 0x79, 0x5c, 0xd9, 0xda, 0x62, 0x65, - 0x6b, 0xcf, 0x2b, 0x5b, 0xeb, 0xb9, 0x93, 0x40, 0xf9, 0xb3, 0xa1, 0x33, 0x92, 0xa1, 0xbb, 0x63, - 0xe6, 0xae, 0xcd, 0xdc, 0xb9, 0xbb, 0x3d, 0x0a, 0x75, 0x3f, 0xc5, 0x78, 0x98, 0x49, 0x8f, 0xa1, - 0xf6, 0x1a, 0x00, 0x00, 0xff, 0xff, 0x53, 0x92, 0x11, 0x00, 0x2c, 0x02, 0x00, 0x00, +func init() { + proto.RegisterFile("nftmngr/latest/nft_fee_config.proto", fileDescriptor_caa21ed8cbe1cc93) +} + +var fileDescriptor_caa21ed8cbe1cc93 = []byte{ + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0x87, 0xb3, 0x51, 0x6a, 0x33, 0x2d, 0x36, 0x2e, 0x08, 0x39, 0x68, 0x28, 0xf5, 0x60, 0x11, + 0x4c, 0xa0, 0x7d, 0x01, 0x5b, 0xdb, 0x80, 0xa8, 0xad, 0xac, 0x55, 0xa1, 0x97, 0xd2, 0x3f, 0x93, + 0x26, 0x68, 0xb2, 0x25, 0xbb, 0xc5, 0xfa, 0x02, 0x9e, 0x7d, 0x2c, 0x8f, 0x3d, 0x7a, 0x94, 0xf6, + 0x45, 0x24, 0x69, 0x8b, 0x56, 0x44, 0xf1, 0xb6, 0x3b, 0xc3, 0x37, 0xbf, 0x8f, 0x61, 0xe0, 0x20, + 0x74, 0x65, 0x10, 0x0e, 0x23, 0xfb, 0xa1, 0x2b, 0x51, 0x48, 0x3b, 0x74, 0x65, 0xc7, 0x45, 0xec, + 0xf4, 0x79, 0xe8, 0xfa, 0x43, 0x6b, 0x14, 0x71, 0xc9, 0xe9, 0x9e, 0xf4, 0x50, 0xf8, 0x93, 0x10, + 0xe5, 0x23, 0x8f, 0xee, 0xad, 0xf8, 0xe9, 0x4a, 0x6b, 0x49, 0x16, 0x26, 0x90, 0x73, 0x10, 0x6b, + 0xbe, 0x90, 0x91, 0xdf, 0x1b, 0x4b, 0x9f, 0x87, 0xf4, 0x1c, 0x52, 0x01, 0x4a, 0x8f, 0x0f, 0x0c, + 0x92, 0x27, 0xc5, 0xed, 0x52, 0xd9, 0xfa, 0x6d, 0x82, 0xf5, 0x0d, 0xbf, 0x4c, 0x50, 0xb6, 0x1c, + 0x41, 0x0d, 0xd8, 0x1a, 0xf1, 0x28, 0x6e, 0x18, 0x6a, 0x9e, 0x14, 0x55, 0xb6, 0xfa, 0x16, 0x9e, + 0x09, 0x68, 0x0e, 0xe2, 0x69, 0xe2, 0x4a, 0xf7, 0x01, 0x62, 0xf3, 0x6e, 0xc0, 0xc7, 0xa1, 0x4c, + 0x82, 0x35, 0xa6, 0xb9, 0x88, 0x95, 0xa4, 0x40, 0xdb, 0xb0, 0x13, 0xb7, 0x07, 0x5f, 0x82, 0x84, + 0xa1, 0xe6, 0x37, 0x8a, 0x99, 0xd2, 0xf1, 0xbf, 0xf4, 0x98, 0xee, 0xae, 0x17, 0x44, 0xe1, 0x16, + 0xb2, 0x0d, 0xa7, 0xf5, 0xa9, 0xe2, 0x00, 0x88, 0xbe, 0x87, 0x41, 0x37, 0xde, 0x65, 0xa2, 0x92, + 0x29, 0x1d, 0xfe, 0x19, 0xb2, 0x80, 0x99, 0xb6, 0x40, 0x1d, 0xc4, 0xa3, 0x13, 0xd8, 0xfd, 0x71, + 0x37, 0x34, 0x0d, 0x9b, 0xd5, 0x1b, 0xd6, 0xd0, 0x15, 0x9a, 0x83, 0x0c, 0xab, 0xdf, 0x55, 0x58, + 0xad, 0x73, 0xd5, 0x6c, 0x5e, 0xe8, 0x84, 0x66, 0x21, 0xdd, 0x62, 0x95, 0xc6, 0xb5, 0x53, 0x67, + 0xba, 0x5a, 0x3d, 0x7b, 0x9d, 0x99, 0x64, 0x3a, 0x33, 0xc9, 0xfb, 0xcc, 0x24, 0x2f, 0x73, 0x53, + 0x99, 0xce, 0x4d, 0xe5, 0x6d, 0x6e, 0x2a, 0x6d, 0x7b, 0xe8, 0x4b, 0x6f, 0xdc, 0xb3, 0xfa, 0x3c, + 0xb0, 0xd7, 0xcc, 0xec, 0x85, 0x99, 0x3d, 0xb1, 0x57, 0xb7, 0x21, 0x9f, 0x46, 0x28, 0x7a, 0xa9, + 0xe4, 0x18, 0xca, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2e, 0xdd, 0xc9, 0x34, 0x33, 0x02, 0x00, + 0x00, } func (m *FeeDistribution) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/nft_schema.pb.go b/x/nftmngr/types/nft_schema.pb.go index 1bfeef01..3bbf51b9 100644 --- a/x/nftmngr/types/nft_schema.pb.go +++ b/x/nftmngr/types/nft_schema.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_schema.proto +// source: nftmngr/latest/nft_schema.proto package types @@ -37,7 +37,7 @@ func (m *NFTSchema) Reset() { *m = NFTSchema{} } func (m *NFTSchema) String() string { return proto.CompactTextString(m) } func (*NFTSchema) ProtoMessage() {} func (*NFTSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_f35d7a245dabb499, []int{0} + return fileDescriptor_cf77477d6156420c, []int{0} } func (m *NFTSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,106 +122,6 @@ func (m *NFTSchema) GetMintAuthorization() string { return "" } -type NFTSchemaV2 struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` - OnchainData *OnChainDataV2 `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` - IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` - MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` -} - -func (m *NFTSchemaV2) Reset() { *m = NFTSchemaV2{} } -func (m *NFTSchemaV2) String() string { return proto.CompactTextString(m) } -func (*NFTSchemaV2) ProtoMessage() {} -func (*NFTSchemaV2) Descriptor() ([]byte, []int) { - return fileDescriptor_f35d7a245dabb499, []int{1} -} -func (m *NFTSchemaV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NFTSchemaV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NFTSchemaV2.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 *NFTSchemaV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_NFTSchemaV2.Merge(m, src) -} -func (m *NFTSchemaV2) XXX_Size() int { - return m.Size() -} -func (m *NFTSchemaV2) XXX_DiscardUnknown() { - xxx_messageInfo_NFTSchemaV2.DiscardUnknown(m) -} - -var xxx_messageInfo_NFTSchemaV2 proto.InternalMessageInfo - -func (m *NFTSchemaV2) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -func (m *NFTSchemaV2) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *NFTSchemaV2) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *NFTSchemaV2) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *NFTSchemaV2) GetOriginData() *OriginData { - if m != nil { - return m.OriginData - } - return nil -} - -func (m *NFTSchemaV2) GetOnchainData() *OnChainDataV2 { - if m != nil { - return m.OnchainData - } - return nil -} - -func (m *NFTSchemaV2) GetIsVerified() bool { - if m != nil { - return m.IsVerified - } - return false -} - -func (m *NFTSchemaV2) GetMintAuthorization() string { - if m != nil { - return m.MintAuthorization - } - return "" -} - type NFTSchemaINPUT struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -238,7 +138,7 @@ func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } func (*NFTSchemaINPUT) ProtoMessage() {} func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { - return fileDescriptor_f35d7a245dabb499, []int{2} + return fileDescriptor_cf77477d6156420c, []int{1} } func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -330,145 +230,41 @@ func (m *NFTSchemaINPUT) GetMintAuthorization() string { return "" } -type NFTSchemaV1 struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` - SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` - OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` - OnchainData *OnChainDataV1 `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` - IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` - MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` -} - -func (m *NFTSchemaV1) Reset() { *m = NFTSchemaV1{} } -func (m *NFTSchemaV1) String() string { return proto.CompactTextString(m) } -func (*NFTSchemaV1) ProtoMessage() {} -func (*NFTSchemaV1) Descriptor() ([]byte, []int) { - return fileDescriptor_f35d7a245dabb499, []int{3} -} -func (m *NFTSchemaV1) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NFTSchemaV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NFTSchemaV1.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 *NFTSchemaV1) XXX_Merge(src proto.Message) { - xxx_messageInfo_NFTSchemaV1.Merge(m, src) -} -func (m *NFTSchemaV1) XXX_Size() int { - return m.Size() -} -func (m *NFTSchemaV1) XXX_DiscardUnknown() { - xxx_messageInfo_NFTSchemaV1.DiscardUnknown(m) -} - -var xxx_messageInfo_NFTSchemaV1 proto.InternalMessageInfo - -func (m *NFTSchemaV1) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -func (m *NFTSchemaV1) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *NFTSchemaV1) GetOwner() string { - if m != nil { - return m.Owner - } - return "" -} - -func (m *NFTSchemaV1) GetSystemActioners() []string { - if m != nil { - return m.SystemActioners - } - return nil -} - -func (m *NFTSchemaV1) GetOriginData() *OriginData { - if m != nil { - return m.OriginData - } - return nil -} - -func (m *NFTSchemaV1) GetOnchainData() *OnChainDataV1 { - if m != nil { - return m.OnchainData - } - return nil -} - -func (m *NFTSchemaV1) GetIsVerified() bool { - if m != nil { - return m.IsVerified - } - return false -} - -func (m *NFTSchemaV1) GetMintAuthorization() string { - if m != nil { - return m.MintAuthorization - } - return "" -} - func init() { proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchema") - proto.RegisterType((*NFTSchemaV2)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaV2") proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaINPUT") - proto.RegisterType((*NFTSchemaV1)(nil), "thesixnetwork.sixnft.nftmngr.NFTSchemaV1") } -func init() { proto.RegisterFile("nftmngr/nft_schema.proto", fileDescriptor_f35d7a245dabb499) } - -var fileDescriptor_f35d7a245dabb499 = []byte{ - // 447 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0x4d, 0xab, 0xd3, 0x40, - 0x14, 0x6d, 0xfa, 0xf5, 0x9a, 0x89, 0xf8, 0x31, 0xb8, 0x18, 0x9f, 0x12, 0xc2, 0x5b, 0xe5, 0x21, - 0x26, 0xbc, 0xfa, 0x0b, 0x9e, 0x8a, 0x50, 0x90, 0x2a, 0xf1, 0xd9, 0x85, 0x9b, 0x30, 0x2f, 0x99, - 0x34, 0x83, 0x64, 0xa6, 0xcc, 0x4c, 0x69, 0xeb, 0xd6, 0x3f, 0xe0, 0xcf, 0x72, 0x59, 0x70, 0xa1, - 0xcb, 0xd2, 0xfe, 0x11, 0xc9, 0xa4, 0x8d, 0xa9, 0x54, 0x2d, 0xd8, 0x22, 0x6f, 0x77, 0x7b, 0x4e, - 0xcf, 0xcd, 0xbd, 0xe7, 0x1e, 0x06, 0x20, 0x96, 0xa8, 0x8c, 0x0d, 0x85, 0xcf, 0x12, 0x15, 0xca, - 0x28, 0x25, 0x19, 0xf6, 0x46, 0x82, 0x2b, 0x0e, 0x1f, 0xa9, 0x94, 0x48, 0x3a, 0x65, 0x44, 0x4d, - 0xb8, 0xf8, 0xe0, 0xe5, 0x65, 0xa2, 0xbc, 0xf5, 0xdf, 0x4f, 0x1f, 0x6e, 0x74, 0x9c, 0x85, 0x51, - 0x8a, 0x29, 0x0b, 0x63, 0xac, 0xd6, 0xd2, 0xd3, 0x07, 0x25, 0x29, 0xe8, 0x70, 0x8b, 0x3a, 0xfb, - 0x5a, 0x07, 0x66, 0xff, 0xe5, 0xd5, 0x5b, 0xfd, 0x25, 0x08, 0x41, 0x33, 0xe2, 0x31, 0x41, 0x86, - 0x63, 0xb8, 0x66, 0xa0, 0xeb, 0x1c, 0x63, 0x38, 0x23, 0xa8, 0x5e, 0x60, 0x79, 0x0d, 0xef, 0x83, - 0x16, 0x9f, 0x30, 0x22, 0x50, 0x43, 0x83, 0xc5, 0x0f, 0xe8, 0x00, 0x2b, 0x26, 0x32, 0x12, 0x74, - 0xa4, 0x28, 0x67, 0xa8, 0xa9, 0xb9, 0x2a, 0x04, 0x7b, 0xc0, 0xaa, 0x8c, 0x80, 0x5a, 0x8e, 0xe1, - 0x5a, 0x5d, 0xd7, 0xfb, 0xd3, 0x66, 0xde, 0x6b, 0x2d, 0x78, 0x81, 0x15, 0x0e, 0x00, 0x2f, 0x6b, - 0xf8, 0x0a, 0xdc, 0xe2, 0xec, 0xe7, 0xa6, 0xa8, 0xad, 0x7b, 0x9d, 0xff, 0xa5, 0x17, 0x7b, 0x9e, - 0x2b, 0x74, 0x33, 0x6b, 0x2d, 0xd7, 0xdd, 0x6c, 0x00, 0xa8, 0x1c, 0x10, 0x41, 0x13, 0x4a, 0x62, - 0x74, 0xe2, 0x18, 0x6e, 0x27, 0xa8, 0x20, 0xf0, 0x09, 0x80, 0x19, 0x65, 0x2a, 0xc4, 0x63, 0x95, - 0x72, 0x41, 0x3f, 0x62, 0xbd, 0x61, 0x47, 0x6f, 0x78, 0x2f, 0x67, 0x2e, 0xab, 0xc4, 0xd9, 0xb7, - 0x3a, 0xb0, 0x4a, 0x57, 0x07, 0xdd, 0x9b, 0xe4, 0x6b, 0x7f, 0xa7, 0xaf, 0x8f, 0xf7, 0xf6, 0x75, - 0xd0, 0x3d, 0xaa, 0xb3, 0x9f, 0x1a, 0xe0, 0x76, 0xe9, 0x6c, 0xaf, 0xff, 0xe6, 0xdd, 0xd5, 0xd1, - 0xcd, 0x3d, 0x07, 0x77, 0xe5, 0x4c, 0x2a, 0x92, 0x85, 0x38, 0xca, 0x01, 0x22, 0x24, 0x6a, 0x39, - 0x0d, 0xd7, 0x0c, 0xee, 0x14, 0xf8, 0xe5, 0x06, 0xfe, 0xf5, 0x0e, 0xed, 0x03, 0xe6, 0xfb, 0xe4, - 0x80, 0xf9, 0xee, 0xec, 0x79, 0x05, 0xf3, 0x77, 0x57, 0x58, 0x6c, 0xe5, 0xfb, 0xe2, 0x1f, 0x4f, - 0xb0, 0xcb, 0xe0, 0xe6, 0x5e, 0x06, 0xff, 0xd7, 0xa0, 0x5f, 0x1c, 0x33, 0xe8, 0xcf, 0x7a, 0x5f, - 0x96, 0xb6, 0x31, 0x5f, 0xda, 0xc6, 0x62, 0x69, 0x1b, 0x9f, 0x57, 0x76, 0x6d, 0xbe, 0xb2, 0x6b, - 0xdf, 0x57, 0x76, 0xed, 0xbd, 0x3f, 0xa4, 0x2a, 0x1d, 0x5f, 0x7b, 0x11, 0xcf, 0xfc, 0xad, 0x61, - 0xfd, 0x62, 0x58, 0x7f, 0xea, 0x6f, 0xde, 0x7b, 0x35, 0x1b, 0x11, 0x79, 0xdd, 0xd6, 0x4f, 0xfd, - 0xd3, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x9e, 0xe0, 0xa8, 0x5c, 0x06, 0x00, 0x00, +func init() { proto.RegisterFile("nftmngr/latest/nft_schema.proto", fileDescriptor_cf77477d6156420c) } + +var fileDescriptor_cf77477d6156420c = []byte{ + // 404 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcb, 0xea, 0xd3, 0x40, + 0x14, 0xc6, 0x9b, 0x7f, 0xaf, 0x99, 0x88, 0x97, 0xc1, 0xc5, 0x50, 0x24, 0x86, 0xae, 0xd2, 0x85, + 0x09, 0xe8, 0x13, 0x54, 0x45, 0x28, 0x48, 0x95, 0x58, 0x5d, 0xb8, 0x09, 0xd3, 0x64, 0xd2, 0x0c, + 0x9a, 0x99, 0x32, 0x73, 0x4a, 0x5b, 0xb7, 0xbe, 0x80, 0x8f, 0xe5, 0xb2, 0xe0, 0xc6, 0xa5, 0xb4, + 0x2f, 0x22, 0x99, 0xb4, 0x35, 0x2d, 0x78, 0x59, 0xd4, 0xdd, 0xc9, 0xef, 0xcc, 0xf7, 0xe5, 0x9c, + 0xf9, 0x18, 0xf4, 0x50, 0x64, 0x50, 0x88, 0xb9, 0x0a, 0x3f, 0x52, 0x60, 0x1a, 0x42, 0x91, 0x41, + 0xac, 0x93, 0x9c, 0x15, 0x34, 0x58, 0x28, 0x09, 0x12, 0x3f, 0x80, 0x9c, 0x69, 0xbe, 0x16, 0x0c, + 0x56, 0x52, 0x7d, 0x08, 0xca, 0x32, 0x83, 0xe0, 0xa0, 0xea, 0x0f, 0x2e, 0xe4, 0x52, 0xc4, 0x49, + 0x4e, 0xb9, 0x88, 0x53, 0x0a, 0x07, 0x87, 0xbe, 0x77, 0x79, 0x46, 0xf1, 0xf9, 0xd9, 0x89, 0xc1, + 0xb7, 0x1b, 0x64, 0x4f, 0x5e, 0x4c, 0xdf, 0x98, 0xff, 0x62, 0x8c, 0x5a, 0x89, 0x4c, 0x19, 0xb1, + 0x3c, 0xcb, 0xb7, 0x23, 0x53, 0x97, 0x4c, 0xd0, 0x82, 0x91, 0x9b, 0x8a, 0x95, 0x35, 0xbe, 0x8f, + 0xda, 0x72, 0x25, 0x98, 0x22, 0x4d, 0x03, 0xab, 0x0f, 0xec, 0x21, 0x27, 0x65, 0x3a, 0x51, 0x7c, + 0x01, 0x5c, 0x0a, 0xd2, 0x32, 0xbd, 0x3a, 0xc2, 0x63, 0xe4, 0xd4, 0x46, 0x20, 0x6d, 0xcf, 0xf2, + 0x9d, 0xc7, 0x7e, 0xf0, 0xa7, 0x3d, 0x83, 0x57, 0x46, 0xf0, 0x9c, 0x02, 0x8d, 0x90, 0x3c, 0xd5, + 0xf8, 0x25, 0xba, 0x25, 0xc5, 0xaf, 0x85, 0x49, 0xc7, 0x78, 0x0d, 0xff, 0xe2, 0x25, 0x9e, 0x95, + 0x0a, 0x63, 0xe6, 0x1c, 0xe4, 0xc6, 0xcd, 0x45, 0x88, 0xeb, 0x77, 0x4c, 0xf1, 0x8c, 0xb3, 0x94, + 0x74, 0x3d, 0xcb, 0xef, 0x45, 0x35, 0x82, 0x1f, 0x21, 0x5c, 0x70, 0x01, 0x31, 0x5d, 0x42, 0x2e, + 0x15, 0xff, 0x44, 0xcd, 0x86, 0x3d, 0xb3, 0xe1, 0xbd, 0xb2, 0x33, 0xaa, 0x37, 0x06, 0x9f, 0x9b, + 0xe8, 0xf6, 0xe9, 0x56, 0xc7, 0x93, 0xd7, 0x6f, 0xa7, 0xff, 0xfd, 0x6a, 0x87, 0xe8, 0xae, 0xde, + 0x68, 0x60, 0x45, 0x4c, 0x93, 0x12, 0x30, 0xa5, 0x49, 0xdb, 0x6b, 0xfa, 0x76, 0x74, 0xa7, 0xe2, + 0xa3, 0x23, 0xbe, 0x4c, 0xa1, 0x73, 0xc5, 0x14, 0xba, 0x57, 0x4c, 0xa1, 0xf7, 0x8f, 0x29, 0xd8, + 0xbf, 0x49, 0xe1, 0xe9, 0xf8, 0xeb, 0xce, 0xb5, 0xb6, 0x3b, 0xd7, 0xfa, 0xb1, 0x73, 0xad, 0x2f, + 0x7b, 0xb7, 0xb1, 0xdd, 0xbb, 0x8d, 0xef, 0x7b, 0xb7, 0xf1, 0x3e, 0x9c, 0x73, 0xc8, 0x97, 0xb3, + 0x20, 0x91, 0x45, 0x78, 0x36, 0x6a, 0x58, 0x8d, 0x1a, 0xae, 0xc3, 0xe3, 0xcb, 0x81, 0xcd, 0x82, + 0xe9, 0x59, 0xc7, 0xbc, 0x96, 0x27, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xaf, 0xbf, 0x6a, + 0xb4, 0x03, 0x00, 0x00, } func (m *NFTSchema) Marshal() (dAtA []byte, err error) { @@ -563,98 +359,6 @@ func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *NFTSchemaV2) 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 *NFTSchemaV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NFTSchemaV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MintAuthorization) > 0 { - i -= len(m.MintAuthorization) - copy(dAtA[i:], m.MintAuthorization) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) - i-- - dAtA[i] = 0x42 - } - if m.IsVerified { - i-- - if m.IsVerified { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.OnchainData != nil { - { - size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.OriginData != nil { - { - size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *NFTSchemaINPUT) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -693,953 +397,173 @@ func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x40 } if m.OnchainData != nil { - { - size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.OriginData != nil { - { - size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.SystemActioners) > 0 { - for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SystemActioners[iNdEx]) - copy(dAtA[i:], m.SystemActioners[iNdEx]) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) - i-- - dAtA[i] = 0x2a - } - } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *NFTSchemaV1) 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 *NFTSchemaV1) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NFTSchemaV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MintAuthorization) > 0 { - i -= len(m.MintAuthorization) - copy(dAtA[i:], m.MintAuthorization) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) - i-- - dAtA[i] = 0x42 - } - if m.IsVerified { - i-- - if m.IsVerified { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.OnchainData != nil { - { - size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.OriginData != nil { - { - size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintNftSchema(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.SystemActioners) > 0 { - for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SystemActioners[iNdEx]) - copy(dAtA[i:], m.SystemActioners[iNdEx]) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Owner) > 0 { - i -= len(m.Owner) - copy(dAtA[i:], m.Owner) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { - offset -= sovNftSchema(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *NFTSchema) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Code) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OriginData != nil { - l = m.OriginData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.IsVerified { - n += 2 - } - l = len(m.MintAuthorization) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - return n -} - -func (m *NFTSchemaV2) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Code) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OriginData != nil { - l = m.OriginData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.IsVerified { - n += 2 - } - l = len(m.MintAuthorization) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - return n -} - -func (m *NFTSchemaINPUT) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Code) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - if len(m.SystemActioners) > 0 { - for _, s := range m.SystemActioners { - l = len(s) - n += 1 + l + sovNftSchema(uint64(l)) - } - } - if m.OriginData != nil { - l = m.OriginData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.IsVerified { - n += 2 - } - l = len(m.MintAuthorization) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - return n -} - -func (m *NFTSchemaV1) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Code) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - l = len(m.Owner) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - if len(m.SystemActioners) > 0 { - for _, s := range m.SystemActioners { - l = len(s) - n += 1 + l + sovNftSchema(uint64(l)) - } - } - if m.OriginData != nil { - l = m.OriginData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovNftSchema(uint64(l)) - } - if m.IsVerified { - n += 2 - } - l = len(m.MintAuthorization) - if l > 0 { - n += 1 + l + sovNftSchema(uint64(l)) - } - return n -} - -func sovNftSchema(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozNftSchema(x uint64) (n int) { - return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *NFTSchema) 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 ErrIntOverflowNftSchema - } - 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: NFTSchema: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Code = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthNftSchema - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OriginData == nil { - m.OriginData = &OriginData{} - } - if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthNftSchema - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OnchainData == nil { - m.OnchainData = &OnChainData{} - } - if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsVerified = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MintAuthorization = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipNftSchema(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNftSchema - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NFTSchemaV2) 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 ErrIntOverflowNftSchema - } - 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: NFTSchemaV2: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NFTSchemaV2: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Code = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Owner = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthNftSchema - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OriginData == nil { - m.OriginData = &OriginData{} - } - if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthNftSchema - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OnchainData == nil { - m.OnchainData = &OnChainDataV2{} - } - if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsVerified = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MintAuthorization = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipNftSchema(dAtA[iNdEx:]) + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthNftSchema + return 0, err } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - iNdEx += skippy + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a } } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return nil + dAtA[offset] = uint8(v) + return base } -func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1662,10 +586,10 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NFTSchemaINPUT: wiretype end group for non-group") + return fmt.Errorf("proto: NFTSchema: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1797,38 +721,6 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { m.Description = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNftSchema - } - 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 ErrInvalidLengthNftSchema - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNftSchema - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) } @@ -1864,7 +756,7 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) } @@ -1900,7 +792,7 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: + case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) } @@ -1920,7 +812,7 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { } } m.IsVerified = bool(v != 0) - case 9: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) } @@ -1973,7 +865,7 @@ func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { } return nil } -func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { +func (m *NFTSchemaINPUT) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1996,10 +888,10 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: NFTSchemaV1: wiretype end group for non-group") + return fmt.Errorf("proto: NFTSchemaINPUT: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: NFTSchemaV1: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2099,6 +991,38 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { m.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) } @@ -2130,7 +1054,7 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { } m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) } @@ -2166,7 +1090,7 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) } @@ -2196,13 +1120,13 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.OnchainData == nil { - m.OnchainData = &OnChainDataV1{} + m.OnchainData = &OnChainData{} } if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) } @@ -2222,7 +1146,7 @@ func (m *NFTSchemaV1) Unmarshal(dAtA []byte) error { } } m.IsVerified = bool(v != 0) - case 8: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) } diff --git a/x/nftmngr/types/nft_schema_by_contract.pb.go b/x/nftmngr/types/nft_schema_by_contract.pb.go index a42ad9fa..6af6a952 100644 --- a/x/nftmngr/types/nft_schema_by_contract.pb.go +++ b/x/nftmngr/types/nft_schema_by_contract.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/nft_schema_by_contract.proto +// source: nftmngr/latest/nft_schema_by_contract.proto package types @@ -31,7 +31,7 @@ func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } func (*NFTSchemaByContract) ProtoMessage() {} func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { - return fileDescriptor_3fab44ff2fe54bff, []int{0} + return fileDescriptor_c80fb4315ad1ccbf, []int{0} } func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,25 +79,25 @@ func init() { } func init() { - proto.RegisterFile("nftmngr/nft_schema_by_contract.proto", fileDescriptor_3fab44ff2fe54bff) + proto.RegisterFile("nftmngr/latest/nft_schema_by_contract.proto", fileDescriptor_c80fb4315ad1ccbf) } -var fileDescriptor_3fab44ff2fe54bff = []byte{ - // 210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x8c, 0x4f, - 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0x95, 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, - 0x9a, 0x9d, 0x2a, 0x9d, 0xa1, 0x5a, 0x85, 0x4c, 0xb8, 0x44, 0xf3, 0x8b, 0x32, 0xd3, 0x33, 0xf3, - 0x60, 0x22, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, - 0xd8, 0x25, 0x85, 0x14, 0xb8, 0xb8, 0x21, 0xce, 0x70, 0xce, 0x4f, 0x49, 0x2d, 0x96, 0x60, 0x52, - 0x60, 0xd6, 0xe0, 0x0c, 0x42, 0x16, 0x72, 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, - 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, - 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, - 0x17, 0xeb, 0x43, 0x5c, 0xac, 0x5f, 0xa1, 0x0f, 0xf3, 0x6e, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, - 0x1b, 0xd8, 0x7b, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0xfa, 0xc1, 0x94, 0x06, 0x01, - 0x00, 0x00, +var fileDescriptor_c80fb4315ad1ccbf = []byte{ + // 217 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, + 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x26, 0x28, 0xe5, + 0x72, 0x09, 0xfb, 0xb9, 0x85, 0x04, 0x83, 0x35, 0x3b, 0x55, 0x3a, 0x43, 0xb5, 0x0a, 0x99, 0x70, + 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, + 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0x9c, 0xe1, + 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, 0x79, + 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, + 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5, + 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0x2e, 0xd6, 0x87, 0xb8, 0x58, 0xbf, 0x42, 0x1f, 0xe6, + 0xeb, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xf7, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, + 0xff, 0xfa, 0x44, 0x69, 0x18, 0x0d, 0x01, 0x00, 0x00, } func (m *NFTSchemaByContract) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/on_chain_data.pb.go b/x/nftmngr/types/on_chain_data.pb.go index ed9ff95d..6684bda5 100644 --- a/x/nftmngr/types/on_chain_data.pb.go +++ b/x/nftmngr/types/on_chain_data.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/on_chain_data.proto +// source: nftmngr/latest/on_chain_data.proto package types @@ -31,7 +31,7 @@ func (m *FlagStatus) Reset() { *m = FlagStatus{} } func (m *FlagStatus) String() string { return proto.CompactTextString(m) } func (*FlagStatus) ProtoMessage() {} func (*FlagStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_35d167410338c830, []int{0} + return fileDescriptor_ddb245fb8d8b9b8f, []int{0} } func (m *FlagStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,7 +85,7 @@ func (m *OnChainData) Reset() { *m = OnChainData{} } func (m *OnChainData) String() string { return proto.CompactTextString(m) } func (*OnChainData) ProtoMessage() {} func (*OnChainData) Descriptor() ([]byte, []int) { - return fileDescriptor_35d167410338c830, []int{1} + return fileDescriptor_ddb245fb8d8b9b8f, []int{1} } func (m *OnChainData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -142,199 +142,39 @@ func (m *OnChainData) GetStatus() []*FlagStatus { return nil } -type OnChainDataV2 struct { - TokenAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` - Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` - Status []*FlagStatus `protobuf:"bytes,3,rep,name=status,proto3" json:"status,omitempty"` -} - -func (m *OnChainDataV2) Reset() { *m = OnChainDataV2{} } -func (m *OnChainDataV2) String() string { return proto.CompactTextString(m) } -func (*OnChainDataV2) ProtoMessage() {} -func (*OnChainDataV2) Descriptor() ([]byte, []int) { - return fileDescriptor_35d167410338c830, []int{2} -} -func (m *OnChainDataV2) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OnChainDataV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OnChainDataV2.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 *OnChainDataV2) XXX_Merge(src proto.Message) { - xxx_messageInfo_OnChainDataV2.Merge(m, src) -} -func (m *OnChainDataV2) XXX_Size() int { - return m.Size() -} -func (m *OnChainDataV2) XXX_DiscardUnknown() { - xxx_messageInfo_OnChainDataV2.DiscardUnknown(m) -} - -var xxx_messageInfo_OnChainDataV2 proto.InternalMessageInfo - -func (m *OnChainDataV2) GetTokenAttributes() []*AttributeDefinition { - if m != nil { - return m.TokenAttributes - } - return nil -} - -func (m *OnChainDataV2) GetActions() []*Action { - if m != nil { - return m.Actions - } - return nil -} - -func (m *OnChainDataV2) GetStatus() []*FlagStatus { - if m != nil { - return m.Status - } - return nil -} - -type OnChainDataV1 struct { - RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` - RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` - NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` - TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` - Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` - Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` - NftAttributesValue []*NftAttributeValue `protobuf:"bytes,7,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` -} - -func (m *OnChainDataV1) Reset() { *m = OnChainDataV1{} } -func (m *OnChainDataV1) String() string { return proto.CompactTextString(m) } -func (*OnChainDataV1) ProtoMessage() {} -func (*OnChainDataV1) Descriptor() ([]byte, []int) { - return fileDescriptor_35d167410338c830, []int{3} -} -func (m *OnChainDataV1) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OnChainDataV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OnChainDataV1.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 *OnChainDataV1) XXX_Merge(src proto.Message) { - xxx_messageInfo_OnChainDataV1.Merge(m, src) -} -func (m *OnChainDataV1) XXX_Size() int { - return m.Size() -} -func (m *OnChainDataV1) XXX_DiscardUnknown() { - xxx_messageInfo_OnChainDataV1.DiscardUnknown(m) -} - -var xxx_messageInfo_OnChainDataV1 proto.InternalMessageInfo - -func (m *OnChainDataV1) GetRevealRequired() bool { - if m != nil { - return m.RevealRequired - } - return false -} - -func (m *OnChainDataV1) GetRevealSecret() []byte { - if m != nil { - return m.RevealSecret - } - return nil -} - -func (m *OnChainDataV1) GetNftAttributes() []*AttributeDefinition { - if m != nil { - return m.NftAttributes - } - return nil -} - -func (m *OnChainDataV1) GetTokenAttributes() []*AttributeDefinition { - if m != nil { - return m.TokenAttributes - } - return nil -} - -func (m *OnChainDataV1) GetActions() []*Action { - if m != nil { - return m.Actions - } - return nil -} - -func (m *OnChainDataV1) GetStatus() []*FlagStatus { - if m != nil { - return m.Status - } - return nil -} - -func (m *OnChainDataV1) GetNftAttributesValue() []*NftAttributeValue { - if m != nil { - return m.NftAttributesValue - } - return nil -} - func init() { proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.FlagStatus") proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.OnChainData") - proto.RegisterType((*OnChainDataV2)(nil), "thesixnetwork.sixnft.nftmngr.OnChainDataV2") - proto.RegisterType((*OnChainDataV1)(nil), "thesixnetwork.sixnft.nftmngr.OnChainDataV1") } -func init() { proto.RegisterFile("nftmngr/on_chain_data.proto", fileDescriptor_35d167410338c830) } - -var fileDescriptor_35d167410338c830 = []byte{ - // 465 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6b, 0x13, 0x41, - 0x18, 0xcd, 0x64, 0x6b, 0x5a, 0x27, 0x49, 0x2b, 0x43, 0x0f, 0x4b, 0x95, 0x35, 0x8d, 0x82, 0x7b, - 0xda, 0xa5, 0xf5, 0x2e, 0xfe, 0x28, 0x82, 0x97, 0x2a, 0x53, 0x28, 0x22, 0xc2, 0x32, 0xd9, 0xcc, - 0x26, 0x43, 0xb3, 0xb3, 0x75, 0xe6, 0xdb, 0x5a, 0xff, 0x0b, 0xff, 0x2b, 0x3d, 0xf6, 0xe8, 0x51, - 0x92, 0x3f, 0xc0, 0xbb, 0x27, 0xc9, 0xcc, 0x6e, 0xba, 0x0b, 0x25, 0x42, 0x42, 0x6e, 0xc3, 0xe3, - 0xbd, 0x37, 0xbc, 0xf7, 0x7d, 0x7c, 0xf8, 0xa1, 0x4c, 0x20, 0x95, 0x23, 0x15, 0x66, 0x32, 0x8a, - 0xc7, 0x4c, 0xc8, 0x68, 0xc8, 0x80, 0x05, 0x97, 0x2a, 0x83, 0x8c, 0x3c, 0x82, 0x31, 0xd7, 0xe2, - 0x5a, 0x72, 0xf8, 0x9a, 0xa9, 0x8b, 0x60, 0xfe, 0x4c, 0x20, 0x28, 0x14, 0x07, 0xfd, 0x52, 0xca, - 0x00, 0x94, 0x18, 0xe4, 0xc0, 0xa3, 0x21, 0x4f, 0x84, 0x14, 0x20, 0x32, 0x69, 0x1d, 0x0e, 0xf6, - 0x17, 0x9c, 0xb8, 0x82, 0x1e, 0x96, 0xa8, 0x4c, 0x20, 0xba, 0x55, 0x5f, 0xb1, 0x49, 0xce, 0x2d, - 0xa5, 0xff, 0x01, 0xe3, 0xb7, 0x13, 0x36, 0x3a, 0x03, 0x06, 0xb9, 0x26, 0x8f, 0x71, 0x5b, 0x9b, - 0x57, 0x24, 0x59, 0xca, 0x5d, 0xd4, 0x43, 0xfe, 0x7d, 0x8a, 0x2d, 0x74, 0xca, 0x52, 0x4e, 0x0e, - 0x71, 0xa7, 0x20, 0x18, 0x13, 0xb7, 0xd9, 0x43, 0xfe, 0x0e, 0x2d, 0x44, 0xe7, 0x73, 0xa8, 0xff, - 0xa3, 0x89, 0xdb, 0xef, 0xe5, 0x9b, 0x79, 0xc6, 0x13, 0x06, 0x8c, 0x7c, 0xc4, 0xbb, 0xb5, 0xef, - 0xb5, 0x8b, 0x7a, 0x8e, 0xdf, 0x3e, 0x3e, 0x0a, 0x96, 0xa5, 0x0e, 0x5e, 0x95, 0xfc, 0x93, 0x45, - 0x56, 0xda, 0x95, 0x09, 0x2c, 0x70, 0x4d, 0x3e, 0xe3, 0x07, 0x90, 0x5d, 0x70, 0x59, 0xf5, 0x6e, - 0xae, 0xea, 0xbd, 0x67, 0xac, 0x2a, 0xee, 0x2f, 0xf0, 0xb6, 0x2d, 0x53, 0xbb, 0x8e, 0x31, 0x7d, - 0xfa, 0x1f, 0x53, 0x43, 0xa6, 0xa5, 0x88, 0xbc, 0xc4, 0x2d, 0x5b, 0x8b, 0xbb, 0x65, 0xe4, 0xfe, - 0x72, 0xf9, 0xed, 0x14, 0x68, 0xa1, 0xeb, 0xff, 0x41, 0xb8, 0x5b, 0x69, 0xf2, 0xfc, 0xf8, 0xce, - 0xc4, 0x68, 0x13, 0x89, 0x9b, 0xeb, 0x25, 0x76, 0x56, 0x4c, 0xfc, 0xd7, 0xa9, 0x27, 0x3e, 0x22, - 0xcf, 0xf0, 0x9e, 0xe2, 0x57, 0x9c, 0x4d, 0x22, 0xc5, 0xbf, 0xe4, 0x42, 0xf1, 0xa1, 0xd9, 0xca, - 0x1d, 0xba, 0x6b, 0x61, 0x5a, 0xa0, 0xe4, 0x09, 0xee, 0x16, 0x44, 0xcd, 0x63, 0xc5, 0xc1, 0xac, - 0x66, 0x87, 0x76, 0x2c, 0x78, 0x66, 0xb0, 0x3b, 0x76, 0xd1, 0xd9, 0xe0, 0x2e, 0x6e, 0x6d, 0x62, - 0x32, 0xf7, 0xd6, 0x9b, 0x4c, 0x6b, 0xb5, 0xc9, 0x10, 0x86, 0xf7, 0xeb, 0xcd, 0x15, 0x07, 0x60, - 0xdb, 0xf8, 0x85, 0xcb, 0xfd, 0x4e, 0x2b, 0x55, 0x99, 0x23, 0x41, 0x49, 0xad, 0x3d, 0x83, 0xbd, - 0x7e, 0xf7, 0x73, 0xea, 0xa1, 0x9b, 0xa9, 0x87, 0x7e, 0x4f, 0x3d, 0xf4, 0x7d, 0xe6, 0x35, 0x6e, - 0x66, 0x5e, 0xe3, 0xd7, 0xcc, 0x6b, 0x7c, 0x0a, 0x47, 0x02, 0xc6, 0xf9, 0x20, 0x88, 0xb3, 0x34, - 0xac, 0x7d, 0x14, 0xda, 0x8f, 0xc2, 0xeb, 0xb0, 0xbc, 0x74, 0xf0, 0xed, 0x92, 0xeb, 0x41, 0xcb, - 0x1c, 0xb7, 0xe7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x77, 0x40, 0x4d, 0x76, 0x05, 0x00, - 0x00, +func init() { + proto.RegisterFile("nftmngr/latest/on_chain_data.proto", fileDescriptor_ddb245fb8d8b9b8f) +} + +var fileDescriptor_ddb245fb8d8b9b8f = []byte{ + // 351 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x4d, 0x4b, 0xc3, 0x40, + 0x10, 0x86, 0xbb, 0xad, 0x54, 0xdd, 0xfa, 0x45, 0x4e, 0xa1, 0x4a, 0xac, 0xc5, 0x43, 0xbc, 0x64, + 0x51, 0xef, 0xe2, 0x47, 0x11, 0xbc, 0xa8, 0x44, 0x10, 0x11, 0x21, 0x6c, 0xdb, 0x4d, 0xbb, 0xb4, + 0xd9, 0x2d, 0xd9, 0x89, 0xd6, 0x7f, 0xe1, 0xbf, 0xd2, 0x63, 0x8f, 0x1e, 0xa5, 0xfd, 0x23, 0xd2, + 0xdd, 0xf4, 0x2b, 0x87, 0x0a, 0xde, 0x86, 0x99, 0xf7, 0x7d, 0x96, 0x79, 0x67, 0x71, 0x55, 0x84, + 0x10, 0x89, 0x56, 0x4c, 0xba, 0x14, 0x98, 0x02, 0x22, 0x45, 0xd0, 0x68, 0x53, 0x2e, 0x82, 0x26, + 0x05, 0xea, 0xf5, 0x62, 0x09, 0xd2, 0xda, 0x83, 0x36, 0x53, 0xbc, 0x2f, 0x18, 0xbc, 0xc9, 0xb8, + 0xe3, 0x8d, 0xcb, 0x10, 0xbc, 0xd4, 0x58, 0x3e, 0xca, 0x10, 0x28, 0x40, 0xcc, 0xeb, 0x09, 0xb0, + 0xa0, 0xc9, 0x42, 0x2e, 0x38, 0x70, 0x29, 0x0c, 0xa8, 0xbc, 0x9b, 0x95, 0x36, 0xe6, 0x86, 0x6e, + 0x66, 0x28, 0x42, 0x08, 0x66, 0xac, 0x57, 0xda, 0x4d, 0x98, 0x51, 0x56, 0xef, 0x31, 0xbe, 0xee, + 0xd2, 0xd6, 0x03, 0x50, 0x48, 0x94, 0xb5, 0x8f, 0x4b, 0x4a, 0x57, 0x81, 0xa0, 0x11, 0xb3, 0x51, + 0x05, 0xb9, 0xeb, 0x3e, 0x36, 0xad, 0x5b, 0x1a, 0x31, 0xeb, 0x00, 0x6f, 0xa4, 0x02, 0x0d, 0xb1, + 0xf3, 0x15, 0xe4, 0xae, 0xf9, 0xa9, 0xe9, 0x71, 0xdc, 0xaa, 0x7e, 0xe6, 0x71, 0xe9, 0x4e, 0x5c, + 0x8d, 0x17, 0xaf, 0x51, 0xa0, 0xd6, 0x13, 0xde, 0x5a, 0x78, 0x5e, 0xd9, 0xa8, 0x52, 0x70, 0x4b, + 0x27, 0xc7, 0xde, 0xb2, 0x28, 0xbc, 0x8b, 0x89, 0xbe, 0x36, 0xdd, 0xdc, 0xdf, 0x14, 0x21, 0x4c, + 0xfb, 0xca, 0x7a, 0xc1, 0x3b, 0x20, 0x3b, 0x4c, 0xcc, 0xb3, 0xf3, 0xff, 0x65, 0x6f, 0x6b, 0xd4, + 0x1c, 0xfd, 0x0c, 0xaf, 0x9a, 0x4c, 0x95, 0x5d, 0xd0, 0xd0, 0xc3, 0x3f, 0xa0, 0x5a, 0xec, 0x4f, + 0x4c, 0xd6, 0x39, 0x2e, 0x9a, 0x58, 0xec, 0x15, 0x6d, 0x77, 0x97, 0xdb, 0x67, 0x57, 0xf0, 0x53, + 0xdf, 0xe5, 0xcd, 0xd7, 0xd0, 0x41, 0x83, 0xa1, 0x83, 0x7e, 0x86, 0x0e, 0xfa, 0x18, 0x39, 0xb9, + 0xc1, 0xc8, 0xc9, 0x7d, 0x8f, 0x9c, 0xdc, 0x33, 0x69, 0x71, 0x68, 0x27, 0x75, 0xaf, 0x21, 0x23, + 0xb2, 0x40, 0x25, 0x86, 0x4a, 0xfa, 0x64, 0xf2, 0x03, 0xe0, 0xbd, 0xc7, 0x54, 0xbd, 0xa8, 0xaf, + 0x7d, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x49, 0x51, 0x4d, 0xa3, 0x02, 0x00, 0x00, } func (m *FlagStatus) Marshal() (dAtA []byte, err error) { @@ -424,641 +264,105 @@ func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - } - if len(m.TokenAttributes) > 0 { - for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.NftAttributes) > 0 { - for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *OnChainDataV2) 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 *OnChainDataV2) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OnChainDataV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Status) > 0 { - for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Actions) > 0 { - for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.TokenAttributes) > 0 { - for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *OnChainDataV1) 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 *OnChainDataV1) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OnChainDataV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NftAttributesValue) > 0 { - for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - } - if len(m.Status) > 0 { - for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - } - if len(m.Actions) > 0 { - for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.TokenAttributes) > 0 { - for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.NftAttributes) > 0 { - for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintOnChainData(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.RevealSecret) > 0 { - i -= len(m.RevealSecret) - copy(dAtA[i:], m.RevealSecret) - i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) - i-- - dAtA[i] = 0x12 - } - if m.RevealRequired { - i-- - if m.RevealRequired { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { - offset -= sovOnChainData(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *FlagStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.StatusName) - if l > 0 { - n += 1 + l + sovOnChainData(uint64(l)) - } - if m.StatusValue { - n += 2 - } - return n -} - -func (m *OnChainData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.NftAttributes) > 0 { - for _, e := range m.NftAttributes { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.TokenAttributes) > 0 { - for _, e := range m.TokenAttributes { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Actions) > 0 { - for _, e := range m.Actions { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Status) > 0 { - for _, e := range m.Status { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - return n -} - -func (m *OnChainDataV2) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.TokenAttributes) > 0 { - for _, e := range m.TokenAttributes { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Actions) > 0 { - for _, e := range m.Actions { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Status) > 0 { - for _, e := range m.Status { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - return n -} - -func (m *OnChainDataV1) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RevealRequired { - n += 2 - } - l = len(m.RevealSecret) - if l > 0 { - n += 1 + l + sovOnChainData(uint64(l)) - } - if len(m.NftAttributes) > 0 { - for _, e := range m.NftAttributes { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.TokenAttributes) > 0 { - for _, e := range m.TokenAttributes { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Actions) > 0 { - for _, e := range m.Actions { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.Status) > 0 { - for _, e := range m.Status { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - if len(m.NftAttributesValue) > 0 { - for _, e := range m.NftAttributesValue { - l = e.Size() - n += 1 + l + sovOnChainData(uint64(l)) - } - } - return n -} - -func sovOnChainData(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozOnChainData(x uint64) (n int) { - return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *FlagStatus) 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 ErrIntOverflowOnChainData - } - 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: FlagStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - 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 ErrInvalidLengthOnChainData - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StatusName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.StatusValue = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipOnChainData(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthOnChainData - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OnChainData) 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 ErrIntOverflowOnChainData - } - 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: OnChainData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) - if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) - if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Actions = append(m.Actions, &Action{}) - if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = append(m.Status, &FlagStatus{}) - if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipOnChainData(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthOnChainData + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) } - iNdEx += skippy + i-- + dAtA[i] = 0xa } } + return len(dAtA) - i, nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return nil + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *OnChainDataV2) Unmarshal(dAtA []byte) error { +func (m *FlagStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1081,17 +385,17 @@ func (m *OnChainDataV2) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OnChainDataV2: wiretype end group for non-group") + return fmt.Errorf("proto: FlagStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OnChainDataV2: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowOnChainData @@ -1101,65 +405,29 @@ func (m *OnChainDataV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthOnChainData } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthOnChainData } if postIndex > l { return io.ErrUnexpectedEOF } - m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) - if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.StatusName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Actions = append(m.Actions, &Action{}) - if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowOnChainData @@ -1169,26 +437,12 @@ func (m *OnChainDataV2) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Status = append(m.Status, &FlagStatus{}) - if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.StatusValue = bool(v != 0) default: iNdEx = preIndex skippy, err := skipOnChainData(dAtA[iNdEx:]) @@ -1210,7 +464,7 @@ func (m *OnChainDataV2) Unmarshal(dAtA []byte) error { } return nil } -func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { +func (m *OnChainData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1233,67 +487,13 @@ func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: OnChainDataV1: wiretype end group for non-group") + return fmt.Errorf("proto: OnChainData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: OnChainDataV1: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RevealRequired = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) - if m.RevealSecret == nil { - m.RevealSecret = []byte{} - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) } @@ -1327,7 +527,7 @@ func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) } @@ -1361,7 +561,7 @@ func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } @@ -1395,7 +595,7 @@ func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } @@ -1429,40 +629,6 @@ func (m *OnChainDataV1) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOnChainData - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthOnChainData - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthOnChainData - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) - if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipOnChainData(dAtA[iNdEx:]) diff --git a/x/nftmngr/types/opensea_display_option.pb.go b/x/nftmngr/types/opensea_display_option.pb.go index edea1e7d..829c0b50 100644 --- a/x/nftmngr/types/opensea_display_option.pb.go +++ b/x/nftmngr/types/opensea_display_option.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/opensea_display_option.proto +// source: nftmngr/latest/opensea_display_option.proto package types @@ -32,7 +32,7 @@ func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } func (*OpenseaDisplayOption) ProtoMessage() {} func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { - return fileDescriptor_0a72f14b2fd8c4d9, []int{0} + return fileDescriptor_bf51bc80bc760194, []int{0} } func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -87,26 +87,26 @@ func init() { } func init() { - proto.RegisterFile("nftmngr/opensea_display_option.proto", fileDescriptor_0a72f14b2fd8c4d9) + proto.RegisterFile("nftmngr/latest/opensea_display_option.proto", fileDescriptor_bf51bc80bc760194) } -var fileDescriptor_0a72f14b2fd8c4d9 = []byte{ - // 226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, - 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x5a, 0x95, 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0xba, 0x5d, 0x20, - 0x9a, 0xfd, 0xc1, 0x7a, 0x85, 0x14, 0xb9, 0x78, 0x60, 0xa6, 0x95, 0x54, 0x16, 0xa4, 0x4a, 0x30, - 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x71, 0x43, 0xc5, 0x42, 0x2a, 0x0b, 0x52, 0x85, 0x64, 0xb9, 0xb8, - 0x4a, 0x8a, 0x12, 0x33, 0x4b, 0x20, 0x0a, 0x98, 0xc0, 0x0a, 0x38, 0xc1, 0x22, 0x60, 0x69, 0x69, - 0x2e, 0xce, 0xdc, 0xc4, 0x8a, 0xf8, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x66, 0x05, 0x46, 0x0d, - 0x96, 0x20, 0x8e, 0xdc, 0xc4, 0x8a, 0x30, 0x10, 0xdf, 0xc9, 0xf3, 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, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, - 0xf5, 0x51, 0x5c, 0xae, 0x0f, 0x71, 0xb9, 0x7e, 0x85, 0x3e, 0xcc, 0xdb, 0x20, 0x7b, 0x8b, 0x93, - 0xd8, 0xc0, 0xde, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x16, 0xc4, 0xe3, 0x7a, 0x0e, 0x01, - 0x00, 0x00, +var fileDescriptor_bf51bc80bc760194 = []byte{ + // 233 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, + 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x26, 0x28, 0x95, + 0x72, 0x89, 0xf8, 0x43, 0x74, 0xbb, 0x40, 0x34, 0xfb, 0x83, 0xf5, 0x0a, 0x29, 0x72, 0xf1, 0xc0, + 0x4c, 0x2b, 0xa9, 0x2c, 0x48, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x86, 0x8a, 0x85, + 0x54, 0x16, 0xa4, 0x0a, 0xc9, 0x72, 0x71, 0x95, 0x14, 0x25, 0x66, 0x96, 0x40, 0x14, 0x30, 0x81, + 0x15, 0x70, 0x82, 0x45, 0xc0, 0xd2, 0xd2, 0x5c, 0x9c, 0xb9, 0x89, 0x15, 0xf1, 0x65, 0x89, 0x39, + 0xa5, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x2c, 0x41, 0x1c, 0xb9, 0x89, 0x15, 0x61, 0x20, 0xbe, + 0x93, 0xe7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, + 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa7, 0x67, 0x96, + 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa3, 0xb8, 0x5c, 0x1f, 0xe2, 0x72, 0xfd, 0x0a, + 0x7d, 0x98, 0xef, 0x41, 0xf6, 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x8d, 0xfd, 0x03, 0xc6, 0x15, 0x01, 0x00, 0x00, } func (m *OpenseaDisplayOption) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/organization.pb.go b/x/nftmngr/types/organization.pb.go index 659f513d..d8bbb9e0 100644 --- a/x/nftmngr/types/organization.pb.go +++ b/x/nftmngr/types/organization.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/organization.proto +// source: nftmngr/latest/organization.proto package types @@ -31,7 +31,7 @@ func (m *Organization) Reset() { *m = Organization{} } func (m *Organization) String() string { return proto.CompactTextString(m) } func (*Organization) ProtoMessage() {} func (*Organization) Descriptor() ([]byte, []int) { - return fileDescriptor_0260cd307d74f1e3, []int{0} + return fileDescriptor_95962411863dc5ff, []int{0} } func (m *Organization) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -78,21 +78,22 @@ func init() { proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.Organization") } -func init() { proto.RegisterFile("nftmngr/organization.proto", fileDescriptor_0260cd307d74f1e3) } +func init() { proto.RegisterFile("nftmngr/latest/organization.proto", fileDescriptor_95962411863dc5ff) } -var fileDescriptor_0260cd307d74f1e3 = []byte{ - // 175 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xca, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, - 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, - 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0x94, 0x2c, 0xb8, - 0x78, 0xfc, 0x91, 0xf4, 0x08, 0x09, 0x71, 0xb1, 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, - 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, - 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xf3, 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, - 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x2c, 0xd7, 0x87, - 0x58, 0xae, 0x5f, 0xa1, 0x0f, 0x73, 0x6f, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xa5, - 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x19, 0x87, 0x99, 0x7c, 0xc7, 0x00, 0x00, 0x00, +var fileDescriptor_95962411863dc5ff = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, + 0xcb, 0xac, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0xf4, 0x08, 0x09, 0x71, 0xb1, 0xe4, + 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, 0xac, + 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xf3, 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, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, + 0xf3, 0x73, 0xf5, 0x51, 0x2c, 0xd7, 0x87, 0x58, 0xae, 0x5f, 0xa1, 0x0f, 0x73, 0x76, 0x49, 0x65, + 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xa5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x91, + 0x21, 0xc3, 0xce, 0x00, 0x00, 0x00, } func (m *Organization) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/origin_data.pb.go b/x/nftmngr/types/origin_data.pb.go index ee95b851..3194838b 100644 --- a/x/nftmngr/types/origin_data.pb.go +++ b/x/nftmngr/types/origin_data.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/origin_data.proto +// source: nftmngr/latest/origin_data.proto package types @@ -44,7 +44,7 @@ func (x AttributeOverriding) String() string { } func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_02bc4c05ee0c6896, []int{0} + return fileDescriptor_b236abaafd2e270e, []int{0} } type URIRetrievalMethod int32 @@ -69,7 +69,7 @@ func (x URIRetrievalMethod) String() string { } func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_02bc4c05ee0c6896, []int{1} + return fileDescriptor_b236abaafd2e270e, []int{1} } type OriginData struct { @@ -86,7 +86,7 @@ func (m *OriginData) Reset() { *m = OriginData{} } func (m *OriginData) String() string { return proto.CompactTextString(m) } func (*OriginData) ProtoMessage() {} func (*OriginData) Descriptor() ([]byte, []int) { - return fileDescriptor_02bc4c05ee0c6896, []int{0} + return fileDescriptor_b236abaafd2e270e, []int{0} } func (m *OriginData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,38 +170,38 @@ func init() { proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.OriginData") } -func init() { proto.RegisterFile("nftmngr/origin_data.proto", fileDescriptor_02bc4c05ee0c6896) } +func init() { proto.RegisterFile("nftmngr/latest/origin_data.proto", fileDescriptor_b236abaafd2e270e) } -var fileDescriptor_02bc4c05ee0c6896 = []byte{ - // 433 bytes of a gzipped FileDescriptorProto +var fileDescriptor_b236abaafd2e270e = []byte{ + // 438 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0x20, 0x64, 0x85, 0x1e, 0x20, 0x54, - 0xc8, 0xe6, 0x43, 0xe2, 0x9e, 0xb4, 0x05, 0x2c, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x80, 0xb5, 0x8e, - 0x37, 0xc9, 0x08, 0xbc, 0x5b, 0x8d, 0xc7, 0xa5, 0xfc, 0x0b, 0x7e, 0x16, 0xc7, 0x1e, 0x39, 0xa2, - 0xe4, 0x8f, 0xa0, 0xac, 0x3f, 0x10, 0x14, 0x55, 0xdc, 0x56, 0x6f, 0xde, 0x7b, 0xfb, 0xde, 0x68, - 0xe0, 0x8e, 0x9e, 0x72, 0xa6, 0x67, 0x14, 0x18, 0xc2, 0x19, 0xea, 0x38, 0x95, 0x2c, 0xfd, 0x13, - 0x32, 0x6c, 0xc4, 0x3d, 0x9e, 0xab, 0x1c, 0xcf, 0xb4, 0xe2, 0x2f, 0x86, 0x3e, 0xf9, 0xab, 0xe7, - 0x94, 0xfd, 0x8a, 0x7f, 0x77, 0xaf, 0x16, 0x4a, 0x66, 0xc2, 0xa4, 0x60, 0x15, 0xa7, 0x6a, 0x8a, - 0x1a, 0x19, 0x8d, 0x2e, 0x1d, 0xf6, 0x16, 0x6d, 0x80, 0xb1, 0xf5, 0x3d, 0x94, 0x2c, 0xc5, 0x7d, - 0xb8, 0x5e, 0xfd, 0x32, 0x99, 0x4b, 0xd4, 0xae, 0xd3, 0x73, 0xfa, 0x1b, 0xd1, 0x66, 0x89, 0x1d, - 0xac, 0x20, 0xf1, 0x02, 0x6e, 0xd7, 0x14, 0xa3, 0x99, 0xe4, 0x84, 0x63, 0x99, 0xa6, 0xa4, 0xf2, - 0xdc, 0xbd, 0x62, 0xd9, 0xb7, 0x2a, 0x76, 0x35, 0x1d, 0x94, 0x43, 0xf1, 0x00, 0xb6, 0x2b, 0x5d, - 0x22, 0x73, 0x15, 0x17, 0x84, 0x6e, 0xdb, 0xf2, 0x6f, 0x94, 0xf0, 0x50, 0xe6, 0xea, 0x98, 0x50, - 0xa4, 0xb0, 0xfb, 0x3b, 0xaf, 0x39, 0x55, 0x44, 0x98, 0xa2, 0x9e, 0xb9, 0x6b, 0x3d, 0xa7, 0xbf, - 0xf5, 0xec, 0xa9, 0x7f, 0x59, 0x65, 0x7f, 0x50, 0x2b, 0xc7, 0x8d, 0x30, 0xda, 0x91, 0x17, 0x41, - 0xf1, 0x10, 0xb6, 0x33, 0xc5, 0x72, 0xb5, 0xcb, 0x78, 0x6a, 0x28, 0x93, 0xec, 0xae, 0xdb, 0x34, - 0x5b, 0x35, 0xfc, 0xd2, 0xa2, 0xe2, 0x23, 0xdc, 0xac, 0x62, 0x37, 0x36, 0xb9, 0xdb, 0xe9, 0xb5, - 0xfb, 0x9b, 0xff, 0x9d, 0xe5, 0xb0, 0x59, 0x7a, 0xd4, 0x2d, 0xbd, 0x9a, 0x51, 0x2e, 0x12, 0xd8, - 0x2d, 0x08, 0x63, 0x52, 0x4c, 0xa8, 0x4e, 0xe5, 0xe7, 0x38, 0x53, 0x3c, 0x37, 0xa9, 0x7b, 0xd5, - 0xd6, 0x7d, 0x72, 0xf9, 0x17, 0xc7, 0x51, 0x18, 0xd5, 0xc2, 0xb7, 0x56, 0x17, 0x89, 0x82, 0xf0, - 0x2f, 0x6c, 0xff, 0x31, 0xec, 0xfc, 0x63, 0x31, 0x02, 0xa0, 0x33, 0x8e, 0xc2, 0x57, 0xe1, 0xa8, - 0xdb, 0x12, 0x1b, 0xb0, 0x7e, 0xf0, 0x7a, 0x10, 0x8e, 0xba, 0xce, 0xfe, 0x23, 0x10, 0x17, 0x7d, - 0xc5, 0x35, 0x58, 0x1b, 0x0e, 0xde, 0x1d, 0x95, 0xd4, 0xf7, 0xe3, 0x37, 0x47, 0xa3, 0xae, 0x33, - 0x0c, 0xbf, 0x2f, 0x3c, 0xe7, 0x7c, 0xe1, 0x39, 0x3f, 0x17, 0x9e, 0xf3, 0x6d, 0xe9, 0xb5, 0xce, - 0x97, 0x5e, 0xeb, 0xc7, 0xd2, 0x6b, 0x7d, 0x08, 0x66, 0xc8, 0xf3, 0x22, 0xf1, 0x27, 0x26, 0x0b, - 0xfe, 0xa8, 0x10, 0x94, 0x15, 0x82, 0xb3, 0xa0, 0xbe, 0x4e, 0xfe, 0x7a, 0xa2, 0xf2, 0xa4, 0x63, - 0xef, 0xf1, 0xf9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x17, 0xaa, 0x9d, 0xee, 0x02, 0x00, - 0x00, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0x42, 0xc8, 0x0a, 0x1c, 0x20, 0xad, + 0x90, 0xcd, 0x87, 0xc4, 0x3d, 0x69, 0x0b, 0x58, 0x88, 0x44, 0x32, 0xf4, 0xc2, 0x01, 0x6b, 0x1d, + 0x6f, 0x92, 0x11, 0xf5, 0x6e, 0x35, 0x3b, 0x2e, 0xe5, 0x5f, 0xf0, 0xb3, 0x38, 0xf6, 0xc8, 0x11, + 0x25, 0x7f, 0x04, 0xc5, 0x1f, 0x41, 0xb4, 0x28, 0xea, 0x6d, 0xf5, 0xe6, 0xbd, 0xb7, 0xef, 0x8d, + 0x06, 0x3a, 0x7a, 0xcc, 0x99, 0x9e, 0x50, 0x70, 0x22, 0x59, 0x59, 0x0e, 0x0c, 0xe1, 0x04, 0x75, + 0x9c, 0x4a, 0x96, 0xfe, 0x29, 0x19, 0x36, 0xe2, 0x21, 0x4f, 0x95, 0xc5, 0x73, 0xad, 0xf8, 0x9b, + 0xa1, 0xaf, 0xfe, 0xe2, 0x39, 0x66, 0xbf, 0x92, 0x3d, 0xd8, 0xbb, 0xa4, 0x97, 0xcc, 0x84, 0x49, + 0xce, 0x2a, 0x4e, 0xd5, 0x18, 0x35, 0x32, 0x1a, 0x5d, 0x1a, 0x3d, 0x9e, 0x35, 0x01, 0x86, 0x85, + 0xfd, 0xa1, 0x64, 0x29, 0x1e, 0xc1, 0xed, 0xea, 0xb3, 0xd1, 0x54, 0xa2, 0x76, 0x9d, 0x8e, 0xd3, + 0xdd, 0x88, 0x36, 0x4b, 0xec, 0x60, 0x01, 0x89, 0xd7, 0x70, 0xbf, 0xa6, 0x18, 0xcd, 0x24, 0x47, + 0x1c, 0xcb, 0x34, 0x25, 0x65, 0xad, 0x7b, 0xa3, 0x60, 0xdf, 0xab, 0xd8, 0xd5, 0xb4, 0x57, 0x0e, + 0xc5, 0x13, 0xd8, 0xae, 0x74, 0x89, 0xb4, 0x2a, 0xce, 0x09, 0xdd, 0x66, 0xc1, 0xbf, 0x53, 0xc2, + 0x7d, 0x69, 0xd5, 0x31, 0xa1, 0x48, 0x61, 0xf7, 0x6f, 0x5e, 0x73, 0xa6, 0x88, 0x30, 0x45, 0x3d, + 0x71, 0xd7, 0x3a, 0x4e, 0x77, 0xeb, 0xe5, 0x0b, 0x7f, 0x55, 0x73, 0xbf, 0x57, 0x2b, 0x87, 0x4b, + 0x61, 0xb4, 0x23, 0xaf, 0x82, 0xe2, 0x29, 0x6c, 0x67, 0x8a, 0xe5, 0x62, 0xa5, 0xf1, 0xd8, 0x50, + 0x26, 0xd9, 0x5d, 0x2f, 0xd2, 0x6c, 0xd5, 0xf0, 0x9b, 0x02, 0x15, 0x5f, 0xe0, 0x6e, 0x15, 0x7b, + 0x69, 0x63, 0xdd, 0x56, 0xa7, 0xd9, 0xdd, 0xbc, 0x76, 0x96, 0xc3, 0xe5, 0xd2, 0xa3, 0x76, 0xe9, + 0xb5, 0x1c, 0x59, 0x91, 0xc0, 0x6e, 0x4e, 0x18, 0x93, 0x62, 0x42, 0x75, 0x26, 0x4f, 0xe2, 0x4c, + 0xf1, 0xd4, 0xa4, 0xee, 0xcd, 0xa2, 0xee, 0xf3, 0xd5, 0x5f, 0x1c, 0x47, 0x61, 0x54, 0x0b, 0x3f, + 0x14, 0xba, 0x48, 0xe4, 0x84, 0x97, 0xb0, 0xfd, 0x67, 0xb0, 0xf3, 0x9f, 0xc5, 0x08, 0x80, 0xd6, + 0x30, 0x0a, 0xdf, 0x86, 0x83, 0x76, 0x43, 0x6c, 0xc0, 0xfa, 0xc1, 0xbb, 0x5e, 0x38, 0x68, 0x3b, + 0xfb, 0x7b, 0x20, 0xae, 0xfa, 0x8a, 0x5b, 0xb0, 0xd6, 0xef, 0x7d, 0x3c, 0x2a, 0xa9, 0x9f, 0x86, + 0xef, 0x8f, 0x06, 0x6d, 0xa7, 0x1f, 0xfe, 0x9c, 0x79, 0xce, 0xc5, 0xcc, 0x73, 0x7e, 0xcf, 0x3c, + 0xe7, 0xc7, 0xdc, 0x6b, 0x5c, 0xcc, 0xbd, 0xc6, 0xaf, 0xb9, 0xd7, 0xf8, 0x1c, 0x4c, 0x90, 0xa7, + 0x79, 0xe2, 0x8f, 0x4c, 0x16, 0xfc, 0x53, 0x21, 0x28, 0x2b, 0x04, 0xe7, 0x41, 0x7d, 0xa4, 0xfc, + 0xfd, 0x54, 0xd9, 0xa4, 0x55, 0xdc, 0xe3, 0xab, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xcc, + 0x53, 0xc4, 0xfc, 0x02, 0x00, 0x00, } func (m *OriginData) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/params.pb.go b/x/nftmngr/types/params.pb.go index 342817ff..bf06c78e 100644 --- a/x/nftmngr/types/params.pb.go +++ b/x/nftmngr/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/params.proto +// source: nftmngr/latest/params.proto package types @@ -30,7 +30,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_d1410fd937410334, []int{0} + return fileDescriptor_3042217188103e72, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,20 +63,21 @@ func init() { proto.RegisterType((*Params)(nil), "thesixnetwork.sixnft.nftmngr.Params") } -func init() { proto.RegisterFile("nftmngr/params.proto", fileDescriptor_d1410fd937410334) } +func init() { proto.RegisterFile("nftmngr/latest/params.proto", fileDescriptor_3042217188103e72) } -var fileDescriptor_d1410fd937410334 = []byte{ - // 156 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x4a, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x0a, 0xf5, - 0x41, 0x2c, 0x88, 0x1e, 0x25, 0x3e, 0x2e, 0xb6, 0x00, 0xb0, 0x19, 0x56, 0x2c, 0x33, 0x16, 0xc8, - 0x33, 0x38, 0x79, 0x9e, 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, 0x7e, 0x7a, - 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0x8a, 0x45, 0xfa, 0x10, 0x8b, 0xf4, - 0x2b, 0xf4, 0x61, 0xae, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xdb, 0x60, 0x0c, 0x08, - 0x00, 0x00, 0xff, 0xff, 0xc4, 0x2c, 0x14, 0x23, 0xad, 0x00, 0x00, 0x00, +var fileDescriptor_3042217188103e72 = []byte{ + // 163 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0xcf, 0x49, 0x2c, 0x49, 0x2d, 0x2e, 0xd1, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, + 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, + 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xa4, 0x44, + 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x0a, 0xf5, 0x41, 0x2c, 0x88, 0x1e, 0x25, 0x3e, 0x2e, 0xb6, 0x00, + 0xb0, 0x19, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, 0x79, 0x9e, 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, 0x7e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, + 0x3e, 0x8a, 0x45, 0xfa, 0x10, 0x8b, 0xf4, 0x2b, 0xf4, 0x61, 0x8e, 0x2b, 0xa9, 0x2c, 0x48, 0x2d, + 0x4e, 0x62, 0x03, 0xdb, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xea, 0xa6, 0xa5, 0x4c, 0xb4, + 0x00, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/query.pb.go b/x/nftmngr/types/query.pb.go index f01a5ac2..1469be55 100644 --- a/x/nftmngr/types/query.pb.go +++ b/x/nftmngr/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/query.proto +// source: nftmngr/latest/query.proto package types @@ -38,7 +38,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{0} + return fileDescriptor_d80b184aa4cfb14e, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -77,7 +77,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{1} + return fileDescriptor_d80b184aa4cfb14e, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +121,7 @@ func (m *QueryGetNFTSchemaRequest) Reset() { *m = QueryGetNFTSchemaReque func (m *QueryGetNFTSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTSchemaRequest) ProtoMessage() {} func (*QueryGetNFTSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{2} + return fileDescriptor_d80b184aa4cfb14e, []int{2} } func (m *QueryGetNFTSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -165,7 +165,7 @@ func (m *QueryGetNFTSchemaResponse) Reset() { *m = QueryGetNFTSchemaResp func (m *QueryGetNFTSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTSchemaResponse) ProtoMessage() {} func (*QueryGetNFTSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{3} + return fileDescriptor_d80b184aa4cfb14e, []int{3} } func (m *QueryGetNFTSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -209,7 +209,7 @@ func (m *QueryAllNFTSchemaRequest) Reset() { *m = QueryAllNFTSchemaReque func (m *QueryAllNFTSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllNFTSchemaRequest) ProtoMessage() {} func (*QueryAllNFTSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{4} + return fileDescriptor_d80b184aa4cfb14e, []int{4} } func (m *QueryAllNFTSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -254,7 +254,7 @@ func (m *QueryAllNFTSchemaResponse) Reset() { *m = QueryAllNFTSchemaResp func (m *QueryAllNFTSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllNFTSchemaResponse) ProtoMessage() {} func (*QueryAllNFTSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{5} + return fileDescriptor_d80b184aa4cfb14e, []int{5} } func (m *QueryAllNFTSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -307,7 +307,7 @@ func (m *QueryGetNftDataRequest) Reset() { *m = QueryGetNftDataRequest{} func (m *QueryGetNftDataRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNftDataRequest) ProtoMessage() {} func (*QueryGetNftDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{6} + return fileDescriptor_d80b184aa4cfb14e, []int{6} } func (m *QueryGetNftDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -365,7 +365,7 @@ func (m *QueryGetNftDataResponse) Reset() { *m = QueryGetNftDataResponse func (m *QueryGetNftDataResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNftDataResponse) ProtoMessage() {} func (*QueryGetNftDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{7} + return fileDescriptor_d80b184aa4cfb14e, []int{7} } func (m *QueryGetNftDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -410,7 +410,7 @@ func (m *QueryAllNftDataRequest) Reset() { *m = QueryAllNftDataRequest{} func (m *QueryAllNftDataRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllNftDataRequest) ProtoMessage() {} func (*QueryAllNftDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{8} + return fileDescriptor_d80b184aa4cfb14e, []int{8} } func (m *QueryAllNftDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -462,7 +462,7 @@ func (m *QueryAllNftDataResponse) Reset() { *m = QueryAllNftDataResponse func (m *QueryAllNftDataResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllNftDataResponse) ProtoMessage() {} func (*QueryAllNftDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{9} + return fileDescriptor_d80b184aa4cfb14e, []int{9} } func (m *QueryAllNftDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -513,7 +513,7 @@ func (m *QueryGetActionByRefIdRequest) Reset() { *m = QueryGetActionByRe func (m *QueryGetActionByRefIdRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetActionByRefIdRequest) ProtoMessage() {} func (*QueryGetActionByRefIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{10} + return fileDescriptor_d80b184aa4cfb14e, []int{10} } func (m *QueryGetActionByRefIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -557,7 +557,7 @@ func (m *QueryGetActionByRefIdResponse) Reset() { *m = QueryGetActionByR func (m *QueryGetActionByRefIdResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetActionByRefIdResponse) ProtoMessage() {} func (*QueryGetActionByRefIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{11} + return fileDescriptor_d80b184aa4cfb14e, []int{11} } func (m *QueryGetActionByRefIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -601,7 +601,7 @@ func (m *QueryAllActionByRefIdRequest) Reset() { *m = QueryAllActionByRe func (m *QueryAllActionByRefIdRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllActionByRefIdRequest) ProtoMessage() {} func (*QueryAllActionByRefIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{12} + return fileDescriptor_d80b184aa4cfb14e, []int{12} } func (m *QueryAllActionByRefIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -646,7 +646,7 @@ func (m *QueryAllActionByRefIdResponse) Reset() { *m = QueryAllActionByR func (m *QueryAllActionByRefIdResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllActionByRefIdResponse) ProtoMessage() {} func (*QueryAllActionByRefIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{13} + return fileDescriptor_d80b184aa4cfb14e, []int{13} } func (m *QueryAllActionByRefIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -697,7 +697,7 @@ func (m *QueryGetOrganizationRequest) Reset() { *m = QueryGetOrganizatio func (m *QueryGetOrganizationRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetOrganizationRequest) ProtoMessage() {} func (*QueryGetOrganizationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{14} + return fileDescriptor_d80b184aa4cfb14e, []int{14} } func (m *QueryGetOrganizationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -741,7 +741,7 @@ func (m *QueryGetOrganizationResponse) Reset() { *m = QueryGetOrganizati func (m *QueryGetOrganizationResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetOrganizationResponse) ProtoMessage() {} func (*QueryGetOrganizationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{15} + return fileDescriptor_d80b184aa4cfb14e, []int{15} } func (m *QueryGetOrganizationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,7 +785,7 @@ func (m *QueryAllOrganizationRequest) Reset() { *m = QueryAllOrganizatio func (m *QueryAllOrganizationRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllOrganizationRequest) ProtoMessage() {} func (*QueryAllOrganizationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{16} + return fileDescriptor_d80b184aa4cfb14e, []int{16} } func (m *QueryAllOrganizationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -830,7 +830,7 @@ func (m *QueryAllOrganizationResponse) Reset() { *m = QueryAllOrganizati func (m *QueryAllOrganizationResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllOrganizationResponse) ProtoMessage() {} func (*QueryAllOrganizationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{17} + return fileDescriptor_d80b184aa4cfb14e, []int{17} } func (m *QueryAllOrganizationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -882,7 +882,7 @@ func (m *QueryGetNftCollectionRequest) Reset() { *m = QueryGetNftCollect func (m *QueryGetNftCollectionRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNftCollectionRequest) ProtoMessage() {} func (*QueryGetNftCollectionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{18} + return fileDescriptor_d80b184aa4cfb14e, []int{18} } func (m *QueryGetNftCollectionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -934,7 +934,7 @@ func (m *QueryGetNftCollectionResponse) Reset() { *m = QueryGetNftCollec func (m *QueryGetNftCollectionResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNftCollectionResponse) ProtoMessage() {} func (*QueryGetNftCollectionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{19} + return fileDescriptor_d80b184aa4cfb14e, []int{19} } func (m *QueryGetNftCollectionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -985,7 +985,7 @@ func (m *QueryGetNFTSchemaByContractRequest) Reset() { *m = QueryGetNFTS func (m *QueryGetNFTSchemaByContractRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTSchemaByContractRequest) ProtoMessage() {} func (*QueryGetNFTSchemaByContractRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{20} + return fileDescriptor_d80b184aa4cfb14e, []int{20} } func (m *QueryGetNFTSchemaByContractRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1029,7 +1029,7 @@ func (m *QueryGetNFTSchemaByContractResponse) Reset() { *m = QueryGetNFT func (m *QueryGetNFTSchemaByContractResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTSchemaByContractResponse) ProtoMessage() {} func (*QueryGetNFTSchemaByContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{21} + return fileDescriptor_d80b184aa4cfb14e, []int{21} } func (m *QueryGetNFTSchemaByContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1073,7 +1073,7 @@ func (m *QueryAllNFTSchemaByContractRequest) Reset() { *m = QueryAllNFTS func (m *QueryAllNFTSchemaByContractRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllNFTSchemaByContractRequest) ProtoMessage() {} func (*QueryAllNFTSchemaByContractRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{22} + return fileDescriptor_d80b184aa4cfb14e, []int{22} } func (m *QueryAllNFTSchemaByContractRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1118,7 +1118,7 @@ func (m *QueryAllNFTSchemaByContractResponse) Reset() { *m = QueryAllNFT func (m *QueryAllNFTSchemaByContractResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllNFTSchemaByContractResponse) ProtoMessage() {} func (*QueryAllNFTSchemaByContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{23} + return fileDescriptor_d80b184aa4cfb14e, []int{23} } func (m *QueryAllNFTSchemaByContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1168,7 +1168,7 @@ func (m *QueryGetNFTFeeConfigRequest) Reset() { *m = QueryGetNFTFeeConfi func (m *QueryGetNFTFeeConfigRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTFeeConfigRequest) ProtoMessage() {} func (*QueryGetNFTFeeConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{24} + return fileDescriptor_d80b184aa4cfb14e, []int{24} } func (m *QueryGetNFTFeeConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1205,7 +1205,7 @@ func (m *QueryGetNFTFeeConfigResponse) Reset() { *m = QueryGetNFTFeeConf func (m *QueryGetNFTFeeConfigResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTFeeConfigResponse) ProtoMessage() {} func (*QueryGetNFTFeeConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{25} + return fileDescriptor_d80b184aa4cfb14e, []int{25} } func (m *QueryGetNFTFeeConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1248,7 +1248,7 @@ func (m *QueryGetNFTFeeBalanceRequest) Reset() { *m = QueryGetNFTFeeBala func (m *QueryGetNFTFeeBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTFeeBalanceRequest) ProtoMessage() {} func (*QueryGetNFTFeeBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{26} + return fileDescriptor_d80b184aa4cfb14e, []int{26} } func (m *QueryGetNFTFeeBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1285,7 +1285,7 @@ func (m *QueryGetNFTFeeBalanceResponse) Reset() { *m = QueryGetNFTFeeBal func (m *QueryGetNFTFeeBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetNFTFeeBalanceResponse) ProtoMessage() {} func (*QueryGetNFTFeeBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{27} + return fileDescriptor_d80b184aa4cfb14e, []int{27} } func (m *QueryGetNFTFeeBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1329,7 +1329,7 @@ func (m *QueryGetMetadataCreatorRequest) Reset() { *m = QueryGetMetadata func (m *QueryGetMetadataCreatorRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetMetadataCreatorRequest) ProtoMessage() {} func (*QueryGetMetadataCreatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{28} + return fileDescriptor_d80b184aa4cfb14e, []int{28} } func (m *QueryGetMetadataCreatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1373,7 +1373,7 @@ func (m *QueryGetMetadataCreatorResponse) Reset() { *m = QueryGetMetadat func (m *QueryGetMetadataCreatorResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetMetadataCreatorResponse) ProtoMessage() {} func (*QueryGetMetadataCreatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{29} + return fileDescriptor_d80b184aa4cfb14e, []int{29} } func (m *QueryGetMetadataCreatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1417,7 +1417,7 @@ func (m *QueryAllMetadataCreatorRequest) Reset() { *m = QueryAllMetadata func (m *QueryAllMetadataCreatorRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllMetadataCreatorRequest) ProtoMessage() {} func (*QueryAllMetadataCreatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{30} + return fileDescriptor_d80b184aa4cfb14e, []int{30} } func (m *QueryAllMetadataCreatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1462,7 +1462,7 @@ func (m *QueryAllMetadataCreatorResponse) Reset() { *m = QueryAllMetadat func (m *QueryAllMetadataCreatorResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllMetadataCreatorResponse) ProtoMessage() {} func (*QueryAllMetadataCreatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{31} + return fileDescriptor_d80b184aa4cfb14e, []int{31} } func (m *QueryAllMetadataCreatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1514,7 +1514,7 @@ func (m *QueryGetActionExecutorRequest) Reset() { *m = QueryGetActionExe func (m *QueryGetActionExecutorRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetActionExecutorRequest) ProtoMessage() {} func (*QueryGetActionExecutorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{32} + return fileDescriptor_d80b184aa4cfb14e, []int{32} } func (m *QueryGetActionExecutorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1565,7 +1565,7 @@ func (m *QueryGetActionExecutorResponse) Reset() { *m = QueryGetActionEx func (m *QueryGetActionExecutorResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetActionExecutorResponse) ProtoMessage() {} func (*QueryGetActionExecutorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{33} + return fileDescriptor_d80b184aa4cfb14e, []int{33} } func (m *QueryGetActionExecutorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1609,7 +1609,7 @@ func (m *QueryAllActionExecutorRequest) Reset() { *m = QueryAllActionExe func (m *QueryAllActionExecutorRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllActionExecutorRequest) ProtoMessage() {} func (*QueryAllActionExecutorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{34} + return fileDescriptor_d80b184aa4cfb14e, []int{34} } func (m *QueryAllActionExecutorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1654,7 +1654,7 @@ func (m *QueryAllActionExecutorResponse) Reset() { *m = QueryAllActionEx func (m *QueryAllActionExecutorResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllActionExecutorResponse) ProtoMessage() {} func (*QueryAllActionExecutorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{35} + return fileDescriptor_d80b184aa4cfb14e, []int{35} } func (m *QueryAllActionExecutorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1706,7 +1706,7 @@ func (m *QueryGetSchemaAttributeRequest) Reset() { *m = QueryGetSchemaAt func (m *QueryGetSchemaAttributeRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetSchemaAttributeRequest) ProtoMessage() {} func (*QueryGetSchemaAttributeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{36} + return fileDescriptor_d80b184aa4cfb14e, []int{36} } func (m *QueryGetSchemaAttributeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1757,7 +1757,7 @@ func (m *QueryGetSchemaAttributeResponse) Reset() { *m = QueryGetSchemaA func (m *QueryGetSchemaAttributeResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetSchemaAttributeResponse) ProtoMessage() {} func (*QueryGetSchemaAttributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{37} + return fileDescriptor_d80b184aa4cfb14e, []int{37} } func (m *QueryGetSchemaAttributeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1801,7 +1801,7 @@ func (m *QueryAllSchemaAttributeRequest) Reset() { *m = QueryAllSchemaAt func (m *QueryAllSchemaAttributeRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllSchemaAttributeRequest) ProtoMessage() {} func (*QueryAllSchemaAttributeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{38} + return fileDescriptor_d80b184aa4cfb14e, []int{38} } func (m *QueryAllSchemaAttributeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1846,7 +1846,7 @@ func (m *QueryAllSchemaAttributeResponse) Reset() { *m = QueryAllSchemaA func (m *QueryAllSchemaAttributeResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllSchemaAttributeResponse) ProtoMessage() {} func (*QueryAllSchemaAttributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{39} + return fileDescriptor_d80b184aa4cfb14e, []int{39} } func (m *QueryAllSchemaAttributeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1897,7 +1897,7 @@ func (m *QueryListAttributeBySchemaRequest) Reset() { *m = QueryListAttr func (m *QueryListAttributeBySchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryListAttributeBySchemaRequest) ProtoMessage() {} func (*QueryListAttributeBySchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{40} + return fileDescriptor_d80b184aa4cfb14e, []int{40} } func (m *QueryListAttributeBySchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1941,7 +1941,7 @@ func (m *QueryListAttributeBySchemaResponse) Reset() { *m = QueryListAtt func (m *QueryListAttributeBySchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryListAttributeBySchemaResponse) ProtoMessage() {} func (*QueryListAttributeBySchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{41} + return fileDescriptor_d80b184aa4cfb14e, []int{41} } func (m *QueryListAttributeBySchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1986,7 +1986,7 @@ func (m *QueryGetActionOfSchemaRequest) Reset() { *m = QueryGetActionOfS func (m *QueryGetActionOfSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetActionOfSchemaRequest) ProtoMessage() {} func (*QueryGetActionOfSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{42} + return fileDescriptor_d80b184aa4cfb14e, []int{42} } func (m *QueryGetActionOfSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2037,7 +2037,7 @@ func (m *QueryGetActionOfSchemaResponse) Reset() { *m = QueryGetActionOf func (m *QueryGetActionOfSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetActionOfSchemaResponse) ProtoMessage() {} func (*QueryGetActionOfSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{43} + return fileDescriptor_d80b184aa4cfb14e, []int{43} } func (m *QueryGetActionOfSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2081,7 +2081,7 @@ func (m *QueryAllActionOfSchemaRequest) Reset() { *m = QueryAllActionOfS func (m *QueryAllActionOfSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllActionOfSchemaRequest) ProtoMessage() {} func (*QueryAllActionOfSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{44} + return fileDescriptor_d80b184aa4cfb14e, []int{44} } func (m *QueryAllActionOfSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2126,7 +2126,7 @@ func (m *QueryAllActionOfSchemaResponse) Reset() { *m = QueryAllActionOf func (m *QueryAllActionOfSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllActionOfSchemaResponse) ProtoMessage() {} func (*QueryAllActionOfSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{45} + return fileDescriptor_d80b184aa4cfb14e, []int{45} } func (m *QueryAllActionOfSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2177,7 +2177,7 @@ func (m *QueryGetExecutorOfSchemaRequest) Reset() { *m = QueryGetExecuto func (m *QueryGetExecutorOfSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetExecutorOfSchemaRequest) ProtoMessage() {} func (*QueryGetExecutorOfSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{46} + return fileDescriptor_d80b184aa4cfb14e, []int{46} } func (m *QueryGetExecutorOfSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2221,7 +2221,7 @@ func (m *QueryGetExecutorOfSchemaResponse) Reset() { *m = QueryGetExecut func (m *QueryGetExecutorOfSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetExecutorOfSchemaResponse) ProtoMessage() {} func (*QueryGetExecutorOfSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{47} + return fileDescriptor_d80b184aa4cfb14e, []int{47} } func (m *QueryGetExecutorOfSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2265,7 +2265,7 @@ func (m *QueryAllExecutorOfSchemaRequest) Reset() { *m = QueryAllExecuto func (m *QueryAllExecutorOfSchemaRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllExecutorOfSchemaRequest) ProtoMessage() {} func (*QueryAllExecutorOfSchemaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{48} + return fileDescriptor_d80b184aa4cfb14e, []int{48} } func (m *QueryAllExecutorOfSchemaRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2310,7 +2310,7 @@ func (m *QueryAllExecutorOfSchemaResponse) Reset() { *m = QueryAllExecut func (m *QueryAllExecutorOfSchemaResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllExecutorOfSchemaResponse) ProtoMessage() {} func (*QueryAllExecutorOfSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1406c74dd8ff3e6a, []int{49} + return fileDescriptor_d80b184aa4cfb14e, []int{49} } func (m *QueryAllExecutorOfSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2406,140 +2406,140 @@ func init() { proto.RegisterType((*QueryAllExecutorOfSchemaResponse)(nil), "thesixnetwork.sixnft.nftmngr.QueryAllExecutorOfSchemaResponse") } -func init() { proto.RegisterFile("nftmngr/query.proto", fileDescriptor_1406c74dd8ff3e6a) } - -var fileDescriptor_1406c74dd8ff3e6a = []byte{ - // 2065 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcf, 0x6f, 0x24, 0x47, - 0x15, 0xde, 0xda, 0x49, 0x76, 0xd9, 0x22, 0x1b, 0x2f, 0xe5, 0xcd, 0x62, 0x86, 0xdd, 0x89, 0x29, - 0xcc, 0xc6, 0x32, 0xce, 0xb4, 0xed, 0x38, 0x4e, 0x76, 0x31, 0xc6, 0x63, 0x67, 0xed, 0x58, 0x24, - 0xde, 0xec, 0x60, 0x29, 0xca, 0x4a, 0xc8, 0xe9, 0x99, 0xa9, 0x19, 0xb7, 0xd2, 0xd3, 0xed, 0xcc, - 0xb4, 0x89, 0x8d, 0xb1, 0x84, 0x80, 0x23, 0x87, 0x48, 0x1c, 0xf9, 0x0b, 0x72, 0xcc, 0x81, 0x53, - 0x40, 0x80, 0x50, 0xd0, 0xe6, 0x40, 0x14, 0x09, 0x09, 0xf1, 0x43, 0x20, 0xb4, 0x9b, 0x13, 0x27, - 0x6e, 0x5c, 0x51, 0x57, 0xbf, 0x9a, 0xee, 0xaa, 0xfe, 0xe1, 0xea, 0x76, 0x27, 0xb7, 0x99, 0xaa, - 0x7e, 0xaf, 0xbe, 0xef, 0xd5, 0xab, 0x57, 0x55, 0x5f, 0x37, 0x1e, 0x77, 0xba, 0x5e, 0xdf, 0xe9, - 0x0d, 0x8c, 0xb7, 0x0f, 0xd8, 0xe0, 0xa8, 0xbe, 0x3f, 0x70, 0x3d, 0x97, 0x5c, 0xf7, 0xf6, 0xd8, - 0xd0, 0x3a, 0x74, 0x98, 0xf7, 0x8e, 0x3b, 0x78, 0xab, 0xee, 0xff, 0xec, 0x7a, 0x75, 0x78, 0xb2, - 0x7a, 0xb5, 0xe7, 0xf6, 0x5c, 0xfe, 0xa0, 0xe1, 0xff, 0x0a, 0x6c, 0xaa, 0xd7, 0x7b, 0xae, 0xdb, - 0xb3, 0x99, 0x61, 0xee, 0x5b, 0x86, 0xe9, 0x38, 0xae, 0x67, 0x7a, 0x96, 0xeb, 0x0c, 0xa1, 0x77, - 0xa6, 0xed, 0x0e, 0xfb, 0xee, 0xd0, 0x68, 0x99, 0x43, 0x16, 0x0c, 0x65, 0xfc, 0x60, 0xbe, 0xc5, - 0x3c, 0x73, 0xde, 0xd8, 0x37, 0x7b, 0x96, 0xc3, 0x1f, 0x86, 0x67, 0xaf, 0x0a, 0x48, 0xfb, 0xe6, - 0xc0, 0xec, 0x0b, 0x0f, 0x13, 0xa2, 0xd5, 0xe9, 0x7a, 0xbb, 0xc3, 0xf6, 0x1e, 0xeb, 0x9b, 0xd0, - 0x53, 0x13, 0x3d, 0x66, 0xdb, 0xf7, 0xb2, 0xdb, 0x3a, 0xda, 0x1d, 0xb0, 0xee, 0xae, 0xd5, 0x81, - 0xfe, 0xaa, 0xe8, 0x77, 0x07, 0x3d, 0xd3, 0xb1, 0x7e, 0x18, 0x1d, 0xeb, 0x7a, 0xd4, 0x6b, 0xdb, - 0xb5, 0x6d, 0xd6, 0x8e, 0xf4, 0x4e, 0xc5, 0xc7, 0xf4, 0xbd, 0xb7, 0x5d, 0xc7, 0x1b, 0x98, 0x6d, - 0x2f, 0xc9, 0x47, 0x97, 0x31, 0xbf, 0xbf, 0x6b, 0xf5, 0xa0, 0xf7, 0x86, 0xda, 0xdb, 0x32, 0x6d, - 0xd3, 0x69, 0x33, 0x15, 0x7c, 0x9f, 0x79, 0x66, 0xc7, 0xf4, 0xcc, 0xdd, 0xf6, 0x80, 0x99, 0x9e, - 0x3b, 0x50, 0xcd, 0x81, 0x1c, 0x3b, 0x64, 0xed, 0x83, 0xb0, 0x7b, 0x64, 0x0e, 0xe8, 0x4c, 0xcf, - 0x1b, 0x58, 0xad, 0x03, 0x8f, 0xa5, 0xc4, 0xc6, 0xed, 0xca, 0xb1, 0x9b, 0x14, 0xfd, 0xc2, 0x6f, - 0xec, 0x89, 0x6b, 0x51, 0xfc, 0x3e, 0xc0, 0xa0, 0x9d, 0x5e, 0xc5, 0xe4, 0x9e, 0x3f, 0x8f, 0xaf, - 0xf1, 0x49, 0x6a, 0xb2, 0xb7, 0x0f, 0xd8, 0xd0, 0xa3, 0x6f, 0xe0, 0x71, 0xa9, 0x75, 0xb8, 0xef, - 0x3a, 0x43, 0x46, 0xd6, 0xf0, 0x85, 0x60, 0x32, 0x27, 0xd0, 0x24, 0x9a, 0xfe, 0xe2, 0xc2, 0x54, - 0x3d, 0x2b, 0xc3, 0xea, 0x81, 0xf5, 0xda, 0x63, 0x0f, 0xfe, 0xf5, 0xf4, 0xb9, 0x26, 0x58, 0xd2, - 0x3a, 0x9e, 0xe0, 0xae, 0x37, 0x99, 0xb7, 0xbd, 0xb1, 0xf3, 0x3d, 0x8e, 0x11, 0x86, 0x25, 0x04, - 0x3f, 0xd6, 0x76, 0x3b, 0x8c, 0x7b, 0xbf, 0xd4, 0xe4, 0xbf, 0xe9, 0x1e, 0xfe, 0x4a, 0xc2, 0xf3, - 0x00, 0xe8, 0xbb, 0xf8, 0x92, 0x23, 0x1a, 0x01, 0xd3, 0x33, 0xd9, 0x98, 0x46, 0x3e, 0x00, 0x56, - 0x68, 0x4f, 0x5b, 0x80, 0xac, 0x61, 0xdb, 0x31, 0x64, 0x1b, 0x18, 0x87, 0x09, 0x0e, 0x23, 0xdd, - 0xac, 0x07, 0xab, 0xa1, 0xee, 0xaf, 0x86, 0x7a, 0xb0, 0xf0, 0x60, 0x35, 0xd4, 0x5f, 0x33, 0x7b, - 0x0c, 0x6c, 0x9b, 0x11, 0x4b, 0xfa, 0x3e, 0x02, 0x3a, 0xf2, 0x20, 0xc9, 0x74, 0x2a, 0x67, 0xa1, - 0x43, 0x36, 0x25, 0xc8, 0xe7, 0x21, 0x38, 0xa7, 0x41, 0x0e, 0x90, 0x48, 0x98, 0x0f, 0xf1, 0xb5, - 0xd1, 0x0c, 0x74, 0xbd, 0x97, 0x4c, 0x6f, 0x14, 0x95, 0x29, 0x7c, 0xd9, 0xe9, 0x7a, 0xc1, 0x78, - 0xeb, 0xe1, 0xc4, 0xc9, 0x8d, 0x64, 0x02, 0x5f, 0xf4, 0xdc, 0xb7, 0x98, 0xb3, 0xd5, 0xe1, 0x28, - 0x2e, 0x35, 0xc5, 0x5f, 0x52, 0xc3, 0xf8, 0x1d, 0xcb, 0xdb, 0xdb, 0xb4, 0xdd, 0x96, 0x69, 0x4f, - 0x54, 0x26, 0xd1, 0xf4, 0x17, 0x9a, 0x91, 0x16, 0xfa, 0x26, 0xfe, 0x72, 0x6c, 0x64, 0x08, 0xd5, - 0x1d, 0x7c, 0xd1, 0x09, 0x9a, 0x60, 0x36, 0xbe, 0x71, 0x4a, 0xa0, 0x82, 0x87, 0x21, 0x4c, 0xc2, - 0x96, 0xfe, 0x18, 0x01, 0x39, 0x7f, 0x3e, 0x64, 0x72, 0x32, 0x38, 0xa4, 0x82, 0x53, 0x52, 0xe2, - 0x7c, 0xe1, 0x94, 0x78, 0x0f, 0x01, 0xcb, 0x28, 0x84, 0x24, 0x96, 0x95, 0xa2, 0x2c, 0xcb, 0x4b, - 0x85, 0x45, 0x7c, 0x5d, 0x4c, 0x48, 0x83, 0x57, 0xa2, 0xb5, 0xa3, 0x26, 0xeb, 0x6e, 0x75, 0x44, - 0xcc, 0xae, 0xe2, 0xc7, 0x07, 0xfe, 0x7f, 0x48, 0x84, 0xe0, 0x0f, 0x3d, 0xc4, 0x37, 0x52, 0xac, - 0x80, 0xe6, 0xeb, 0xf8, 0xb2, 0x19, 0xed, 0x80, 0x29, 0xfd, 0x66, 0x36, 0x59, 0xc9, 0x17, 0x50, - 0x96, 0xfd, 0xd0, 0x2e, 0xe0, 0x6d, 0xd8, 0x76, 0x22, 0xde, 0xb2, 0x96, 0xf5, 0xef, 0x11, 0x50, - 0x8c, 0x0f, 0x94, 0x4e, 0xb1, 0x52, 0x06, 0xc5, 0xf2, 0xe6, 0x76, 0x1e, 0x7f, 0x55, 0xcc, 0xd2, - 0xdd, 0xc8, 0x0e, 0x1b, 0xa9, 0xcd, 0x8e, 0xd9, 0x1f, 0xd5, 0x66, 0xff, 0x37, 0xf5, 0xc2, 0x74, - 0x90, 0x4d, 0x80, 0xf4, 0x0e, 0x7e, 0x22, 0xba, 0x59, 0x43, 0x80, 0x67, 0xb2, 0x39, 0x47, 0x3d, - 0x01, 0x65, 0xc9, 0x0b, 0x65, 0x00, 0xb4, 0x61, 0xdb, 0x49, 0x40, 0xcb, 0x9a, 0xd3, 0xdf, 0xa0, - 0x30, 0x79, 0x34, 0xd9, 0x55, 0xce, 0xce, 0xae, 0xbc, 0xf9, 0xfc, 0x39, 0x0a, 0x67, 0x67, 0xbb, - 0xeb, 0xad, 0x8f, 0x4e, 0x45, 0xf9, 0xaa, 0x77, 0x59, 0x65, 0xee, 0x03, 0x14, 0x56, 0x01, 0x05, - 0x0e, 0xc4, 0xf3, 0x1e, 0xc7, 0x13, 0x76, 0xe4, 0x2f, 0x79, 0xa8, 0x29, 0x7b, 0x28, 0x2f, 0x98, - 0xf7, 0x31, 0x8d, 0x9d, 0x42, 0xd6, 0x8e, 0xd6, 0xe1, 0x04, 0x29, 0x22, 0xba, 0x88, 0x9f, 0x72, - 0x07, 0x56, 0xcf, 0x72, 0x44, 0x47, 0xa3, 0xd3, 0x19, 0xb0, 0xe1, 0x10, 0x22, 0x9b, 0xdc, 0x49, - 0xdf, 0x45, 0xf8, 0xeb, 0x99, 0xce, 0x21, 0x3e, 0x16, 0x1e, 0x77, 0xe2, 0xdd, 0x90, 0xe1, 0xf3, - 0xba, 0xe7, 0x84, 0x91, 0x21, 0x64, 0x5f, 0x92, 0x4f, 0x6a, 0x03, 0xdd, 0xe8, 0x29, 0x25, 0x4e, - 0xb7, 0xac, 0x95, 0xf6, 0x37, 0x11, 0x80, 0xb4, 0xe1, 0x4e, 0x0b, 0x40, 0xa5, 0xec, 0x00, 0x94, - 0x97, 0x38, 0x37, 0xc2, 0xaa, 0xba, 0xbd, 0xb1, 0xb3, 0xc1, 0xd8, 0x3a, 0xbf, 0x55, 0x88, 0x83, - 0x76, 0xa4, 0x82, 0xca, 0xdd, 0x61, 0x8d, 0x89, 0xb6, 0xeb, 0x55, 0xd0, 0xa8, 0x85, 0xa8, 0x31, - 0xd1, 0x36, 0x5a, 0x53, 0x47, 0x5d, 0x0b, 0x2e, 0x33, 0x02, 0x55, 0x64, 0xc3, 0x56, 0xfa, 0xc3, - 0xdd, 0x4c, 0xea, 0xd0, 0xdb, 0xb0, 0x25, 0x13, 0xb1, 0x9b, 0x49, 0x8d, 0x74, 0x03, 0xd7, 0xc4, - 0xc8, 0xaf, 0xc2, 0x4d, 0x6a, 0x3d, 0xb8, 0x48, 0xe5, 0xaa, 0x5a, 0xfe, 0xb9, 0xee, 0xe9, 0x54, - 0x47, 0x40, 0xe2, 0xfb, 0x78, 0xac, 0x2f, 0x77, 0x01, 0x8d, 0x67, 0xb3, 0x69, 0x28, 0xfe, 0x80, - 0x88, 0xea, 0x8b, 0xee, 0x01, 0x95, 0x86, 0x6d, 0xa7, 0x50, 0x29, 0x6b, 0xfd, 0x7c, 0x24, 0xc8, - 0x26, 0x0d, 0x95, 0x45, 0xb6, 0x52, 0x16, 0xd9, 0xf2, 0xd6, 0x8b, 0xab, 0x9e, 0x15, 0xef, 0xc0, - 0x8d, 0x36, 0xdf, 0xae, 0x35, 0x8d, 0xc7, 0xc4, 0x55, 0x58, 0xd4, 0xe0, 0xe0, 0xee, 0xa1, 0x36, - 0xd3, 0x1f, 0x85, 0x19, 0xa7, 0x0e, 0x08, 0xa1, 0xbb, 0x8f, 0x9f, 0x34, 0xa5, 0x1e, 0x98, 0xaa, - 0x59, 0x9d, 0xb3, 0x9b, 0xb0, 0x81, 0xc0, 0x29, 0x9e, 0x68, 0x4f, 0x3d, 0x37, 0xaa, 0x74, 0xcb, - 0xca, 0x91, 0x0f, 0x51, 0x98, 0x8e, 0x39, 0x78, 0x56, 0xca, 0xe1, 0x59, 0xe6, 0x46, 0x3c, 0x9a, - 0xae, 0x60, 0xba, 0x1b, 0x42, 0x2a, 0xc9, 0x97, 0x20, 0xe2, 0x38, 0x7b, 0x3e, 0x72, 0x9c, 0x8d, - 0x16, 0x8d, 0x98, 0xf3, 0x70, 0x1d, 0x0d, 0xe5, 0x2e, 0xbd, 0xa2, 0xa1, 0xf8, 0x13, 0xeb, 0x48, - 0xf1, 0x15, 0x2d, 0x1a, 0x29, 0xf4, 0x3e, 0x8b, 0xa2, 0x91, 0x8b, 0x6c, 0xa5, 0x2c, 0xb2, 0xe5, - 0x25, 0xc5, 0x16, 0xfe, 0x1a, 0xa7, 0xf2, 0x8a, 0x35, 0xf4, 0xc2, 0x51, 0x8f, 0x64, 0x09, 0x47, - 0x6f, 0xe3, 0xf8, 0x29, 0x82, 0xa3, 0x4f, 0x8a, 0xaf, 0xcf, 0x25, 0x32, 0xf4, 0x0d, 0xb5, 0x0a, - 0xde, 0xed, 0x16, 0x20, 0x93, 0x98, 0xe4, 0xb1, 0x7a, 0x17, 0xba, 0x56, 0xeb, 0x80, 0xe8, 0xc9, - 0x53, 0xef, 0x84, 0x8d, 0x5c, 0x07, 0x44, 0x6b, 0xbc, 0xde, 0xa9, 0xc4, 0x3e, 0xbb, 0x7a, 0xa7, - 0xc5, 0xb3, 0x52, 0x0e, 0xcf, 0xf2, 0x52, 0x7b, 0x33, 0x2c, 0x49, 0xa2, 0x98, 0x16, 0xca, 0x05, - 0xfa, 0x33, 0x84, 0x27, 0xd3, 0x3d, 0x41, 0x48, 0xde, 0xc4, 0x57, 0x98, 0xd2, 0x07, 0x73, 0x50, - 0xcf, 0x0e, 0x8a, 0xea, 0x11, 0xc2, 0x12, 0xf3, 0x46, 0xad, 0xb0, 0xea, 0xa4, 0xf1, 0x29, 0x2b, - 0x05, 0xfe, 0x24, 0x18, 0x27, 0x8e, 0x95, 0xc9, 0xb8, 0x52, 0x1e, 0xe3, 0xd2, 0x52, 0x61, 0xe1, - 0x7f, 0xcf, 0xe0, 0xc7, 0x39, 0x1f, 0xf2, 0x4b, 0x84, 0x2f, 0x04, 0xe2, 0x3a, 0x99, 0xcb, 0x46, - 0x19, 0xd7, 0xf6, 0xab, 0xf3, 0x39, 0x2c, 0x02, 0x14, 0x74, 0xf6, 0x27, 0x7f, 0xfe, 0xf4, 0x17, - 0xe7, 0x6f, 0x92, 0x29, 0x43, 0x32, 0x35, 0x02, 0x53, 0x43, 0x7e, 0xd1, 0x43, 0x7e, 0x85, 0xf0, - 0xa5, 0xd1, 0x75, 0x8b, 0x2c, 0x69, 0x0c, 0x97, 0xf0, 0x2e, 0xa0, 0xfa, 0x42, 0x6e, 0x3b, 0x00, - 0xfb, 0x02, 0x07, 0x3b, 0x4f, 0x8c, 0x6c, 0xb0, 0xe1, 0xbb, 0x20, 0xe3, 0xb8, 0xed, 0x76, 0xd8, - 0x09, 0x79, 0x1f, 0xf1, 0xcb, 0x16, 0x94, 0x68, 0xdb, 0xd6, 0x82, 0x9e, 0xf0, 0xb2, 0x40, 0x0b, - 0x7a, 0x92, 0xfe, 0x4f, 0xe7, 0x38, 0xf4, 0x19, 0x32, 0xad, 0x0b, 0x9d, 0xfc, 0x0e, 0xe1, 0x8b, - 0xa0, 0x80, 0x90, 0x45, 0xcd, 0x88, 0x49, 0x32, 0x77, 0xf5, 0xf9, 0x9c, 0x56, 0x00, 0xf5, 0x65, - 0x0e, 0x75, 0x8d, 0xac, 0x9e, 0x0e, 0xd5, 0xbf, 0x27, 0x18, 0xc7, 0x52, 0x35, 0x3a, 0x31, 0x8e, - 0xe1, 0x1d, 0xc0, 0x09, 0x79, 0x0f, 0x61, 0x0c, 0xde, 0xfd, 0xa0, 0x2f, 0x6a, 0x06, 0x2f, 0x3f, - 0x8b, 0xb8, 0xbe, 0x4e, 0xeb, 0x9c, 0xc5, 0x34, 0xb9, 0xa9, 0xc7, 0x82, 0x3c, 0x40, 0xf8, 0xb2, - 0xa4, 0xc9, 0x92, 0xdb, 0x7a, 0xe1, 0x4b, 0x52, 0x9f, 0xab, 0xdf, 0x2a, 0x64, 0x0b, 0xd0, 0x57, - 0x38, 0xf4, 0x17, 0xc9, 0x52, 0x36, 0x74, 0xf5, 0x65, 0xaa, 0x71, 0xcc, 0x35, 0xf9, 0x13, 0xf2, - 0x07, 0x84, 0xaf, 0x48, 0x9e, 0xfd, 0xe0, 0xdf, 0xd6, 0x0b, 0x63, 0x61, 0x36, 0x69, 0xf2, 0x38, - 0x5d, 0xe2, 0x6c, 0xe6, 0x48, 0x3d, 0x1f, 0x1b, 0x3f, 0xff, 0x9f, 0x88, 0x4a, 0xaa, 0xe4, 0x96, - 0x5e, 0x4c, 0x13, 0x84, 0xe3, 0xea, 0xed, 0x22, 0xa6, 0x80, 0xff, 0x16, 0xc7, 0xff, 0x1c, 0x99, - 0xcf, 0xc6, 0x1f, 0x55, 0x7a, 0x8d, 0x63, 0xff, 0x3c, 0x76, 0x42, 0x7e, 0x8d, 0xf0, 0x58, 0xd4, - 0xa7, 0x3f, 0x0f, 0xb7, 0xf4, 0x62, 0x59, 0x94, 0x45, 0x8a, 0xa2, 0x4d, 0x17, 0x38, 0x8b, 0x59, - 0x32, 0xa3, 0xcf, 0x82, 0x7c, 0x8c, 0xf0, 0x65, 0x49, 0xcf, 0xd5, 0x5d, 0x12, 0x49, 0x9a, 0xb4, - 0xee, 0x92, 0x48, 0x14, 0x90, 0xe9, 0x4b, 0x1c, 0xfe, 0x0a, 0x59, 0x3e, 0x7d, 0x35, 0x87, 0xdf, - 0x08, 0xa8, 0x95, 0x89, 0xfc, 0x17, 0xe1, 0xf1, 0x04, 0xb5, 0x90, 0xac, 0xe6, 0xdc, 0x90, 0x62, - 0x7a, 0x69, 0xb5, 0x71, 0x06, 0x0f, 0x40, 0x71, 0x87, 0x53, 0xdc, 0x26, 0xaf, 0xe8, 0xee, 0x10, - 0xd1, 0x0f, 0x1d, 0x8c, 0xe3, 0x44, 0x01, 0xfa, 0x84, 0xfc, 0x03, 0xe1, 0x6b, 0x09, 0xa3, 0xfa, - 0x99, 0xb8, 0x9a, 0x73, 0x2f, 0x2b, 0xc6, 0x3a, 0x5b, 0xf8, 0xa5, 0xcb, 0x9c, 0xf5, 0x12, 0x59, - 0x2c, 0xc2, 0x9a, 0x7c, 0x80, 0x64, 0x11, 0x55, 0xb7, 0x46, 0x24, 0xe8, 0xb5, 0xba, 0x35, 0x22, - 0x49, 0xcb, 0xa5, 0x8b, 0x9c, 0x45, 0x9d, 0xcc, 0x9e, 0xce, 0x22, 0xfc, 0xfc, 0x84, 0xfc, 0x16, - 0x29, 0x5a, 0x2b, 0xc9, 0x85, 0x41, 0x56, 0x76, 0xb5, 0xd7, 0x57, 0x92, 0xea, 0x4b, 0x9f, 0xe7, - 0x04, 0x0c, 0xf2, 0xac, 0x1e, 0x01, 0xf8, 0x42, 0x86, 0xfc, 0x05, 0xe1, 0x31, 0x45, 0x46, 0x24, - 0xcb, 0x7a, 0x38, 0x92, 0x85, 0xd3, 0xea, 0xb7, 0x0b, 0x5a, 0x03, 0x8f, 0x0d, 0xce, 0x63, 0x95, - 0xac, 0x64, 0xf3, 0x50, 0x3f, 0xe5, 0x89, 0x55, 0x8a, 0x8f, 0x10, 0x26, 0xca, 0x18, 0xfe, 0x92, - 0x59, 0xd6, 0x4b, 0xf8, 0x33, 0x70, 0x4b, 0xd7, 0x79, 0x75, 0x37, 0x52, 0x95, 0x1b, 0xf9, 0x14, - 0xe1, 0x27, 0x65, 0x25, 0x8f, 0xe4, 0x3a, 0x9e, 0x28, 0xba, 0x65, 0x75, 0xb9, 0x98, 0x31, 0xb0, - 0x78, 0x9d, 0xb3, 0xb8, 0x47, 0xee, 0x6a, 0x1d, 0x07, 0xc4, 0x95, 0x2b, 0x7e, 0xc8, 0x54, 0xc4, - 0xde, 0x13, 0xf2, 0x21, 0xc2, 0x5f, 0x92, 0xc7, 0xf4, 0x67, 0x2c, 0xd7, 0xd1, 0xa5, 0x08, 0xd3, - 0x54, 0xd1, 0x55, 0x77, 0x4d, 0x29, 0x4c, 0xc9, 0x3f, 0x11, 0x1e, 0x53, 0xb4, 0x24, 0xdd, 0x35, - 0x95, 0xac, 0x2b, 0xea, 0xae, 0xa9, 0x14, 0xa9, 0x90, 0xbe, 0xca, 0x79, 0x6c, 0x92, 0x3b, 0xd9, - 0x3c, 0xd4, 0xef, 0xdb, 0xe2, 0x53, 0x16, 0x1c, 0x8a, 0xfc, 0xa5, 0xa5, 0x0c, 0x95, 0x63, 0x69, - 0x9d, 0x81, 0x62, 0xba, 0x1a, 0xaa, 0xbb, 0xb4, 0x54, 0x8a, 0xe4, 0x3f, 0x08, 0x3f, 0x95, 0xa8, - 0x26, 0x92, 0xef, 0x68, 0x00, 0xca, 0xd2, 0x34, 0xab, 0xab, 0xc5, 0x1d, 0x00, 0xa9, 0x6d, 0x4e, - 0xea, 0x65, 0xb2, 0x91, 0x4d, 0xca, 0xb6, 0x86, 0x5e, 0x48, 0xc9, 0xdf, 0x5e, 0xc5, 0xdd, 0x59, - 0xa9, 0x89, 0x7f, 0x1f, 0xd5, 0x91, 0x91, 0x00, 0x92, 0xab, 0x8e, 0x28, 0x62, 0x50, 0xbe, 0x3a, - 0xa2, 0xaa, 0x3b, 0xba, 0x59, 0xa9, 0x7e, 0x55, 0x99, 0x96, 0x95, 0x7f, 0x1c, 0x55, 0x0f, 0x31, - 0x52, 0xee, 0xea, 0x51, 0x84, 0x5f, 0xaa, 0x84, 0x99, 0xf3, 0xda, 0x34, 0xe2, 0xe7, 0x1f, 0xf8, - 0xae, 0xa8, 0x02, 0x16, 0xd1, 0xac, 0x00, 0x29, 0xb2, 0x5d, 0x75, 0xa5, 0xa8, 0x79, 0x3e, 0x45, - 0x21, 0xfe, 0x85, 0x6b, 0x2c, 0x07, 0x3f, 0x46, 0x78, 0x5c, 0x1d, 0xc6, 0x9f, 0x28, 0xcd, 0xf5, - 0x7f, 0x16, 0x82, 0x19, 0x52, 0x23, 0x7d, 0x91, 0x13, 0x5c, 0x20, 0x73, 0x79, 0x09, 0xae, 0x6d, - 0x3d, 0x78, 0x58, 0x43, 0x9f, 0x3c, 0xac, 0xa1, 0x7f, 0x3f, 0xac, 0xa1, 0x77, 0x1f, 0xd5, 0xce, - 0x7d, 0xf2, 0xa8, 0x76, 0xee, 0xaf, 0x8f, 0x6a, 0xe7, 0xee, 0x1b, 0x3d, 0xcb, 0xdb, 0x3b, 0x68, - 0xd5, 0xdb, 0x6e, 0x3f, 0xd9, 0xeb, 0xe1, 0xc8, 0xaf, 0x77, 0xb4, 0xcf, 0x86, 0xad, 0x0b, 0xfc, - 0xb3, 0xdf, 0xe7, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xd4, 0xf2, 0x9d, 0x47, 0x31, 0x2e, 0x00, - 0x00, +func init() { proto.RegisterFile("nftmngr/latest/query.proto", fileDescriptor_d80b184aa4cfb14e) } + +var fileDescriptor_d80b184aa4cfb14e = []byte{ + // 2078 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5a, 0xcd, 0x8f, 0x1c, 0x47, + 0x15, 0x77, 0x79, 0x12, 0x1b, 0x17, 0x71, 0xd6, 0x94, 0x9d, 0x60, 0x26, 0xf6, 0xd8, 0xa9, 0x38, + 0xf6, 0xca, 0x71, 0xa6, 0xbd, 0xce, 0xc6, 0x89, 0xcd, 0x62, 0xf6, 0x23, 0xde, 0x8d, 0x45, 0xb2, + 0x8e, 0x07, 0x4b, 0x51, 0x2c, 0xa1, 0x4d, 0xcf, 0x4c, 0xcd, 0x6c, 0x2b, 0x3d, 0xdd, 0x9b, 0xe9, + 0x5a, 0xb2, 0xcb, 0xb2, 0x12, 0x02, 0x8e, 0x1c, 0x22, 0x71, 0xe4, 0x2f, 0xc8, 0x31, 0x07, 0x4e, + 0x01, 0x01, 0x42, 0x41, 0xce, 0x81, 0x28, 0x12, 0x12, 0xe2, 0x43, 0x20, 0x64, 0xe7, 0xc4, 0x89, + 0x1b, 0x57, 0xd4, 0xd5, 0xaf, 0xa6, 0xbb, 0xaa, 0x3f, 0xb6, 0xba, 0xb7, 0xcd, 0x6d, 0xa6, 0xab, + 0xde, 0xab, 0xdf, 0xef, 0xd5, 0xab, 0x57, 0x55, 0xbf, 0x6e, 0xdc, 0xf4, 0x06, 0x7c, 0xe4, 0x0d, + 0xc7, 0x96, 0x6b, 0x73, 0x16, 0x70, 0xeb, 0xfd, 0x4d, 0x36, 0xde, 0x6e, 0x6f, 0x8c, 0x7d, 0xee, + 0x93, 0x53, 0x7c, 0x9d, 0x05, 0xce, 0x96, 0xc7, 0xf8, 0x07, 0xfe, 0xf8, 0xbd, 0x76, 0xf8, 0x73, + 0xc0, 0xdb, 0x60, 0xd0, 0x3c, 0x31, 0xf4, 0x87, 0xbe, 0xe8, 0x68, 0x85, 0xbf, 0x22, 0x9b, 0xe6, + 0xa9, 0xa1, 0xef, 0x0f, 0x5d, 0x66, 0xd9, 0x1b, 0x8e, 0x65, 0x7b, 0x9e, 0xcf, 0x6d, 0xee, 0xf8, + 0x5e, 0x00, 0xad, 0x17, 0x7b, 0x7e, 0x30, 0xf2, 0x03, 0xab, 0x6b, 0x07, 0x2c, 0x1a, 0xca, 0xfa, + 0xfe, 0x4c, 0x97, 0x71, 0x7b, 0xc6, 0xda, 0xb0, 0x87, 0x8e, 0x27, 0x3a, 0x43, 0xdf, 0x67, 0x34, + 0x64, 0x1b, 0xf6, 0xd8, 0x1e, 0x49, 0x47, 0x67, 0xb4, 0x46, 0x6f, 0xc0, 0xd7, 0x82, 0xde, 0x3a, + 0x1b, 0xd9, 0xd0, 0xe1, 0x79, 0xad, 0x83, 0xdd, 0x0b, 0x5d, 0xaf, 0x75, 0xb7, 0xd7, 0xc6, 0x6c, + 0xb0, 0xe6, 0xf4, 0xa1, 0xdb, 0xb3, 0x5a, 0x37, 0x7f, 0x3c, 0xb4, 0x3d, 0xe7, 0x07, 0x49, 0x1c, + 0xcf, 0x65, 0x0c, 0xd5, 0xf3, 0x5d, 0x97, 0xf5, 0x12, 0x9d, 0x5e, 0xc8, 0xc5, 0x13, 0x0e, 0xd9, + 0xf3, 0x3d, 0x3e, 0xb6, 0x7b, 0xbc, 0xc0, 0xe3, 0x80, 0xb1, 0xb0, 0xdb, 0xc0, 0x19, 0x42, 0xa7, + 0x73, 0x39, 0x9d, 0xba, 0xb6, 0x6b, 0x7b, 0x3d, 0x96, 0x43, 0x73, 0xc4, 0xb8, 0xdd, 0xb7, 0xb9, + 0xbd, 0xd6, 0x1b, 0x33, 0x9b, 0xfb, 0xe3, 0x1c, 0x67, 0x10, 0x0d, 0xb6, 0xc5, 0x7a, 0x9b, 0x71, + 0x2f, 0xdd, 0x19, 0x10, 0xb0, 0x39, 0x1f, 0x3b, 0xdd, 0x4d, 0xce, 0x8a, 0x43, 0xeb, 0x0f, 0xd4, + 0x19, 0xb8, 0xa0, 0x75, 0x93, 0x83, 0xa5, 0x3a, 0x9e, 0xce, 0x60, 0x1a, 0x72, 0x88, 0x9a, 0xe9, + 0x09, 0x4c, 0xee, 0x84, 0x99, 0xf2, 0x96, 0x98, 0xff, 0x0e, 0x7b, 0x7f, 0x93, 0x05, 0x9c, 0xbe, + 0x83, 0x8f, 0x2b, 0x4f, 0x83, 0x0d, 0xdf, 0x0b, 0x18, 0x59, 0xc4, 0x87, 0xa2, 0x3c, 0x39, 0x89, + 0xce, 0xa2, 0xe9, 0xaf, 0x5e, 0x39, 0xd7, 0x2e, 0xca, 0xe1, 0x76, 0x64, 0xbd, 0xf8, 0xd8, 0xfd, + 0x7f, 0x9e, 0x39, 0xd0, 0x01, 0x4b, 0xda, 0xc6, 0x27, 0x85, 0xeb, 0x15, 0xc6, 0x57, 0x97, 0xef, + 0x7e, 0x57, 0x40, 0x85, 0x61, 0x09, 0xc1, 0x8f, 0xf5, 0xfc, 0x3e, 0x13, 0xde, 0x8f, 0x74, 0xc4, + 0x6f, 0xba, 0x8e, 0xbf, 0x91, 0xd1, 0x1f, 0x00, 0x7d, 0x07, 0x1f, 0xf1, 0xe4, 0x43, 0xc0, 0x74, + 0xa1, 0x18, 0xd3, 0xc4, 0x07, 0xc0, 0x8a, 0xed, 0x69, 0x17, 0x90, 0x2d, 0xb8, 0x6e, 0x0a, 0xd9, + 0x32, 0xc6, 0xf1, 0x12, 0x82, 0x91, 0xce, 0xb7, 0xa3, 0xf5, 0xd6, 0x0e, 0xd7, 0x5b, 0x3b, 0x5a, + 0xda, 0xb0, 0xde, 0xda, 0x6f, 0xd9, 0x43, 0x06, 0xb6, 0x9d, 0x84, 0x25, 0xfd, 0x18, 0x01, 0x1d, + 0x75, 0x90, 0x6c, 0x3a, 0x8d, 0xfd, 0xd0, 0x21, 0x2b, 0x0a, 0xe4, 0x83, 0x10, 0x9c, 0xbd, 0x20, + 0x47, 0x48, 0x14, 0xcc, 0x5b, 0xf8, 0xe9, 0xc9, 0x0c, 0x0c, 0xf8, 0x6b, 0x36, 0x9f, 0x44, 0xe5, + 0x1c, 0x3e, 0xea, 0x0d, 0x78, 0x34, 0xde, 0x52, 0x3c, 0x71, 0xea, 0x43, 0x72, 0x12, 0x1f, 0xe6, + 0xfe, 0x7b, 0xcc, 0xbb, 0xd5, 0x17, 0x28, 0x8e, 0x74, 0xe4, 0x5f, 0xd2, 0xc2, 0xf8, 0x03, 0x87, + 0xaf, 0xaf, 0xb8, 0x7e, 0xd7, 0x76, 0x4f, 0x36, 0xce, 0xa2, 0xe9, 0xaf, 0x74, 0x12, 0x4f, 0xe8, + 0xbb, 0xf8, 0xeb, 0xa9, 0x91, 0x21, 0x54, 0x37, 0xf1, 0x61, 0x2f, 0x7a, 0x04, 0xb3, 0xf1, 0xfc, + 0x1e, 0x81, 0x8a, 0x3a, 0x43, 0x98, 0xa4, 0x2d, 0xfd, 0x11, 0x02, 0x72, 0xe1, 0x7c, 0xa8, 0xe4, + 0x54, 0x70, 0x48, 0x07, 0xa7, 0xa5, 0xc4, 0xc1, 0xca, 0x29, 0xf1, 0x11, 0x02, 0x96, 0x49, 0x08, + 0x59, 0x2c, 0x1b, 0x55, 0x59, 0xd6, 0x97, 0x0a, 0xb3, 0xf8, 0x94, 0x9c, 0x90, 0x05, 0x51, 0x97, + 0x16, 0xb7, 0x3b, 0x6c, 0x70, 0xab, 0x2f, 0x63, 0x76, 0x02, 0x3f, 0x3e, 0x0e, 0xff, 0x43, 0x22, + 0x44, 0x7f, 0xe8, 0x16, 0x3e, 0x9d, 0x63, 0x05, 0x34, 0xdf, 0xc6, 0x47, 0xed, 0x64, 0x03, 0x4c, + 0xe9, 0x0b, 0xc5, 0x64, 0x15, 0x5f, 0x40, 0x59, 0xf5, 0x43, 0x07, 0x80, 0x77, 0xc1, 0x75, 0x33, + 0xf1, 0xd6, 0xb5, 0xac, 0x7f, 0x87, 0x80, 0x62, 0x7a, 0xa0, 0x7c, 0x8a, 0x8d, 0x3a, 0x28, 0xd6, + 0x37, 0xb7, 0x33, 0xf8, 0x19, 0x39, 0x4b, 0xb7, 0x13, 0xfb, 0x74, 0xa2, 0x36, 0x7b, 0xf6, 0x68, + 0x52, 0x9b, 0xc3, 0xdf, 0x94, 0xc7, 0xe9, 0xa0, 0x9a, 0x00, 0xe9, 0xbb, 0xf8, 0x89, 0xe4, 0x96, + 0x0f, 0x01, 0xbe, 0x58, 0xcc, 0x39, 0xe9, 0x09, 0x28, 0x2b, 0x5e, 0x28, 0x03, 0xa0, 0x0b, 0xae, + 0x9b, 0x05, 0xb4, 0xae, 0x39, 0xfd, 0x35, 0x8a, 0x93, 0xc7, 0x90, 0x5d, 0x63, 0xff, 0xec, 0xea, + 0x9b, 0xcf, 0x9f, 0xa1, 0x78, 0x76, 0x56, 0x07, 0x7c, 0x69, 0x72, 0xa8, 0x2a, 0x57, 0xbd, 0xeb, + 0x2a, 0x73, 0x9f, 0xa0, 0xb8, 0x0a, 0x68, 0x70, 0x20, 0x9e, 0x77, 0x04, 0x9e, 0xb8, 0xa1, 0x7c, + 0xc9, 0x43, 0x1d, 0xd5, 0x43, 0x7d, 0xc1, 0xbc, 0x87, 0x69, 0xea, 0x14, 0xb2, 0xb8, 0xbd, 0x04, + 0x27, 0x4f, 0x19, 0xd1, 0x59, 0xfc, 0x94, 0x3f, 0x76, 0x86, 0x8e, 0x27, 0x1b, 0x16, 0xfa, 0xfd, + 0x31, 0x0b, 0x02, 0x88, 0x6c, 0x76, 0x23, 0xfd, 0x10, 0xe1, 0xe7, 0x0a, 0x9d, 0x43, 0x7c, 0x1c, + 0x7c, 0xdc, 0x4b, 0x37, 0x43, 0x86, 0xcf, 0x98, 0x9e, 0x13, 0x26, 0x86, 0x90, 0x7d, 0x59, 0x3e, + 0xa9, 0x0b, 0x74, 0x93, 0xa7, 0x94, 0x34, 0xdd, 0xba, 0x56, 0xda, 0x5f, 0x65, 0x00, 0xf2, 0x86, + 0xdb, 0x2b, 0x00, 0x8d, 0xba, 0x03, 0x50, 0x5f, 0xe2, 0x9c, 0x8e, 0xab, 0xea, 0xea, 0xf2, 0xdd, + 0x65, 0xc6, 0x96, 0xc4, 0x35, 0x44, 0x1e, 0xb4, 0x13, 0x15, 0x54, 0x6d, 0x8e, 0x6b, 0x4c, 0xf2, + 0xb9, 0x59, 0x05, 0x4d, 0x5a, 0xc8, 0x1a, 0x93, 0x7c, 0x46, 0x5b, 0xfa, 0xa8, 0x8b, 0xd1, 0xb5, + 0x47, 0xa2, 0x4a, 0x6c, 0xd8, 0x5a, 0x7b, 0xbc, 0x9b, 0x29, 0x0d, 0x66, 0x1b, 0xb6, 0x62, 0x22, + 0x77, 0x33, 0xe5, 0x21, 0x5d, 0xc6, 0x2d, 0x39, 0xf2, 0x9b, 0x70, 0xd9, 0x5a, 0x8a, 0xee, 0x5a, + 0xa5, 0xaa, 0x56, 0x78, 0xae, 0x3b, 0x93, 0xeb, 0x08, 0x48, 0x7c, 0x0f, 0x4f, 0x8d, 0xd4, 0x26, + 0xa0, 0xf1, 0x62, 0x31, 0x0d, 0xcd, 0x1f, 0x10, 0xd1, 0x7d, 0xd1, 0x75, 0xa0, 0xb2, 0xe0, 0xba, + 0x39, 0x54, 0xea, 0x5a, 0x3f, 0x9f, 0x49, 0xb2, 0x59, 0x43, 0x15, 0x91, 0x6d, 0xd4, 0x45, 0xb6, + 0xbe, 0xf5, 0xe2, 0xeb, 0x67, 0xc5, 0x9b, 0x70, 0xb1, 0x2d, 0xb7, 0x6b, 0x4d, 0xe3, 0x29, 0x79, + 0x23, 0x96, 0x35, 0x38, 0xba, 0x7b, 0xe8, 0x8f, 0xe9, 0x0f, 0xe3, 0x8c, 0xd3, 0x07, 0x84, 0xd0, + 0xdd, 0xc3, 0x4f, 0xda, 0x4a, 0x0b, 0x4c, 0xd5, 0x25, 0x93, 0xb3, 0x9b, 0xb4, 0x81, 0xc0, 0x69, + 0x9e, 0xe8, 0x50, 0x3f, 0x37, 0xea, 0x74, 0xeb, 0xca, 0x91, 0x4f, 0x51, 0x9c, 0x8e, 0x25, 0x78, + 0x36, 0xea, 0xe1, 0x59, 0xe7, 0x46, 0x3c, 0x99, 0xae, 0x68, 0xba, 0x17, 0xa4, 0x7e, 0x52, 0x2e, + 0x41, 0xe4, 0x71, 0xf6, 0x60, 0xe2, 0x38, 0x9b, 0x2c, 0x1a, 0x29, 0xe7, 0xf1, 0x3a, 0x0a, 0xd4, + 0x26, 0xb3, 0xa2, 0xa1, 0xf9, 0x93, 0xeb, 0x48, 0xf3, 0x95, 0x2c, 0x1a, 0x39, 0xf4, 0x1e, 0x45, + 0xd1, 0x28, 0x45, 0xb6, 0x51, 0x17, 0xd9, 0xfa, 0x92, 0xe2, 0x16, 0x7e, 0x56, 0x50, 0x79, 0xc3, + 0x09, 0x78, 0x3c, 0xea, 0xb6, 0x2a, 0xe1, 0x98, 0x6d, 0x1c, 0x3f, 0x41, 0x70, 0xf4, 0xc9, 0xf1, + 0xf5, 0x7f, 0x89, 0x0c, 0x7d, 0x47, 0xaf, 0x82, 0xb7, 0x07, 0x15, 0xc8, 0x64, 0x26, 0x79, 0xaa, + 0xde, 0xc5, 0xae, 0xf5, 0x3a, 0x20, 0x5b, 0xca, 0xd4, 0x3b, 0x69, 0xa3, 0xd6, 0x01, 0xf9, 0x34, + 0x5d, 0xef, 0x74, 0x62, 0x8f, 0xae, 0xde, 0x19, 0xf1, 0x6c, 0xd4, 0xc3, 0xb3, 0xbe, 0xd4, 0x5e, + 0x89, 0x4b, 0x92, 0x2c, 0xa6, 0x95, 0x72, 0x81, 0xfe, 0x14, 0xe1, 0xb3, 0xf9, 0x9e, 0x20, 0x24, + 0xef, 0xe2, 0x63, 0x4c, 0x6b, 0x83, 0x39, 0x68, 0x17, 0x07, 0x45, 0xf7, 0x08, 0x61, 0x49, 0x79, + 0xa3, 0x4e, 0x5c, 0x75, 0xf2, 0xf8, 0xd4, 0x95, 0x02, 0x7f, 0x94, 0x8c, 0x33, 0xc7, 0x2a, 0x64, + 0xdc, 0xa8, 0x8f, 0x71, 0x6d, 0xa9, 0x70, 0xe5, 0xbf, 0x17, 0xf0, 0xe3, 0x82, 0x0f, 0xf9, 0x05, + 0xc2, 0x87, 0x22, 0x71, 0x9d, 0x5c, 0x2e, 0x46, 0x99, 0xd6, 0xf6, 0x9b, 0x33, 0x25, 0x2c, 0x22, + 0x14, 0xf4, 0xd2, 0x8f, 0xff, 0xf4, 0xe5, 0xcf, 0x0f, 0x9e, 0x27, 0xe7, 0x2c, 0xc5, 0xd4, 0x8a, + 0x4c, 0x2d, 0xf9, 0x86, 0x21, 0x52, 0xf8, 0xc9, 0x2f, 0x11, 0x3e, 0x32, 0xb9, 0x6e, 0x91, 0xab, + 0x06, 0xc3, 0x65, 0xbc, 0x0b, 0x68, 0xbe, 0x52, 0xda, 0x0e, 0xc0, 0xbe, 0x22, 0xc0, 0xce, 0x10, + 0xab, 0x18, 0x6c, 0xfc, 0x0e, 0xc9, 0xda, 0xe9, 0xf9, 0x7d, 0xb6, 0x4b, 0x3e, 0x46, 0xe2, 0xb2, + 0x05, 0x25, 0xda, 0x75, 0x8d, 0xa0, 0x67, 0xbc, 0x2c, 0x30, 0x82, 0x9e, 0xa5, 0xff, 0xd3, 0xcb, + 0x02, 0xfa, 0x45, 0x32, 0x6d, 0x0a, 0x9d, 0xfc, 0x16, 0xe1, 0xc3, 0xa0, 0x80, 0x90, 0x59, 0xc3, + 0x88, 0x29, 0x32, 0x77, 0xf3, 0xe5, 0x92, 0x56, 0x00, 0xf5, 0x75, 0x01, 0x75, 0x91, 0xcc, 0xef, + 0x0d, 0x35, 0xbc, 0x27, 0x58, 0x3b, 0x4a, 0x35, 0xda, 0xb5, 0x76, 0xe0, 0x1d, 0xc0, 0x2e, 0xf9, + 0x08, 0x61, 0x0c, 0xde, 0xc3, 0xa0, 0xcf, 0x1a, 0x06, 0xaf, 0x3c, 0x8b, 0xb4, 0xbe, 0x4e, 0xdb, + 0x82, 0xc5, 0x34, 0x39, 0x6f, 0xc6, 0x82, 0xdc, 0x47, 0xf8, 0xa8, 0xa2, 0xc9, 0x92, 0xeb, 0x66, + 0xe1, 0xcb, 0x52, 0x9f, 0x9b, 0xdf, 0xac, 0x64, 0x0b, 0xd0, 0x6f, 0x08, 0xe8, 0xaf, 0x92, 0xab, + 0xc5, 0xd0, 0xf5, 0x37, 0xb3, 0xd6, 0x8e, 0xd0, 0xe4, 0x77, 0xc9, 0xef, 0x11, 0x3e, 0xa6, 0x78, + 0x0e, 0x83, 0x7f, 0xdd, 0x2c, 0x8c, 0x95, 0xd9, 0xe4, 0xc9, 0xe3, 0xf4, 0xaa, 0x60, 0x73, 0x99, + 0xb4, 0xcb, 0xb1, 0x09, 0xf3, 0xff, 0x89, 0xa4, 0xa4, 0x4a, 0xae, 0x99, 0xc5, 0x34, 0x43, 0x38, + 0x6e, 0x5e, 0xaf, 0x62, 0x0a, 0xf8, 0xaf, 0x09, 0xfc, 0x2f, 0x91, 0x99, 0x62, 0xfc, 0x49, 0xa5, + 0xd7, 0xda, 0x09, 0xcf, 0x63, 0xbb, 0xe4, 0x57, 0x08, 0x4f, 0x25, 0x7d, 0x86, 0xf3, 0x70, 0xcd, + 0x2c, 0x96, 0x55, 0x59, 0xe4, 0x28, 0xda, 0xf4, 0x8a, 0x60, 0x71, 0x89, 0x5c, 0x34, 0x67, 0x41, + 0x3e, 0x47, 0xf8, 0xa8, 0xa2, 0xe7, 0x9a, 0x2e, 0x89, 0x2c, 0x4d, 0xda, 0x74, 0x49, 0x64, 0x0a, + 0xc8, 0xf4, 0x35, 0x01, 0xff, 0x06, 0x99, 0xdb, 0x7b, 0x35, 0xc7, 0x9f, 0x18, 0xe8, 0x95, 0x89, + 0xfc, 0x07, 0xe1, 0xe3, 0x19, 0x6a, 0x21, 0x99, 0x2f, 0xb9, 0x21, 0xa5, 0xf4, 0xd2, 0xe6, 0xc2, + 0x3e, 0x3c, 0x00, 0xc5, 0xbb, 0x82, 0xe2, 0x2a, 0x79, 0xc3, 0x74, 0x87, 0x48, 0x7e, 0x20, 0x61, + 0xed, 0x64, 0x0a, 0xd0, 0xbb, 0xe4, 0xef, 0x08, 0x3f, 0x9d, 0x31, 0x6a, 0x98, 0x89, 0xf3, 0x25, + 0xf7, 0xb2, 0x6a, 0xac, 0x8b, 0x85, 0x5f, 0x3a, 0x27, 0x58, 0x5f, 0x25, 0xb3, 0x55, 0x58, 0x93, + 0x4f, 0x90, 0x2a, 0xa2, 0x9a, 0xd6, 0x88, 0x0c, 0xbd, 0xd6, 0xb4, 0x46, 0x64, 0x69, 0xb9, 0x74, + 0x56, 0xb0, 0x68, 0x93, 0x4b, 0x7b, 0xb3, 0x88, 0xbf, 0x57, 0x21, 0xbf, 0x41, 0x9a, 0xd6, 0x4a, + 0x4a, 0x61, 0x50, 0x95, 0x5d, 0xe3, 0xf5, 0x95, 0xa5, 0xfa, 0xd2, 0x97, 0x05, 0x01, 0x8b, 0xbc, + 0x68, 0x46, 0x00, 0xbe, 0xa5, 0x21, 0x7f, 0x46, 0x78, 0x4a, 0x93, 0x11, 0xc9, 0x9c, 0x19, 0x8e, + 0x6c, 0xe1, 0xb4, 0xf9, 0xad, 0x8a, 0xd6, 0xc0, 0x63, 0x59, 0xf0, 0x98, 0x27, 0x37, 0x8a, 0x79, + 0xe8, 0x5f, 0xfb, 0xa4, 0x2a, 0xc5, 0x67, 0x08, 0x13, 0x6d, 0x8c, 0x70, 0xc9, 0xcc, 0x99, 0x25, + 0xfc, 0x3e, 0xb8, 0xe5, 0xeb, 0xbc, 0xa6, 0x1b, 0xa9, 0xce, 0x8d, 0x7c, 0x89, 0xf0, 0x93, 0xaa, + 0x92, 0x47, 0x4a, 0x1d, 0x4f, 0x34, 0xdd, 0xb2, 0x39, 0x57, 0xcd, 0x18, 0x58, 0xbc, 0x2d, 0x58, + 0xdc, 0x21, 0xb7, 0x8d, 0x8e, 0x03, 0xf2, 0xca, 0x95, 0x3e, 0x64, 0x6a, 0x62, 0xef, 0x2e, 0xf9, + 0x14, 0xe1, 0xaf, 0xa9, 0x63, 0x86, 0x33, 0x56, 0xea, 0xe8, 0x52, 0x85, 0x69, 0xae, 0xe8, 0x6a, + 0xba, 0xa6, 0x34, 0xa6, 0xe4, 0x1f, 0x08, 0x4f, 0x69, 0x5a, 0x92, 0xe9, 0x9a, 0xca, 0xd6, 0x15, + 0x4d, 0xd7, 0x54, 0x8e, 0x54, 0x48, 0xdf, 0x14, 0x3c, 0x56, 0xc8, 0xcd, 0x62, 0x1e, 0xfa, 0x47, + 0x6f, 0xe9, 0x29, 0x8b, 0x0e, 0x45, 0xe1, 0xd2, 0xd2, 0x86, 0x2a, 0xb1, 0xb4, 0xf6, 0x41, 0x31, + 0x5f, 0x0d, 0x35, 0x5d, 0x5a, 0x3a, 0x45, 0xf2, 0x6f, 0x84, 0x9f, 0xca, 0x54, 0x13, 0xc9, 0xb7, + 0x0d, 0x00, 0x15, 0x69, 0x9a, 0xcd, 0xf9, 0xea, 0x0e, 0x80, 0xd4, 0xaa, 0x20, 0xf5, 0x3a, 0x59, + 0x2e, 0x26, 0xe5, 0x3a, 0x01, 0x8f, 0x29, 0x85, 0xdb, 0xab, 0xbc, 0x3b, 0x6b, 0x35, 0xf1, 0x6f, + 0x93, 0x3a, 0x32, 0x11, 0x40, 0x4a, 0xd5, 0x11, 0x4d, 0x0c, 0x2a, 0x57, 0x47, 0x74, 0x75, 0xc7, + 0x34, 0x2b, 0xf5, 0x6f, 0x2c, 0xf3, 0xb2, 0xf2, 0x0f, 0x93, 0xea, 0x21, 0x47, 0x2a, 0x5d, 0x3d, + 0xaa, 0xf0, 0xcb, 0x95, 0x30, 0x4b, 0x5e, 0x9b, 0x26, 0xfc, 0xc2, 0x03, 0xdf, 0x31, 0x5d, 0xc0, + 0x22, 0x86, 0x15, 0x20, 0x47, 0xb6, 0x6b, 0xde, 0xa8, 0x6a, 0x5e, 0x4e, 0x51, 0x48, 0x7f, 0xe8, + 0x9a, 0xca, 0xc1, 0xcf, 0x11, 0x3e, 0xae, 0x0f, 0x13, 0x4e, 0x94, 0xe1, 0xfa, 0xdf, 0x0f, 0xc1, + 0x02, 0xa9, 0x91, 0xbe, 0x2a, 0x08, 0x5e, 0x21, 0x97, 0xcb, 0x12, 0x5c, 0xbc, 0x75, 0xff, 0x41, + 0x0b, 0x7d, 0xf1, 0xa0, 0x85, 0xfe, 0xf5, 0xa0, 0x85, 0x3e, 0x7c, 0xd8, 0x3a, 0xf0, 0xc5, 0xc3, + 0xd6, 0x81, 0xbf, 0x3c, 0x6c, 0x1d, 0xb8, 0x67, 0x0d, 0x1d, 0xbe, 0xbe, 0xd9, 0x6d, 0xf7, 0xfc, + 0x51, 0xb6, 0xd7, 0xad, 0x89, 0x5f, 0xbe, 0xbd, 0xc1, 0x82, 0xee, 0x21, 0xf1, 0xd9, 0xef, 0x4b, + 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xde, 0xa2, 0xb1, 0x06, 0x9a, 0x2e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3533,7 +3533,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "nftmngr/query.proto", + Metadata: "nftmngr/latest/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/query.pb.gw.go b/x/nftmngr/types/query.pb.gw.go index 35c64e3a..c9c74a9c 100644 --- a/x/nftmngr/types/query.pb.gw.go +++ b/x/nftmngr/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: nftmngr/query.proto +// source: nftmngr/latest/query.proto /* Package types is a reverse proxy. diff --git a/x/nftmngr/types/schema_attribute.pb.go b/x/nftmngr/types/schema_attribute.pb.go index d2746163..66a546f5 100644 --- a/x/nftmngr/types/schema_attribute.pb.go +++ b/x/nftmngr/types/schema_attribute.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/schema_attribute.proto +// source: nftmngr/latest/schema_attribute.proto package types @@ -34,7 +34,7 @@ func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } func (*SchemaAttribute) ProtoMessage() {} func (*SchemaAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_8228233d6832e497, []int{0} + return fileDescriptor_e77d94f457e211a6, []int{0} } func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,122 +98,6 @@ func (m *SchemaAttribute) GetCreator() string { return "" } -type SchemaAttributeV1 struct { - NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` - Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` - DisplayValueField string `protobuf:"bytes,5,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` - DisplayOption *DisplayOption `protobuf:"bytes,6,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` - CurrentValue *SchemaAttributeValue `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` - HiddenOveride bool `protobuf:"varint,8,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` - HiddenToMarketplace bool `protobuf:"varint,9,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` - Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"` -} - -func (m *SchemaAttributeV1) Reset() { *m = SchemaAttributeV1{} } -func (m *SchemaAttributeV1) String() string { return proto.CompactTextString(m) } -func (*SchemaAttributeV1) ProtoMessage() {} -func (*SchemaAttributeV1) Descriptor() ([]byte, []int) { - return fileDescriptor_8228233d6832e497, []int{1} -} -func (m *SchemaAttributeV1) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SchemaAttributeV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SchemaAttributeV1.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 *SchemaAttributeV1) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaAttributeV1.Merge(m, src) -} -func (m *SchemaAttributeV1) XXX_Size() int { - return m.Size() -} -func (m *SchemaAttributeV1) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaAttributeV1.DiscardUnknown(m) -} - -var xxx_messageInfo_SchemaAttributeV1 proto.InternalMessageInfo - -func (m *SchemaAttributeV1) GetNftSchemaCode() string { - if m != nil { - return m.NftSchemaCode - } - return "" -} - -func (m *SchemaAttributeV1) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *SchemaAttributeV1) GetDataType() string { - if m != nil { - return m.DataType - } - return "" -} - -func (m *SchemaAttributeV1) GetRequired() bool { - if m != nil { - return m.Required - } - return false -} - -func (m *SchemaAttributeV1) GetDisplayValueField() string { - if m != nil { - return m.DisplayValueField - } - return "" -} - -func (m *SchemaAttributeV1) GetDisplayOption() *DisplayOption { - if m != nil { - return m.DisplayOption - } - return nil -} - -func (m *SchemaAttributeV1) GetCurrentValue() *SchemaAttributeValue { - if m != nil { - return m.CurrentValue - } - return nil -} - -func (m *SchemaAttributeV1) GetHiddenOveride() bool { - if m != nil { - return m.HiddenOveride - } - return false -} - -func (m *SchemaAttributeV1) GetHiddenToMarketplace() bool { - if m != nil { - return m.HiddenToMarketplace - } - return false -} - -func (m *SchemaAttributeV1) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - type SchemaAttributeValue struct { // Types that are valid to be assigned to Value: // *SchemaAttributeValue_NumberAttributeValue @@ -227,7 +111,7 @@ func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } func (*SchemaAttributeValue) ProtoMessage() {} func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_8228233d6832e497, []int{2} + return fileDescriptor_e77d94f457e211a6, []int{1} } func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,49 +211,42 @@ func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { func init() { proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttribute") - proto.RegisterType((*SchemaAttributeV1)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttributeV1") proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.SchemaAttributeValue") } -func init() { proto.RegisterFile("nftmngr/schema_attribute.proto", fileDescriptor_8228233d6832e497) } +func init() { + proto.RegisterFile("nftmngr/latest/schema_attribute.proto", fileDescriptor_e77d94f457e211a6) +} -var fileDescriptor_8228233d6832e497 = []byte{ - // 549 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xdf, 0x6e, 0xd3, 0x3e, - 0x14, 0x6e, 0xd6, 0x6d, 0x6d, 0xfd, 0xfb, 0x75, 0x68, 0xee, 0x0a, 0x51, 0x99, 0xa2, 0x51, 0x81, - 0x34, 0x09, 0x29, 0xd1, 0xba, 0x27, 0xa0, 0xa0, 0x09, 0x2e, 0x60, 0x52, 0x98, 0x40, 0xe2, 0x26, - 0x72, 0xea, 0x93, 0xd6, 0x2c, 0xb1, 0x83, 0xe3, 0x8c, 0xf5, 0x2d, 0x78, 0x2c, 0xee, 0xd8, 0xe5, - 0x24, 0x6e, 0x50, 0xfb, 0x22, 0x28, 0x4e, 0x42, 0xd7, 0xa6, 0x2a, 0x5c, 0xc0, 0x9d, 0xfd, 0x7d, - 0xe7, 0x3b, 0xdf, 0xf9, 0x23, 0x1b, 0x59, 0x3c, 0x50, 0x11, 0x1f, 0x4b, 0x27, 0x19, 0x4d, 0x20, - 0x22, 0x1e, 0x51, 0x4a, 0x32, 0x3f, 0x55, 0x60, 0xc7, 0x52, 0x28, 0x81, 0x0f, 0xd5, 0x04, 0x12, - 0x76, 0xcd, 0x41, 0x7d, 0x16, 0xf2, 0xd2, 0xce, 0x8e, 0x81, 0xb2, 0x0b, 0x51, 0xef, 0xb0, 0x54, - 0x53, 0x96, 0xc4, 0x21, 0x99, 0x7a, 0x22, 0x56, 0x4c, 0xf0, 0x5c, 0xdb, 0x7b, 0x54, 0xb2, 0x3c, - 0x50, 0x8b, 0xc4, 0xde, 0x15, 0x09, 0xd3, 0x22, 0x7d, 0xaf, 0x5f, 0x86, 0x2c, 0x68, 0x0a, 0x01, - 0xe3, 0x6c, 0x91, 0xa6, 0xff, 0xdd, 0x40, 0xf7, 0xde, 0xea, 0xea, 0x9e, 0x95, 0x41, 0xf8, 0x31, - 0x6a, 0xf3, 0x40, 0xe5, 0xe8, 0x73, 0x41, 0xc1, 0x34, 0x8e, 0x8c, 0xe3, 0x96, 0xbb, 0x0c, 0x62, - 0x8c, 0xb6, 0x39, 0x89, 0xc0, 0xdc, 0xd2, 0xa4, 0x3e, 0xe3, 0x87, 0xa8, 0x45, 0x89, 0x22, 0x9e, - 0x9a, 0xc6, 0x60, 0xd6, 0x35, 0xd1, 0xcc, 0x80, 0x8b, 0x69, 0x0c, 0xf8, 0x3d, 0x6a, 0x8f, 0x52, - 0x29, 0x81, 0xab, 0xbc, 0x4a, 0x73, 0xfb, 0xc8, 0x38, 0xfe, 0x6f, 0x30, 0xb0, 0x37, 0x4d, 0xc1, - 0x5e, 0x29, 0xee, 0x5d, 0xa6, 0x74, 0xff, 0x2f, 0x12, 0xe9, 0x1b, 0x36, 0x51, 0x63, 0x24, 0x81, - 0x28, 0x21, 0xcd, 0x1d, 0xed, 0x59, 0x5e, 0xfb, 0xb7, 0x75, 0xb4, 0xbf, 0x9a, 0xe0, 0xe4, 0x5f, - 0xf5, 0xd7, 0x43, 0x4d, 0x09, 0x9f, 0x52, 0x26, 0x81, 0xea, 0xd6, 0x9a, 0xee, 0xaf, 0x3b, 0xb6, - 0x51, 0xa7, 0xdc, 0xa2, 0xee, 0xdd, 0x0b, 0x18, 0x84, 0xb4, 0x28, 0x77, 0xbf, 0xa0, 0x74, 0x37, - 0x67, 0x19, 0x81, 0x5d, 0xb4, 0xb7, 0xbc, 0x75, 0x73, 0x57, 0x0f, 0xeb, 0xe9, 0xe6, 0x61, 0xbd, - 0xc8, 0x35, 0xe7, 0x5a, 0xe2, 0xb6, 0xe9, 0xdd, 0x6b, 0x75, 0xfe, 0x8d, 0xbf, 0x34, 0xff, 0x27, - 0x68, 0x6f, 0xc2, 0x28, 0x05, 0xee, 0x89, 0x2b, 0x90, 0x8c, 0x82, 0xd9, 0xd4, 0xed, 0xb7, 0x73, - 0xf4, 0x3c, 0x07, 0xf1, 0x00, 0x75, 0x8b, 0x30, 0x25, 0xbc, 0x88, 0xc8, 0x4b, 0x50, 0x71, 0x48, - 0x46, 0x60, 0xb6, 0x74, 0x74, 0x27, 0x27, 0x2f, 0xc4, 0xeb, 0x05, 0x75, 0x77, 0xb5, 0x68, 0x79, - 0xb5, 0xdf, 0xea, 0xe8, 0x60, 0x5d, 0x6d, 0xf8, 0x23, 0xba, 0xcf, 0xd3, 0xc8, 0x07, 0xb9, 0xfa, - 0x2a, 0xf4, 0x9a, 0x7f, 0xdb, 0xef, 0x1b, 0xad, 0x5d, 0xce, 0xf9, 0xb2, 0xe6, 0x1e, 0xf0, 0x35, - 0x78, 0xe6, 0x95, 0x28, 0xc9, 0xf8, 0xb8, 0xe2, 0xb5, 0xf5, 0x47, 0xb3, 0xd5, 0xda, 0xaa, 0x57, - 0xb2, 0x06, 0xc7, 0x11, 0x7a, 0xe0, 0x0b, 0x11, 0x02, 0xe1, 0x15, 0xb3, 0xba, 0x36, 0x3b, 0xdd, - 0x6c, 0x36, 0xcc, 0xc5, 0x15, 0xb7, 0xae, 0xbf, 0x8e, 0xc0, 0x63, 0xd4, 0x0d, 0x42, 0x41, 0x2a, - 0x7f, 0x4b, 0xf1, 0x6a, 0x4f, 0x36, 0x9b, 0x9d, 0x65, 0xd2, 0x8a, 0x55, 0x27, 0xa8, 0xc2, 0xc3, - 0x06, 0xda, 0xd1, 0x89, 0x87, 0xaf, 0xbe, 0xce, 0x2c, 0xe3, 0x66, 0x66, 0x19, 0x3f, 0x66, 0x96, - 0xf1, 0x65, 0x6e, 0xd5, 0x6e, 0xe6, 0x56, 0xed, 0x76, 0x6e, 0xd5, 0x3e, 0x38, 0x63, 0xa6, 0x26, - 0xa9, 0x6f, 0x8f, 0x44, 0xe4, 0x2c, 0xd9, 0x3a, 0xb9, 0xad, 0x73, 0xed, 0x94, 0x5f, 0x5d, 0xf6, - 0x32, 0x13, 0x7f, 0x57, 0x7f, 0x6e, 0xa7, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x70, 0xeb, 0xff, - 0xab, 0x81, 0x05, 0x00, 0x00, +var fileDescriptor_e77d94f457e211a6 = []byte{ + // 424 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0xae, 0x93, 0x40, + 0x14, 0xc6, 0xa1, 0x7f, 0xac, 0x1d, 0x6d, 0x4c, 0xc6, 0x56, 0x49, 0x35, 0xa4, 0xa9, 0x9a, 0xd4, + 0x0d, 0xc4, 0xf6, 0x09, 0xac, 0x89, 0xd1, 0x8d, 0x8b, 0x6a, 0x34, 0x71, 0x43, 0x06, 0x18, 0xe8, + 0x28, 0xcc, 0x90, 0xe1, 0xa0, 0xed, 0x5b, 0xf8, 0x58, 0xee, 0xec, 0xd2, 0xe4, 0x6e, 0x6e, 0xda, + 0x17, 0xb9, 0x61, 0xa0, 0x69, 0x0a, 0xa4, 0xf7, 0xee, 0x66, 0xbe, 0x39, 0xdf, 0xf7, 0x3b, 0x1c, + 0x66, 0xd0, 0x2b, 0x1e, 0x40, 0xcc, 0x43, 0x69, 0x47, 0x04, 0x68, 0x0a, 0x76, 0xea, 0xad, 0x69, + 0x4c, 0x1c, 0x02, 0x20, 0x99, 0x9b, 0x01, 0xb5, 0x12, 0x29, 0x40, 0xe0, 0xe7, 0xb0, 0xa6, 0x29, + 0xdb, 0x70, 0x0a, 0xbf, 0x85, 0xfc, 0x69, 0xe5, 0xcb, 0x00, 0xac, 0xd2, 0x3b, 0x7e, 0x51, 0x09, + 0xf1, 0x59, 0x9a, 0x44, 0x64, 0xeb, 0x88, 0x04, 0x98, 0xe0, 0x45, 0xc4, 0x78, 0x56, 0x29, 0xe2, + 0x01, 0x9c, 0x30, 0xce, 0x2f, 0x12, 0x65, 0x25, 0x6c, 0xfc, 0xba, 0x52, 0x79, 0xaa, 0xf2, 0x69, + 0xc0, 0x38, 0x3b, 0x85, 0x4e, 0xaf, 0x74, 0xf4, 0xe8, 0xb3, 0x6a, 0xf9, 0xed, 0xb1, 0x08, 0xbf, + 0x44, 0x03, 0x1e, 0x40, 0xa1, 0xbe, 0x13, 0x3e, 0x35, 0xf4, 0x89, 0x3e, 0xeb, 0xaf, 0xce, 0x45, + 0x8c, 0x51, 0x87, 0x93, 0x98, 0x1a, 0x2d, 0x75, 0xa8, 0xd6, 0xf8, 0x19, 0xea, 0xfb, 0x04, 0x88, + 0x03, 0xdb, 0x84, 0x1a, 0x6d, 0x75, 0x70, 0x3f, 0x17, 0xbe, 0x6c, 0x13, 0x8a, 0xbf, 0xa1, 0x81, + 0x97, 0x49, 0x49, 0x39, 0x14, 0xcd, 0x1a, 0x9d, 0x89, 0x3e, 0x7b, 0x30, 0x9f, 0x5b, 0x97, 0x46, + 0x63, 0x55, 0x9a, 0xfb, 0x9a, 0x3b, 0x57, 0x0f, 0xcb, 0x20, 0xb5, 0xc3, 0x06, 0xea, 0x79, 0x92, + 0x12, 0x10, 0xd2, 0xe8, 0x2a, 0xe6, 0x71, 0x3b, 0xfd, 0xd7, 0x46, 0xc3, 0xa6, 0x00, 0xfc, 0x03, + 0x3d, 0xe1, 0x59, 0xec, 0x52, 0x59, 0x9d, 0xa0, 0xfa, 0xd6, 0x5b, 0x9b, 0xfa, 0xa4, 0xbc, 0xe7, + 0x99, 0x1f, 0xb4, 0xd5, 0x90, 0x37, 0xe8, 0x39, 0x2b, 0x05, 0xc9, 0x78, 0x58, 0x63, 0xb5, 0xee, + 0x34, 0x00, 0xe5, 0xad, 0xb3, 0xd2, 0x06, 0x1d, 0xc7, 0xe8, 0xa9, 0x2b, 0x44, 0x44, 0x09, 0xaf, + 0xc1, 0xda, 0x0a, 0xb6, 0xb8, 0x0c, 0x5b, 0x16, 0xe6, 0x1a, 0x6d, 0xe4, 0x36, 0x1d, 0xe0, 0x10, + 0x8d, 0x82, 0x48, 0x90, 0xda, 0x3d, 0x2c, 0x7f, 0xed, 0x9b, 0xcb, 0xb0, 0xf7, 0xb9, 0xb5, 0x86, + 0x7a, 0x1c, 0xd4, 0xe5, 0x65, 0x0f, 0x75, 0x55, 0xf0, 0xf2, 0xe3, 0xdf, 0xbd, 0xa9, 0xef, 0xf6, + 0xa6, 0x7e, 0xbd, 0x37, 0xf5, 0x3f, 0x07, 0x53, 0xdb, 0x1d, 0x4c, 0xed, 0xff, 0xc1, 0xd4, 0xbe, + 0xdb, 0x21, 0x83, 0x75, 0xe6, 0x5a, 0x9e, 0x88, 0xed, 0x33, 0xac, 0x5d, 0x60, 0xed, 0x8d, 0x7d, + 0x7c, 0x16, 0xf9, 0xf5, 0x4c, 0xdd, 0x7b, 0xea, 0x05, 0x2c, 0x6e, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x48, 0x11, 0x17, 0x30, 0xc2, 0x03, 0x00, 0x00, } func (m *SchemaAttribute) Marshal() (dAtA []byte, err error) { @@ -435,118 +312,6 @@ func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SchemaAttributeV1) 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 *SchemaAttributeV1) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SchemaAttributeV1) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0x52 - } - if m.HiddenToMarketplace { - i-- - if m.HiddenToMarketplace { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.HiddenOveride { - i-- - if m.HiddenOveride { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if m.CurrentValue != nil { - { - size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.DisplayOption != nil { - { - size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.DisplayValueField) > 0 { - i -= len(m.DisplayValueField) - copy(dAtA[i:], m.DisplayValueField) - i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DisplayValueField))) - i-- - dAtA[i] = 0x2a - } - if m.Required { - i-- - if m.Required { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.DataType) > 0 { - i -= len(m.DataType) - copy(dAtA[i:], m.DataType) - i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) - i-- - dAtA[i] = 0x1a - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x12 - } - if len(m.NftSchemaCode) > 0 { - i -= len(m.NftSchemaCode) - copy(dAtA[i:], m.NftSchemaCode) - i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *SchemaAttributeValue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -703,52 +468,6 @@ func (m *SchemaAttribute) Size() (n int) { return n } -func (m *SchemaAttributeV1) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.NftSchemaCode) - if l > 0 { - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - l = len(m.DataType) - if l > 0 { - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - if m.Required { - n += 2 - } - l = len(m.DisplayValueField) - if l > 0 { - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - if m.DisplayOption != nil { - l = m.DisplayOption.Size() - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - if m.CurrentValue != nil { - l = m.CurrentValue.Size() - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - if m.HiddenOveride { - n += 2 - } - if m.HiddenToMarketplace { - n += 2 - } - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovSchemaAttribute(uint64(l)) - } - return n -} - func (m *SchemaAttributeValue) Size() (n int) { if m == nil { return 0 @@ -1030,348 +749,6 @@ func (m *SchemaAttribute) Unmarshal(dAtA []byte) error { } return nil } -func (m *SchemaAttributeV1) 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 ErrIntOverflowSchemaAttribute - } - 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: SchemaAttributeV1: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SchemaAttributeV1: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - 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 ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - 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 ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - 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 ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DataType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Required = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - 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 ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DisplayValueField = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DisplayOption == nil { - m.DisplayOption = &DisplayOption{} - } - if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentValue == nil { - m.CurrentValue = &SchemaAttributeValue{} - } - if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HiddenOveride = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.HiddenToMarketplace = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowSchemaAttribute - } - 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 ErrInvalidLengthSchemaAttribute - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthSchemaAttribute - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthSchemaAttribute - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *SchemaAttributeValue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/nftmngr/types/tx.pb.go b/x/nftmngr/types/tx.pb.go index ddf94e89..371ad057 100644 --- a/x/nftmngr/types/tx.pb.go +++ b/x/nftmngr/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/tx.proto +// source: nftmngr/latest/tx.proto package types @@ -50,7 +50,7 @@ func (x AttributeLocation) String() string { } func (AttributeLocation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{0} + return fileDescriptor_5470826da8d79609, []int{0} } type AuthorizeTo int32 @@ -75,7 +75,7 @@ func (x AuthorizeTo) String() string { } func (AuthorizeTo) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{1} + return fileDescriptor_5470826da8d79609, []int{1} } type FeeSubject int32 @@ -97,7 +97,7 @@ func (x FeeSubject) String() string { } func (FeeSubject) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{2} + return fileDescriptor_5470826da8d79609, []int{2} } type MsgCreateNFTSchema struct { @@ -109,7 +109,7 @@ func (m *MsgCreateNFTSchema) Reset() { *m = MsgCreateNFTSchema{} } func (m *MsgCreateNFTSchema) String() string { return proto.CompactTextString(m) } func (*MsgCreateNFTSchema) ProtoMessage() {} func (*MsgCreateNFTSchema) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{0} + return fileDescriptor_5470826da8d79609, []int{0} } func (m *MsgCreateNFTSchema) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -160,7 +160,7 @@ func (m *MsgCreateNFTSchemaResponse) Reset() { *m = MsgCreateNFTSchemaRe func (m *MsgCreateNFTSchemaResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateNFTSchemaResponse) ProtoMessage() {} func (*MsgCreateNFTSchemaResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{1} + return fileDescriptor_5470826da8d79609, []int{1} } func (m *MsgCreateNFTSchemaResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -207,7 +207,7 @@ func (m *MsgCreateMetadata) Reset() { *m = MsgCreateMetadata{} } func (m *MsgCreateMetadata) String() string { return proto.CompactTextString(m) } func (*MsgCreateMetadata) ProtoMessage() {} func (*MsgCreateMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{2} + return fileDescriptor_5470826da8d79609, []int{2} } func (m *MsgCreateMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -273,7 +273,7 @@ func (m *MsgCreateMetadataResponse) Reset() { *m = MsgCreateMetadataResp func (m *MsgCreateMetadataResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateMetadataResponse) ProtoMessage() {} func (*MsgCreateMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{3} + return fileDescriptor_5470826da8d79609, []int{3} } func (m *MsgCreateMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -327,7 +327,7 @@ func (m *MsgCreateMultiMetadata) Reset() { *m = MsgCreateMultiMetadata{} func (m *MsgCreateMultiMetadata) String() string { return proto.CompactTextString(m) } func (*MsgCreateMultiMetadata) ProtoMessage() {} func (*MsgCreateMultiMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{4} + return fileDescriptor_5470826da8d79609, []int{4} } func (m *MsgCreateMultiMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,7 +393,7 @@ func (m *MsgCreateMultiMetadataResponse) Reset() { *m = MsgCreateMultiMe func (m *MsgCreateMultiMetadataResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateMultiMetadataResponse) ProtoMessage() {} func (*MsgCreateMultiMetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{5} + return fileDescriptor_5470826da8d79609, []int{5} } func (m *MsgCreateMultiMetadataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +445,7 @@ func (m *OpenseaAttribute) Reset() { *m = OpenseaAttribute{} } func (m *OpenseaAttribute) String() string { return proto.CompactTextString(m) } func (*OpenseaAttribute) ProtoMessage() {} func (*OpenseaAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{6} + return fileDescriptor_5470826da8d79609, []int{6} } func (m *OpenseaAttribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -496,7 +496,7 @@ func (m *UpdatedOpenseaAttributes) Reset() { *m = UpdatedOpenseaAttribut func (m *UpdatedOpenseaAttributes) String() string { return proto.CompactTextString(m) } func (*UpdatedOpenseaAttributes) ProtoMessage() {} func (*UpdatedOpenseaAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{7} + return fileDescriptor_5470826da8d79609, []int{7} } func (m *UpdatedOpenseaAttributes) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -543,7 +543,7 @@ func (m *UpdatedOriginData) Reset() { *m = UpdatedOriginData{} } func (m *UpdatedOriginData) String() string { return proto.CompactTextString(m) } func (*UpdatedOriginData) ProtoMessage() {} func (*UpdatedOriginData) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{8} + return fileDescriptor_5470826da8d79609, []int{8} } func (m *UpdatedOriginData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -615,7 +615,7 @@ func (m *ActionParameter) Reset() { *m = ActionParameter{} } func (m *ActionParameter) String() string { return proto.CompactTextString(m) } func (*ActionParameter) ProtoMessage() {} func (*ActionParameter) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{9} + return fileDescriptor_5470826da8d79609, []int{9} } func (m *ActionParameter) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -671,7 +671,7 @@ func (m *MsgPerformActionByAdmin) Reset() { *m = MsgPerformActionByAdmin func (m *MsgPerformActionByAdmin) String() string { return proto.CompactTextString(m) } func (*MsgPerformActionByAdmin) ProtoMessage() {} func (*MsgPerformActionByAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{10} + return fileDescriptor_5470826da8d79609, []int{10} } func (m *MsgPerformActionByAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -751,7 +751,7 @@ func (m *MsgPerformActionByAdminResponse) Reset() { *m = MsgPerformActio func (m *MsgPerformActionByAdminResponse) String() string { return proto.CompactTextString(m) } func (*MsgPerformActionByAdminResponse) ProtoMessage() {} func (*MsgPerformActionByAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{11} + return fileDescriptor_5470826da8d79609, []int{11} } func (m *MsgPerformActionByAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -807,7 +807,7 @@ func (m *MsgPerformMultiTokenAction) Reset() { *m = MsgPerformMultiToken func (m *MsgPerformMultiTokenAction) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenAction) ProtoMessage() {} func (*MsgPerformMultiTokenAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{12} + return fileDescriptor_5470826da8d79609, []int{12} } func (m *MsgPerformMultiTokenAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -888,7 +888,7 @@ func (m *MsgPerformMultiTokenActionResponse) Reset() { *m = MsgPerformMu func (m *MsgPerformMultiTokenActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenActionResponse) ProtoMessage() {} func (*MsgPerformMultiTokenActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{13} + return fileDescriptor_5470826da8d79609, []int{13} } func (m *MsgPerformMultiTokenActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -951,7 +951,7 @@ func (m *MsgPerformMultiTokenOneAction) Reset() { *m = MsgPerformMultiTo func (m *MsgPerformMultiTokenOneAction) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenOneAction) ProtoMessage() {} func (*MsgPerformMultiTokenOneAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{14} + return fileDescriptor_5470826da8d79609, []int{14} } func (m *MsgPerformMultiTokenOneAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1031,7 +1031,7 @@ func (m *MsgPerformMultiTokenOneActionResponse) Reset() { *m = MsgPerfor func (m *MsgPerformMultiTokenOneActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenOneActionResponse) ProtoMessage() {} func (*MsgPerformMultiTokenOneActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{15} + return fileDescriptor_5470826da8d79609, []int{15} } func (m *MsgPerformMultiTokenOneActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1087,7 +1087,7 @@ func (m *MsgPerformMultiTokenMultiAction) Reset() { *m = MsgPerformMulti func (m *MsgPerformMultiTokenMultiAction) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenMultiAction) ProtoMessage() {} func (*MsgPerformMultiTokenMultiAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{16} + return fileDescriptor_5470826da8d79609, []int{16} } func (m *MsgPerformMultiTokenMultiAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1170,7 +1170,7 @@ func (m *MsgPerformMultiTokenMultiActionResponse) Reset() { func (m *MsgPerformMultiTokenMultiActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgPerformMultiTokenMultiActionResponse) ProtoMessage() {} func (*MsgPerformMultiTokenMultiActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{17} + return fileDescriptor_5470826da8d79609, []int{17} } func (m *MsgPerformMultiTokenMultiActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1233,7 +1233,7 @@ func (m *MsgPerformOneTokenMultiAction) Reset() { *m = MsgPerformOneToke func (m *MsgPerformOneTokenMultiAction) String() string { return proto.CompactTextString(m) } func (*MsgPerformOneTokenMultiAction) ProtoMessage() {} func (*MsgPerformOneTokenMultiAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{18} + return fileDescriptor_5470826da8d79609, []int{18} } func (m *MsgPerformOneTokenMultiAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1314,7 +1314,7 @@ func (m *MsgPerformOneTokenMultiActionResponse) Reset() { *m = MsgPerfor func (m *MsgPerformOneTokenMultiActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgPerformOneTokenMultiActionResponse) ProtoMessage() {} func (*MsgPerformOneTokenMultiActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{19} + return fileDescriptor_5470826da8d79609, []int{19} } func (m *MsgPerformOneTokenMultiActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1375,7 +1375,7 @@ func (m *MsgAddAttribute) Reset() { *m = MsgAddAttribute{} } func (m *MsgAddAttribute) String() string { return proto.CompactTextString(m) } func (*MsgAddAttribute) ProtoMessage() {} func (*MsgAddAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{20} + return fileDescriptor_5470826da8d79609, []int{20} } func (m *MsgAddAttribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1433,16 +1433,15 @@ func (m *MsgAddAttribute) GetBase64NewAttriuteDefenition() string { } type MsgAddAttributeResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - OnchainData *OnChainData `protobuf:"bytes,3,opt,name=onchainData,proto3" json:"onchainData,omitempty"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (m *MsgAddAttributeResponse) Reset() { *m = MsgAddAttributeResponse{} } func (m *MsgAddAttributeResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddAttributeResponse) ProtoMessage() {} func (*MsgAddAttributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{21} + return fileDescriptor_5470826da8d79609, []int{21} } func (m *MsgAddAttributeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1485,13 +1484,6 @@ func (m *MsgAddAttributeResponse) GetName() string { return "" } -func (m *MsgAddAttributeResponse) GetOnchainData() *OnChainData { - if m != nil { - return m.OnchainData - } - return nil -} - type MsgAddAction struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` @@ -1502,7 +1494,7 @@ func (m *MsgAddAction) Reset() { *m = MsgAddAction{} } func (m *MsgAddAction) String() string { return proto.CompactTextString(m) } func (*MsgAddAction) ProtoMessage() {} func (*MsgAddAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{22} + return fileDescriptor_5470826da8d79609, []int{22} } func (m *MsgAddAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1553,16 +1545,15 @@ func (m *MsgAddAction) GetBase64NewAction() string { } type MsgAddActionResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - OnchainData *OnChainData `protobuf:"bytes,3,opt,name=onchainData,proto3" json:"onchainData,omitempty"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (m *MsgAddActionResponse) Reset() { *m = MsgAddActionResponse{} } func (m *MsgAddActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddActionResponse) ProtoMessage() {} func (*MsgAddActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{23} + return fileDescriptor_5470826da8d79609, []int{23} } func (m *MsgAddActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1605,13 +1596,6 @@ func (m *MsgAddActionResponse) GetName() string { return "" } -func (m *MsgAddActionResponse) GetOnchainData() *OnChainData { - if m != nil { - return m.OnchainData - } - return nil -} - type MsgSetBaseUri struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` @@ -1622,7 +1606,7 @@ func (m *MsgSetBaseUri) Reset() { *m = MsgSetBaseUri{} } func (m *MsgSetBaseUri) String() string { return proto.CompactTextString(m) } func (*MsgSetBaseUri) ProtoMessage() {} func (*MsgSetBaseUri) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{24} + return fileDescriptor_5470826da8d79609, []int{24} } func (m *MsgSetBaseUri) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1681,7 +1665,7 @@ func (m *MsgSetBaseUriResponse) Reset() { *m = MsgSetBaseUriResponse{} } func (m *MsgSetBaseUriResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetBaseUriResponse) ProtoMessage() {} func (*MsgSetBaseUriResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{25} + return fileDescriptor_5470826da8d79609, []int{25} } func (m *MsgSetBaseUriResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1728,14 +1712,14 @@ type MsgToggleAction struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` - Disable bool `protobuf:"varint,4,opt,name=disable,proto3" json:"disable,omitempty"` + Status bool `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` } func (m *MsgToggleAction) Reset() { *m = MsgToggleAction{} } func (m *MsgToggleAction) String() string { return proto.CompactTextString(m) } func (*MsgToggleAction) ProtoMessage() {} func (*MsgToggleAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{26} + return fileDescriptor_5470826da8d79609, []int{26} } func (m *MsgToggleAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1785,24 +1769,24 @@ func (m *MsgToggleAction) GetAction() string { return "" } -func (m *MsgToggleAction) GetDisable() bool { +func (m *MsgToggleAction) GetStatus() bool { if m != nil { - return m.Disable + return m.Status } return false } type MsgToggleActionResponse struct { - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - OnchainDataAction *OnChainData `protobuf:"bytes,3,opt,name=onchainDataAction,proto3" json:"onchainDataAction,omitempty"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` } func (m *MsgToggleActionResponse) Reset() { *m = MsgToggleActionResponse{} } func (m *MsgToggleActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgToggleActionResponse) ProtoMessage() {} func (*MsgToggleActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{27} + return fileDescriptor_5470826da8d79609, []int{27} } func (m *MsgToggleActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1845,11 +1829,11 @@ func (m *MsgToggleActionResponse) GetName() string { return "" } -func (m *MsgToggleActionResponse) GetOnchainDataAction() *OnChainData { +func (m *MsgToggleActionResponse) GetStatus() bool { if m != nil { - return m.OnchainDataAction + return m.Status } - return nil + return false } type MsgChangeSchemaOwner struct { @@ -1862,7 +1846,7 @@ func (m *MsgChangeSchemaOwner) Reset() { *m = MsgChangeSchemaOwner{} } func (m *MsgChangeSchemaOwner) String() string { return proto.CompactTextString(m) } func (*MsgChangeSchemaOwner) ProtoMessage() {} func (*MsgChangeSchemaOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{28} + return fileDescriptor_5470826da8d79609, []int{28} } func (m *MsgChangeSchemaOwner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1921,7 +1905,7 @@ func (m *MsgChangeSchemaOwnerResponse) Reset() { *m = MsgChangeSchemaOwn func (m *MsgChangeSchemaOwnerResponse) String() string { return proto.CompactTextString(m) } func (*MsgChangeSchemaOwnerResponse) ProtoMessage() {} func (*MsgChangeSchemaOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{29} + return fileDescriptor_5470826da8d79609, []int{29} } func (m *MsgChangeSchemaOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1966,13 +1950,14 @@ func (m *MsgChangeSchemaOwnerResponse) GetNewOwner() string { type MsgResyncAttributesResponse struct { NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=tokenId,proto3" json:"tokenId,omitempty"` } func (m *MsgResyncAttributesResponse) Reset() { *m = MsgResyncAttributesResponse{} } func (m *MsgResyncAttributesResponse) String() string { return proto.CompactTextString(m) } func (*MsgResyncAttributesResponse) ProtoMessage() {} func (*MsgResyncAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{30} + return fileDescriptor_5470826da8d79609, []int{30} } func (m *MsgResyncAttributesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2008,6 +1993,13 @@ func (m *MsgResyncAttributesResponse) GetNftSchemaCode() string { return "" } +func (m *MsgResyncAttributesResponse) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + type MsgShowAttributes struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` NftSchemaCode string `protobuf:"bytes,2,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` @@ -2019,7 +2011,7 @@ func (m *MsgShowAttributes) Reset() { *m = MsgShowAttributes{} } func (m *MsgShowAttributes) String() string { return proto.CompactTextString(m) } func (*MsgShowAttributes) ProtoMessage() {} func (*MsgShowAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{31} + return fileDescriptor_5470826da8d79609, []int{31} } func (m *MsgShowAttributes) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2084,7 +2076,7 @@ func (m *MsgShowAttributesResponse) Reset() { *m = MsgShowAttributesResp func (m *MsgShowAttributesResponse) String() string { return proto.CompactTextString(m) } func (*MsgShowAttributesResponse) ProtoMessage() {} func (*MsgShowAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{32} + return fileDescriptor_5470826da8d79609, []int{32} } func (m *MsgShowAttributesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2130,7 +2122,7 @@ func (m *MsgResyncAttributes) Reset() { *m = MsgResyncAttributes{} } func (m *MsgResyncAttributes) String() string { return proto.CompactTextString(m) } func (*MsgResyncAttributes) ProtoMessage() {} func (*MsgResyncAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{33} + return fileDescriptor_5470826da8d79609, []int{33} } func (m *MsgResyncAttributes) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2190,7 +2182,7 @@ func (m *MsgSetFeeConfig) Reset() { *m = MsgSetFeeConfig{} } func (m *MsgSetFeeConfig) String() string { return proto.CompactTextString(m) } func (*MsgSetFeeConfig) ProtoMessage() {} func (*MsgSetFeeConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{34} + return fileDescriptor_5470826da8d79609, []int{34} } func (m *MsgSetFeeConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2247,7 +2239,7 @@ func (m *MsgSetFeeConfigResponse) Reset() { *m = MsgSetFeeConfigResponse func (m *MsgSetFeeConfigResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetFeeConfigResponse) ProtoMessage() {} func (*MsgSetFeeConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{35} + return fileDescriptor_5470826da8d79609, []int{35} } func (m *MsgSetFeeConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2286,7 +2278,7 @@ func (m *MsgSetMintauth) Reset() { *m = MsgSetMintauth{} } func (m *MsgSetMintauth) String() string { return proto.CompactTextString(m) } func (*MsgSetMintauth) ProtoMessage() {} func (*MsgSetMintauth) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{36} + return fileDescriptor_5470826da8d79609, []int{36} } func (m *MsgSetMintauth) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2344,7 +2336,7 @@ func (m *MsgSetMintauthResponse) Reset() { *m = MsgSetMintauthResponse{} func (m *MsgSetMintauthResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetMintauthResponse) ProtoMessage() {} func (*MsgSetMintauthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{37} + return fileDescriptor_5470826da8d79609, []int{37} } func (m *MsgSetMintauthResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2390,7 +2382,7 @@ func (m *MsgChangeOrgOwner) Reset() { *m = MsgChangeOrgOwner{} } func (m *MsgChangeOrgOwner) String() string { return proto.CompactTextString(m) } func (*MsgChangeOrgOwner) ProtoMessage() {} func (*MsgChangeOrgOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{38} + return fileDescriptor_5470826da8d79609, []int{38} } func (m *MsgChangeOrgOwner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2450,7 +2442,7 @@ func (m *MsgChangeOrgOwnerResponse) Reset() { *m = MsgChangeOrgOwnerResp func (m *MsgChangeOrgOwnerResponse) String() string { return proto.CompactTextString(m) } func (*MsgChangeOrgOwnerResponse) ProtoMessage() {} func (*MsgChangeOrgOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{39} + return fileDescriptor_5470826da8d79609, []int{39} } func (m *MsgChangeOrgOwnerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2510,7 +2502,7 @@ func (m *MsgSetUriRetrievalMethod) Reset() { *m = MsgSetUriRetrievalMeth func (m *MsgSetUriRetrievalMethod) String() string { return proto.CompactTextString(m) } func (*MsgSetUriRetrievalMethod) ProtoMessage() {} func (*MsgSetUriRetrievalMethod) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{40} + return fileDescriptor_5470826da8d79609, []int{40} } func (m *MsgSetUriRetrievalMethod) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2569,7 +2561,7 @@ func (m *MsgSetUriRetrievalMethodResponse) Reset() { *m = MsgSetUriRetri func (m *MsgSetUriRetrievalMethodResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetUriRetrievalMethodResponse) ProtoMessage() {} func (*MsgSetUriRetrievalMethodResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{41} + return fileDescriptor_5470826da8d79609, []int{41} } func (m *MsgSetUriRetrievalMethodResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2622,7 +2614,7 @@ func (m *MsgSetOriginChain) Reset() { *m = MsgSetOriginChain{} } func (m *MsgSetOriginChain) String() string { return proto.CompactTextString(m) } func (*MsgSetOriginChain) ProtoMessage() {} func (*MsgSetOriginChain) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{42} + return fileDescriptor_5470826da8d79609, []int{42} } func (m *MsgSetOriginChain) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2681,7 +2673,7 @@ func (m *MsgSetOriginChainResponse) Reset() { *m = MsgSetOriginChainResp func (m *MsgSetOriginChainResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetOriginChainResponse) ProtoMessage() {} func (*MsgSetOriginChainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{43} + return fileDescriptor_5470826da8d79609, []int{43} } func (m *MsgSetOriginChainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2734,7 +2726,7 @@ func (m *MsgSetOriginContract) Reset() { *m = MsgSetOriginContract{} } func (m *MsgSetOriginContract) String() string { return proto.CompactTextString(m) } func (*MsgSetOriginContract) ProtoMessage() {} func (*MsgSetOriginContract) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{44} + return fileDescriptor_5470826da8d79609, []int{44} } func (m *MsgSetOriginContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2793,7 +2785,7 @@ func (m *MsgSetOriginContractResponse) Reset() { *m = MsgSetOriginContra func (m *MsgSetOriginContractResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetOriginContractResponse) ProtoMessage() {} func (*MsgSetOriginContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{45} + return fileDescriptor_5470826da8d79609, []int{45} } func (m *MsgSetOriginContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2846,7 +2838,7 @@ func (m *MsgSetAttributeOveriding) Reset() { *m = MsgSetAttributeOveridi func (m *MsgSetAttributeOveriding) String() string { return proto.CompactTextString(m) } func (*MsgSetAttributeOveriding) ProtoMessage() {} func (*MsgSetAttributeOveriding) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{46} + return fileDescriptor_5470826da8d79609, []int{46} } func (m *MsgSetAttributeOveriding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2905,7 +2897,7 @@ func (m *MsgSetAttributeOveridingResponse) Reset() { *m = MsgSetAttribut func (m *MsgSetAttributeOveridingResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetAttributeOveridingResponse) ProtoMessage() {} func (*MsgSetAttributeOveridingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{47} + return fileDescriptor_5470826da8d79609, []int{47} } func (m *MsgSetAttributeOveridingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2958,7 +2950,7 @@ func (m *MsgSetMetadataFormat) Reset() { *m = MsgSetMetadataFormat{} } func (m *MsgSetMetadataFormat) String() string { return proto.CompactTextString(m) } func (*MsgSetMetadataFormat) ProtoMessage() {} func (*MsgSetMetadataFormat) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{48} + return fileDescriptor_5470826da8d79609, []int{48} } func (m *MsgSetMetadataFormat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3017,7 +3009,7 @@ func (m *MsgSetMetadataFormatResponse) Reset() { *m = MsgSetMetadataForm func (m *MsgSetMetadataFormatResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetMetadataFormatResponse) ProtoMessage() {} func (*MsgSetMetadataFormatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{49} + return fileDescriptor_5470826da8d79609, []int{49} } func (m *MsgSetMetadataFormatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3070,7 +3062,7 @@ func (m *MsgCreateActionExecutor) Reset() { *m = MsgCreateActionExecutor func (m *MsgCreateActionExecutor) String() string { return proto.CompactTextString(m) } func (*MsgCreateActionExecutor) ProtoMessage() {} func (*MsgCreateActionExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{50} + return fileDescriptor_5470826da8d79609, []int{50} } func (m *MsgCreateActionExecutor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3129,7 +3121,7 @@ func (m *MsgCreateActionExecutorResponse) Reset() { *m = MsgCreateAction func (m *MsgCreateActionExecutorResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateActionExecutorResponse) ProtoMessage() {} func (*MsgCreateActionExecutorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{51} + return fileDescriptor_5470826da8d79609, []int{51} } func (m *MsgCreateActionExecutorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3182,7 +3174,7 @@ func (m *MsgUpdateActionExecutor) Reset() { *m = MsgUpdateActionExecutor func (m *MsgUpdateActionExecutor) String() string { return proto.CompactTextString(m) } func (*MsgUpdateActionExecutor) ProtoMessage() {} func (*MsgUpdateActionExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{52} + return fileDescriptor_5470826da8d79609, []int{52} } func (m *MsgUpdateActionExecutor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3241,7 +3233,7 @@ func (m *MsgUpdateActionExecutorResponse) Reset() { *m = MsgUpdateAction func (m *MsgUpdateActionExecutorResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateActionExecutorResponse) ProtoMessage() {} func (*MsgUpdateActionExecutorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{53} + return fileDescriptor_5470826da8d79609, []int{53} } func (m *MsgUpdateActionExecutorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3294,7 +3286,7 @@ func (m *MsgDeleteActionExecutor) Reset() { *m = MsgDeleteActionExecutor func (m *MsgDeleteActionExecutor) String() string { return proto.CompactTextString(m) } func (*MsgDeleteActionExecutor) ProtoMessage() {} func (*MsgDeleteActionExecutor) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{54} + return fileDescriptor_5470826da8d79609, []int{54} } func (m *MsgDeleteActionExecutor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3353,7 +3345,7 @@ func (m *MsgDeleteActionExecutorResponse) Reset() { *m = MsgDeleteAction func (m *MsgDeleteActionExecutorResponse) String() string { return proto.CompactTextString(m) } func (*MsgDeleteActionExecutorResponse) ProtoMessage() {} func (*MsgDeleteActionExecutorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{55} + return fileDescriptor_5470826da8d79609, []int{55} } func (m *MsgDeleteActionExecutorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3406,7 +3398,7 @@ func (m *MsgUpdateSchemaAttribute) Reset() { *m = MsgUpdateSchemaAttribu func (m *MsgUpdateSchemaAttribute) String() string { return proto.CompactTextString(m) } func (*MsgUpdateSchemaAttribute) ProtoMessage() {} func (*MsgUpdateSchemaAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{56} + return fileDescriptor_5470826da8d79609, []int{56} } func (m *MsgUpdateSchemaAttribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3457,16 +3449,15 @@ func (m *MsgUpdateSchemaAttribute) GetBase64UpdateAttriuteDefenition() string { } type MsgUpdateSchemaAttributeResponse struct { - NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - NewAttribute *SchemaAttribute `protobuf:"bytes,3,opt,name=new_attribute,json=newAttribute,proto3" json:"new_attribute,omitempty"` + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (m *MsgUpdateSchemaAttributeResponse) Reset() { *m = MsgUpdateSchemaAttributeResponse{} } func (m *MsgUpdateSchemaAttributeResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateSchemaAttributeResponse) ProtoMessage() {} func (*MsgUpdateSchemaAttributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{57} + return fileDescriptor_5470826da8d79609, []int{57} } func (m *MsgUpdateSchemaAttributeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3509,13 +3500,6 @@ func (m *MsgUpdateSchemaAttributeResponse) GetName() string { return "" } -func (m *MsgUpdateSchemaAttributeResponse) GetNewAttribute() *SchemaAttribute { - if m != nil { - return m.NewAttribute - } - return nil -} - type MsgUpdateAction struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` NftSchemaCode string `protobuf:"bytes,2,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` @@ -3526,7 +3510,7 @@ func (m *MsgUpdateAction) Reset() { *m = MsgUpdateAction{} } func (m *MsgUpdateAction) String() string { return proto.CompactTextString(m) } func (*MsgUpdateAction) ProtoMessage() {} func (*MsgUpdateAction) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{58} + return fileDescriptor_5470826da8d79609, []int{58} } func (m *MsgUpdateAction) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3585,7 +3569,7 @@ func (m *MsgUpdateActionResponse) Reset() { *m = MsgUpdateActionResponse func (m *MsgUpdateActionResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateActionResponse) ProtoMessage() {} func (*MsgUpdateActionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_17e298b08d1e9780, []int{59} + return fileDescriptor_5470826da8d79609, []int{59} } func (m *MsgUpdateActionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3694,148 +3678,144 @@ func init() { proto.RegisterType((*MsgUpdateActionResponse)(nil), "thesixnetwork.sixnft.nftmngr.MsgUpdateActionResponse") } -func init() { proto.RegisterFile("nftmngr/tx.proto", fileDescriptor_17e298b08d1e9780) } - -var fileDescriptor_17e298b08d1e9780 = []byte{ - // 2197 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x5b, 0x6f, 0xdb, 0xc8, - 0xf5, 0x37, 0xa5, 0xc4, 0x97, 0x63, 0xc7, 0x17, 0xc6, 0xde, 0x95, 0x99, 0x44, 0xff, 0xfc, 0xa7, - 0x6d, 0xea, 0xba, 0x8d, 0xb4, 0xf5, 0x26, 0xe9, 0x6e, 0xb7, 0xbb, 0x58, 0xd9, 0xb1, 0x91, 0x20, - 0x91, 0xbd, 0xa0, 0x15, 0xf4, 0xba, 0x50, 0x68, 0x71, 0x44, 0x73, 0x63, 0x91, 0x0e, 0x39, 0x8a, - 0xe2, 0x45, 0x2f, 0x59, 0xec, 0x53, 0xd1, 0xa2, 0x5b, 0xa0, 0x28, 0x50, 0x14, 0xe8, 0x4b, 0x81, - 0xbe, 0xf7, 0x5b, 0xa4, 0x7d, 0x29, 0xf6, 0xb1, 0x8f, 0x45, 0xf2, 0x11, 0x0a, 0xf4, 0xb9, 0xe0, - 0xcc, 0x90, 0x1a, 0x5e, 0xc4, 0x8b, 0x15, 0x37, 0x6f, 0xe2, 0xf0, 0x5c, 0x7f, 0x73, 0xce, 0x99, - 0x39, 0x87, 0x82, 0x45, 0xab, 0x4b, 0x7a, 0x96, 0xe1, 0xd4, 0xc9, 0xd3, 0xda, 0xb1, 0x63, 0x13, - 0x5b, 0xbe, 0x4c, 0x0e, 0xb1, 0x6b, 0x3e, 0xb5, 0x30, 0x19, 0xd8, 0xce, 0xa3, 0x9a, 0xf7, 0xb3, - 0x4b, 0x6a, 0x9c, 0x4c, 0xb9, 0xe2, 0xd3, 0x6b, 0x1d, 0x62, 0xda, 0x56, 0x1b, 0x3f, 0xc5, 0x9d, - 0x3e, 0xb1, 0x1d, 0xc6, 0xac, 0x54, 0xfd, 0xd7, 0x6e, 0xe7, 0x10, 0xf7, 0xb4, 0xb6, 0x46, 0x88, - 0x63, 0x1e, 0xf4, 0x09, 0xe6, 0xef, 0x2f, 0xf9, 0xef, 0x6d, 0xab, 0xdd, 0x39, 0xd4, 0x4c, 0xab, - 0xad, 0x6b, 0x44, 0xe3, 0x2f, 0x51, 0x20, 0xdb, 0xe7, 0x6a, 0xeb, 0xb8, 0x6b, 0x5a, 0xa6, 0xa7, - 0x89, 0xd3, 0xfc, 0xbf, 0x4f, 0x63, 0x75, 0xc9, 0x50, 0x7a, 0xfb, 0x89, 0x76, 0xd4, 0xf7, 0x75, - 0xac, 0x1a, 0xb6, 0x6d, 0x1c, 0xe1, 0x3a, 0x7d, 0x3a, 0xe8, 0x77, 0xeb, 0x9a, 0x75, 0xc2, 0x5e, - 0xa1, 0x1f, 0x80, 0xdc, 0x74, 0x8d, 0x2d, 0x07, 0x6b, 0x04, 0xef, 0xee, 0xb4, 0xf6, 0xa9, 0x91, - 0x72, 0x05, 0xa6, 0x3a, 0xde, 0x92, 0xed, 0x54, 0xa4, 0xab, 0xd2, 0xda, 0x8c, 0xea, 0x3f, 0xca, - 0x6b, 0xb0, 0x60, 0x75, 0x09, 0x23, 0xdb, 0xd4, 0x5c, 0x7c, 0xeb, 0x46, 0xa5, 0x44, 0x29, 0xa2, - 0xcb, 0xe8, 0x2d, 0x50, 0xe2, 0x92, 0x55, 0xec, 0x1e, 0xdb, 0x96, 0x8b, 0x65, 0x19, 0xce, 0x75, - 0x6c, 0x1d, 0x73, 0xf1, 0xf4, 0x37, 0xfa, 0x9d, 0x04, 0x4b, 0x01, 0x4b, 0x13, 0x13, 0xcd, 0x43, - 0x22, 0xc5, 0x96, 0xaf, 0xc2, 0x85, 0x40, 0xe9, 0x96, 0x27, 0x8c, 0x59, 0x12, 0x5e, 0xf4, 0xf8, - 0x89, 0xfd, 0x08, 0x5b, 0x77, 0xf5, 0x4a, 0x99, 0xf1, 0xf3, 0x47, 0x8f, 0xff, 0x80, 0xda, 0xba, - 0xbb, 0xd3, 0xba, 0xad, 0x11, 0xad, 0x72, 0x8e, 0xf1, 0x87, 0x16, 0xd1, 0x8f, 0x61, 0x35, 0x66, - 0x54, 0xe0, 0x46, 0xcc, 0x04, 0x29, 0xc3, 0x84, 0x52, 0xc8, 0x04, 0xf4, 0x07, 0x09, 0xde, 0x18, - 0x4a, 0xef, 0x1f, 0x11, 0xf3, 0x6c, 0xfc, 0x2e, 0x17, 0xf7, 0xfb, 0x21, 0x54, 0x93, 0x2d, 0x1b, - 0xc7, 0x79, 0xd1, 0x0e, 0xf4, 0x31, 0x2c, 0xee, 0x1d, 0x63, 0xcb, 0xc5, 0x5a, 0xc3, 0x0f, 0x5b, - 0xf9, 0x0a, 0x00, 0x71, 0x34, 0x93, 0xb4, 0xc9, 0xc9, 0xb1, 0x2f, 0x70, 0x86, 0xae, 0xb4, 0x4e, - 0x8e, 0xb1, 0xbc, 0x0e, 0xe7, 0x69, 0x60, 0x53, 0x97, 0x67, 0x37, 0x96, 0x6b, 0x2c, 0xb2, 0x6b, - 0x7e, 0x64, 0xd7, 0x1a, 0xd6, 0x89, 0xca, 0x48, 0xd0, 0x27, 0x50, 0x79, 0x70, 0xac, 0x6b, 0x04, - 0xeb, 0x51, 0x2d, 0xae, 0xbc, 0x0b, 0x10, 0xa4, 0x8a, 0x5b, 0x91, 0xae, 0x96, 0xd7, 0x66, 0x37, - 0x6a, 0xb5, 0xb4, 0x3c, 0xaf, 0x45, 0x85, 0xa8, 0x82, 0x04, 0xf4, 0x73, 0x58, 0xf2, 0x75, 0x39, - 0xa6, 0x61, 0x5a, 0x1e, 0x82, 0xb2, 0x0a, 0x53, 0x36, 0x63, 0xa2, 0x8e, 0xcc, 0x6e, 0xdc, 0x4a, - 0xd7, 0x30, 0xca, 0xda, 0x3b, 0x13, 0xaa, 0x2f, 0x68, 0x73, 0x05, 0x2e, 0xf6, 0x19, 0x59, 0xdb, - 0xa6, 0x9a, 0x68, 0xb9, 0x40, 0xef, 0xc1, 0x42, 0x83, 0x96, 0x9f, 0x8f, 0x34, 0x47, 0xeb, 0x61, - 0x82, 0x1d, 0x2f, 0xc3, 0x2c, 0xad, 0x17, 0x64, 0x98, 0xf7, 0x5b, 0x5e, 0x16, 0xe1, 0x9b, 0xf1, - 0x81, 0xfa, 0xb7, 0x04, 0x6f, 0x36, 0x5d, 0xe3, 0x23, 0xec, 0x74, 0x6d, 0xa7, 0xc7, 0xe4, 0x6c, - 0x9e, 0x34, 0xf4, 0x9e, 0x69, 0xa5, 0x44, 0xe1, 0x35, 0x5a, 0x09, 0xda, 0xbc, 0xac, 0x75, 0x4e, - 0x91, 0x7f, 0x6f, 0xc0, 0x24, 0xab, 0x99, 0x3c, 0x00, 0xf9, 0x93, 0xbc, 0x02, 0x93, 0x0e, 0xee, - 0xb6, 0x4d, 0xbd, 0x72, 0x9e, 0x99, 0xe9, 0xe0, 0xee, 0x5d, 0x5d, 0x6e, 0x02, 0x1c, 0xfb, 0xde, - 0xb9, 0x95, 0x49, 0xba, 0x67, 0xd7, 0xd3, 0x11, 0x8d, 0x60, 0xa2, 0x0a, 0x02, 0x90, 0x0e, 0xff, - 0x37, 0xc2, 0xe9, 0x20, 0xc0, 0x13, 0x5c, 0x4c, 0x0c, 0xf1, 0x55, 0x98, 0xa6, 0x3e, 0x79, 0x26, - 0x47, 0x12, 0xfc, 0xb9, 0x44, 0xcb, 0x20, 0x57, 0x43, 0xf3, 0xa8, 0xe5, 0xbd, 0x62, 0x0a, 0x5f, - 0x35, 0xbc, 0xe5, 0x51, 0xf0, 0x96, 0xb3, 0xe1, 0xad, 0x46, 0xe0, 0xf5, 0x5e, 0x89, 0x78, 0xfd, - 0x14, 0xd0, 0x68, 0x47, 0x5e, 0x55, 0x4d, 0x10, 0x8c, 0x2e, 0x8b, 0x46, 0xa3, 0xff, 0x48, 0x70, - 0x25, 0x49, 0xfd, 0x9e, 0x85, 0x33, 0xa1, 0x1c, 0xb7, 0x5e, 0x8e, 0x8a, 0xd3, 0x65, 0x60, 0xd0, - 0x9d, 0x69, 0x98, 0x1a, 0xf0, 0xb5, 0x54, 0xbf, 0x5f, 0x59, 0x35, 0xfe, 0xbb, 0x24, 0x26, 0xc4, - 0x50, 0x13, 0xfd, 0xf5, 0x3f, 0xc5, 0xb8, 0x9c, 0x89, 0x71, 0x35, 0x86, 0x71, 0x38, 0x56, 0x3f, - 0x93, 0xe0, 0xeb, 0x19, 0xbe, 0x9c, 0x79, 0xc4, 0x3e, 0x0f, 0x45, 0xec, 0x9e, 0x85, 0xcf, 0x16, - 0x4d, 0xe9, 0xec, 0xd0, 0xfc, 0x85, 0x18, 0x82, 0x09, 0x8e, 0xbc, 0xaa, 0xdb, 0xd0, 0x48, 0x28, - 0xff, 0x21, 0xc1, 0x42, 0xd3, 0x35, 0x1a, 0xba, 0x3e, 0xbc, 0x28, 0x8c, 0x06, 0xcf, 0xbf, 0x5a, - 0x96, 0x86, 0x57, 0x4b, 0xf9, 0x1e, 0x4c, 0x1f, 0xd9, 0x1d, 0x8d, 0xcb, 0x96, 0xd6, 0xe6, 0x37, - 0xea, 0x19, 0x29, 0xe9, 0x2b, 0xba, 0xcf, 0xd9, 0xd4, 0x40, 0x80, 0xfc, 0x21, 0x5c, 0xe2, 0x57, - 0x25, 0x3c, 0xa0, 0x74, 0x7d, 0x82, 0x6f, 0xe3, 0x2e, 0x66, 0xd7, 0x72, 0x5e, 0x24, 0xd2, 0x48, - 0xd0, 0x6f, 0xd8, 0x89, 0x2b, 0x3a, 0x94, 0x76, 0x33, 0x0e, 0xce, 0xf2, 0x92, 0x70, 0x96, 0xdf, - 0x83, 0x59, 0xdb, 0xa2, 0x1d, 0x03, 0xbd, 0xc3, 0x95, 0xe9, 0x0d, 0xe3, 0x1b, 0x19, 0x77, 0x18, - 0x6b, 0xcb, 0x67, 0x50, 0x45, 0x6e, 0xd4, 0x85, 0x39, 0x6e, 0x4f, 0x56, 0x68, 0x26, 0xa1, 0xbb, - 0x06, 0x0b, 0x43, 0x6f, 0x3b, 0x01, 0xc8, 0x33, 0x6a, 0x74, 0x19, 0xfd, 0x4a, 0x82, 0x65, 0x51, - 0xd1, 0xeb, 0xf5, 0xfa, 0x63, 0xb8, 0xd0, 0x74, 0x8d, 0x7d, 0x4c, 0xbc, 0x96, 0xe5, 0x81, 0x63, - 0x16, 0x74, 0xbb, 0x0a, 0x60, 0xe1, 0x01, 0xe7, 0xe5, 0x1e, 0x0b, 0x2b, 0xe8, 0x7d, 0x58, 0x09, - 0x89, 0x4f, 0x75, 0x76, 0x11, 0xca, 0x7d, 0xc7, 0xe4, 0xf2, 0xbd, 0x9f, 0xe8, 0x31, 0x0d, 0xfa, - 0x96, 0x6d, 0x18, 0x47, 0xf8, 0x54, 0xdb, 0x22, 0xa6, 0x93, 0x78, 0x6e, 0x55, 0x60, 0x4a, 0x37, - 0x5d, 0xed, 0xe0, 0x08, 0xd3, 0x58, 0x9d, 0x56, 0xfd, 0x47, 0xf4, 0x47, 0x16, 0x97, 0xa2, 0xce, - 0xc2, 0x3b, 0xf4, 0x7d, 0x58, 0x12, 0x30, 0x16, 0xc2, 0xa1, 0xd0, 0x3e, 0xc5, 0x65, 0x20, 0x87, - 0x86, 0xce, 0xd6, 0xa1, 0x66, 0x19, 0x98, 0x95, 0x93, 0xbd, 0x81, 0x85, 0x9d, 0xb1, 0xcb, 0xa8, - 0x02, 0xd3, 0x16, 0x1e, 0x50, 0x59, 0x1c, 0xa8, 0xe0, 0x19, 0x3d, 0x84, 0xcb, 0x49, 0x3a, 0x0b, - 0x56, 0x3c, 0x51, 0x43, 0x29, 0xa2, 0x61, 0x0b, 0x2e, 0x35, 0x5d, 0x43, 0xc5, 0xee, 0x89, 0xd5, - 0x19, 0x5e, 0xf9, 0x8b, 0x29, 0x40, 0x5f, 0xb0, 0xce, 0x79, 0xff, 0xd0, 0x1e, 0x08, 0x4d, 0xce, - 0xb8, 0xc0, 0xc8, 0x70, 0xce, 0x3d, 0xb4, 0x07, 0x14, 0x94, 0x69, 0x95, 0xfe, 0x96, 0xaf, 0xc1, - 0x7c, 0xd0, 0xf6, 0xec, 0x6a, 0x3d, 0xec, 0xf2, 0x13, 0x26, 0xb2, 0x8a, 0xde, 0xa5, 0x5d, 0x73, - 0xd8, 0xa0, 0xc0, 0xa9, 0xcb, 0x30, 0x13, 0x68, 0xf2, 0x7b, 0xbc, 0x60, 0x01, 0xd9, 0x70, 0x31, - 0x01, 0x91, 0xb3, 0x3b, 0x2d, 0xd1, 0x5f, 0xd8, 0xf1, 0xb2, 0x8f, 0xc9, 0x0e, 0xc6, 0x5b, 0xb6, - 0xd5, 0x35, 0x8d, 0x14, 0x6d, 0x35, 0x90, 0x2d, 0x3c, 0x08, 0x28, 0x43, 0x43, 0x90, 0x84, 0x37, - 0xf2, 0x1d, 0x80, 0x2e, 0xc6, 0xfb, 0xfd, 0x83, 0x4f, 0x70, 0x87, 0xf0, 0xc3, 0x67, 0x2d, 0x3d, - 0x11, 0x76, 0x02, 0x7a, 0x55, 0xe0, 0x45, 0xab, 0x34, 0x39, 0x45, 0x33, 0x7d, 0x44, 0xd1, 0x9f, - 0x24, 0x98, 0x67, 0xef, 0x9a, 0xa6, 0x45, 0xb4, 0x3e, 0x39, 0x1c, 0x1b, 0xaf, 0x7b, 0x30, 0xeb, - 0xc9, 0xb1, 0x1d, 0xf3, 0x53, 0xdc, 0xb2, 0xb9, 0xe1, 0x19, 0x19, 0xdc, 0x18, 0x32, 0xa8, 0x22, - 0x37, 0xfa, 0x80, 0x8e, 0x39, 0x04, 0xf3, 0x0a, 0x06, 0xb8, 0xc1, 0x26, 0x43, 0x34, 0x0f, 0xf7, - 0x1c, 0x23, 0x2b, 0xf1, 0x2b, 0x30, 0x65, 0x3b, 0xc6, 0xee, 0xb0, 0x34, 0xf9, 0x8f, 0x5e, 0xcd, - 0x26, 0xf6, 0x6e, 0x38, 0xdd, 0x85, 0x15, 0xd4, 0x63, 0xd3, 0x9e, 0x90, 0xa2, 0xc0, 0x56, 0x41, - 0xac, 0x14, 0x16, 0xab, 0xc0, 0xb4, 0x7d, 0xa4, 0x87, 0x32, 0xdc, 0x7f, 0x4e, 0xad, 0x2f, 0x0e, - 0x54, 0x18, 0x2e, 0xf4, 0x78, 0x20, 0x8e, 0x89, 0x9f, 0x68, 0x47, 0x4d, 0x4c, 0x0e, 0x6d, 0x3d, - 0xc5, 0xbd, 0x2a, 0x80, 0x1b, 0xdd, 0x3d, 0x61, 0x85, 0xe6, 0x17, 0x1e, 0x30, 0x31, 0x54, 0xe5, - 0x79, 0x75, 0xb8, 0x80, 0x1e, 0xc2, 0xd5, 0x51, 0x3a, 0x03, 0x4f, 0xc3, 0x1a, 0xa4, 0x74, 0x0d, - 0x25, 0x9e, 0xc1, 0x81, 0x86, 0x3e, 0xab, 0x46, 0x98, 0xb0, 0x61, 0x08, 0xad, 0xea, 0x63, 0xb8, - 0x73, 0x0d, 0xe6, 0x3d, 0xc0, 0x86, 0xb2, 0x38, 0x8c, 0x91, 0x55, 0xd4, 0x61, 0x35, 0x27, 0xa4, - 0x36, 0xb7, 0x47, 0x71, 0x25, 0xa5, 0x44, 0x25, 0xcf, 0xd8, 0x0d, 0x66, 0xa8, 0xc5, 0xb6, 0x88, - 0xa3, 0x75, 0xc8, 0x18, 0xfe, 0xb1, 0x8a, 0xe2, 0x0b, 0x6a, 0xe8, 0xba, 0x83, 0x5d, 0x97, 0xfb, - 0x98, 0xf0, 0x06, 0x59, 0xf4, 0x50, 0x8a, 0x59, 0x90, 0xdb, 0xd5, 0x64, 0x7d, 0xa5, 0x91, 0xfa, - 0x9e, 0x49, 0x7e, 0x94, 0x06, 0xe5, 0x78, 0xef, 0x09, 0x76, 0x4c, 0xdd, 0xb4, 0x8c, 0x31, 0xdc, - 0x5e, 0x87, 0x45, 0x0f, 0x5b, 0x5f, 0x52, 0xeb, 0xe4, 0x18, 0xf3, 0x60, 0x8d, 0xad, 0xa3, 0xae, - 0x1f, 0xb3, 0x71, 0x0b, 0x72, 0xbb, 0x8d, 0x60, 0x4e, 0x94, 0xcb, 0x2d, 0x0a, 0xad, 0x21, 0xcb, - 0xdf, 0x5c, 0x7f, 0xd8, 0xb9, 0x63, 0x3b, 0x3d, 0x8d, 0x8c, 0x9d, 0x8b, 0x4c, 0x0c, 0xdf, 0xd3, - 0xe1, 0x02, 0xfa, 0x89, 0xbf, 0x95, 0x61, 0x7d, 0x05, 0xf3, 0x90, 0x4b, 0x2f, 0x45, 0xa5, 0x7f, - 0xce, 0xae, 0x73, 0x6c, 0x86, 0xcb, 0x6e, 0x51, 0xdb, 0xfc, 0xeb, 0xc4, 0xd8, 0xc7, 0xc3, 0x1a, - 0x2c, 0xf8, 0x5f, 0x3a, 0xc2, 0x11, 0x1b, 0x5d, 0x46, 0x8f, 0xe9, 0x5c, 0x21, 0xc9, 0x88, 0x82, - 0xd7, 0xa8, 0x04, 0x95, 0xa5, 0x64, 0x95, 0xdc, 0x71, 0x36, 0x50, 0x7d, 0xcd, 0x8e, 0x27, 0x19, - 0x71, 0xd6, 0x8e, 0xdf, 0xc6, 0x47, 0xf8, 0xb5, 0x3b, 0x9e, 0x64, 0xc4, 0x99, 0x39, 0xfe, 0x67, - 0x56, 0xa3, 0x18, 0xd8, 0x4c, 0x42, 0x9e, 0x59, 0x41, 0x3e, 0xcf, 0x77, 0xa0, 0xca, 0x2e, 0x73, - 0x7c, 0x2f, 0xe3, 0x3d, 0x3f, 0x03, 0x22, 0x83, 0x0a, 0xfd, 0x55, 0xa2, 0x65, 0x2c, 0xd1, 0xc8, - 0x82, 0xc8, 0x24, 0x75, 0x5e, 0x2a, 0x5c, 0xb0, 0xf0, 0x60, 0xf8, 0x0d, 0x90, 0x77, 0x5d, 0x19, - 0xc3, 0xc7, 0xa8, 0x1d, 0x5e, 0x41, 0x0c, 0x9e, 0xd0, 0x67, 0xec, 0x6e, 0x2c, 0x06, 0xf1, 0xd8, - 0x70, 0xd6, 0x40, 0x3e, 0x10, 0x81, 0x12, 0x7b, 0xd4, 0x84, 0x37, 0x68, 0x3f, 0x96, 0xcc, 0xe3, - 0x83, 0xb5, 0xfe, 0x1e, 0x2c, 0xc5, 0x66, 0x3c, 0xf2, 0x12, 0x5c, 0xd8, 0xdd, 0x69, 0xb5, 0x1b, - 0xad, 0x96, 0x7a, 0x77, 0xf3, 0x41, 0x6b, 0x7b, 0x71, 0x42, 0xbe, 0x08, 0x0b, 0xad, 0xbd, 0x7b, - 0xdb, 0xbb, 0xc2, 0xa2, 0xb4, 0x8e, 0x60, 0x56, 0xb8, 0xea, 0xca, 0x00, 0x93, 0xfb, 0x3f, 0xdc, - 0x6f, 0x6d, 0x37, 0x17, 0x27, 0xe4, 0x29, 0x28, 0x37, 0xee, 0xdf, 0x5f, 0x94, 0xd6, 0xbf, 0x02, - 0x30, 0xbc, 0xc7, 0xcb, 0x2b, 0xb0, 0xb4, 0xa5, 0x6e, 0x37, 0x5a, 0xdb, 0x6d, 0x4f, 0xc1, 0xfe, - 0xd6, 0x9d, 0xed, 0x66, 0x63, 0x71, 0x62, 0xe3, 0xf9, 0x2a, 0x94, 0x9b, 0xae, 0x21, 0xff, 0x0c, - 0x16, 0xa2, 0xdf, 0x60, 0xdf, 0x4a, 0xdf, 0xb6, 0xf8, 0xb7, 0x55, 0xe5, 0x9d, 0xa2, 0x1c, 0x01, - 0x8c, 0x9f, 0xc2, 0x7c, 0xe4, 0xab, 0x6b, 0x3d, 0xa7, 0x2c, 0x9f, 0x41, 0xf9, 0x4e, 0x41, 0x86, - 0x40, 0xf7, 0xaf, 0x25, 0x58, 0x4e, 0xfc, 0xf4, 0x74, 0x33, 0x53, 0x62, 0x12, 0x9b, 0xf2, 0xfe, - 0xa9, 0xd8, 0x02, 0x73, 0x08, 0xcc, 0x85, 0xe6, 0x8c, 0xd7, 0x33, 0xc5, 0x89, 0xe4, 0xca, 0xcd, - 0x42, 0xe4, 0x81, 0xd6, 0x47, 0x30, 0x33, 0x1c, 0xbe, 0xad, 0xe7, 0x92, 0x41, 0x69, 0x95, 0x8d, - 0xfc, 0xb4, 0x81, 0x32, 0x0b, 0x40, 0x98, 0x79, 0x7d, 0x33, 0x53, 0xc2, 0x90, 0x58, 0x79, 0xbb, - 0x00, 0xb1, 0x08, 0x69, 0x68, 0x8a, 0x95, 0x0d, 0xa9, 0x48, 0x9e, 0x03, 0xd2, 0xc4, 0x79, 0xd5, - 0xe7, 0x12, 0x2c, 0xc5, 0x87, 0x45, 0xd9, 0x78, 0xc5, 0x78, 0x94, 0xef, 0x16, 0xe7, 0x09, 0xac, - 0x78, 0x26, 0xc1, 0x62, 0x6c, 0x94, 0xf1, 0xed, 0x4c, 0x81, 0x51, 0x16, 0xe5, 0xdd, 0xc2, 0x2c, - 0x62, 0x72, 0x47, 0x06, 0x43, 0xd9, 0xc9, 0x1d, 0x66, 0xc8, 0x91, 0xdc, 0x23, 0x26, 0x3d, 0x04, - 0xe6, 0x42, 0x63, 0x95, 0xeb, 0x79, 0xe2, 0x27, 0x20, 0xcf, 0xb1, 0xf5, 0x49, 0xd3, 0x10, 0xf9, - 0x31, 0xcc, 0x8a, 0x93, 0x90, 0x6f, 0xe5, 0x91, 0xe2, 0x53, 0x2b, 0x37, 0x8a, 0x50, 0x87, 0x2a, - 0x68, 0x78, 0x3a, 0x51, 0xcf, 0x19, 0x35, 0x3e, 0x43, 0x9e, 0x0a, 0x9a, 0x3c, 0x96, 0xf8, 0xa5, - 0x04, 0x17, 0x93, 0xfe, 0x41, 0x72, 0x23, 0x6f, 0x49, 0x16, 0xb9, 0x94, 0xef, 0x9d, 0x86, 0x2b, - 0xb0, 0xe5, 0xf7, 0x12, 0xbc, 0x39, 0xea, 0x63, 0xf7, 0x3b, 0x79, 0x2b, 0x73, 0x94, 0x53, 0xf9, - 0xf0, 0xb4, 0x9c, 0x81, 0x5d, 0x5f, 0x48, 0xb0, 0x92, 0x3c, 0x66, 0xb9, 0x95, 0x67, 0xbf, 0xe3, - 0x7c, 0xca, 0x07, 0xa7, 0xe3, 0x0b, 0xa5, 0x65, 0x78, 0x42, 0x52, 0xcf, 0x23, 0x51, 0x60, 0xc8, - 0x93, 0x96, 0xc9, 0xc3, 0x10, 0xaf, 0x36, 0xc6, 0x27, 0x18, 0x1b, 0x05, 0xc4, 0x71, 0x9e, 0x1c, - 0xb5, 0x71, 0xf4, 0x9c, 0x82, 0xef, 0x49, 0xc2, 0x50, 0x21, 0xd7, 0x9e, 0xc4, 0xf9, 0xf2, 0xed, - 0x49, 0xca, 0x08, 0x81, 0xe3, 0x12, 0x69, 0xfe, 0x73, 0xe1, 0x12, 0xe6, 0xc9, 0x87, 0xcb, 0x88, - 0xa6, 0xdf, 0xbb, 0x11, 0x25, 0xf6, 0xec, 0x37, 0x73, 0xa6, 0x66, 0x98, 0x2d, 0xc7, 0x8d, 0x28, - 0xb5, 0x39, 0xf7, 0xcc, 0x49, 0xec, 0xa4, 0xb3, 0xcd, 0x49, 0x62, 0xcb, 0x61, 0x4e, 0x6a, 0xcb, - 0xec, 0x99, 0x93, 0xd8, 0xdf, 0x66, 0x9b, 0x93, 0xc4, 0x96, 0xc3, 0x9c, 0xd4, 0x46, 0xd6, 0x0b, - 0xe2, 0xe4, 0xae, 0xf3, 0x56, 0x4e, 0x3f, 0x23, 0x7c, 0x39, 0x82, 0x38, 0xbd, 0x81, 0x24, 0x30, - 0x17, 0x6a, 0xd7, 0xae, 0x17, 0xc2, 0x5b, 0x29, 0xb6, 0xab, 0xbe, 0xd6, 0xcd, 0xbb, 0x7f, 0x7b, - 0x51, 0x95, 0xbe, 0x7c, 0x51, 0x95, 0xfe, 0xf5, 0xa2, 0x2a, 0xfd, 0xf6, 0x65, 0x75, 0xe2, 0xcb, - 0x97, 0xd5, 0x89, 0x7f, 0xbe, 0xac, 0x4e, 0xfc, 0xa8, 0x6e, 0x98, 0xe4, 0xb0, 0x7f, 0x50, 0xeb, - 0xd8, 0xbd, 0x7a, 0x48, 0x74, 0x9d, 0x89, 0xae, 0x3f, 0xad, 0x07, 0x7f, 0xb9, 0x3d, 0x39, 0xc6, - 0xee, 0xc1, 0x24, 0xfd, 0x37, 0xdf, 0xdb, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xfc, 0x82, - 0x68, 0x8a, 0x2b, 0x00, 0x00, +func init() { proto.RegisterFile("nftmngr/latest/tx.proto", fileDescriptor_5470826da8d79609) } + +var fileDescriptor_5470826da8d79609 = []byte{ + // 2139 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x5f, 0x6f, 0xdb, 0xd6, + 0x15, 0x37, 0xa5, 0xc4, 0xb1, 0x8f, 0x1d, 0xff, 0x61, 0xec, 0x44, 0x51, 0x53, 0x2d, 0xb8, 0x6b, + 0x33, 0xd7, 0x5b, 0xa4, 0xce, 0x4d, 0xb2, 0x76, 0x5d, 0x83, 0xca, 0x8e, 0x8d, 0x04, 0x89, 0xec, + 0x42, 0x52, 0x80, 0x75, 0x6b, 0xa0, 0xd0, 0xd2, 0x15, 0xc5, 0x46, 0x22, 0x55, 0xf2, 0x2a, 0xb2, + 0x8b, 0xfd, 0x49, 0xd1, 0xa7, 0x01, 0x03, 0x3a, 0x60, 0x18, 0xb0, 0x97, 0xbd, 0x0c, 0xd8, 0x77, + 0xd8, 0x37, 0xe8, 0xf6, 0x32, 0xf4, 0x71, 0x8f, 0x43, 0xf2, 0x11, 0x06, 0xec, 0x79, 0xe0, 0xbd, + 0x97, 0xd4, 0x25, 0x79, 0x45, 0x52, 0x96, 0xdd, 0xbe, 0x89, 0x97, 0xe7, 0xfc, 0xce, 0x9f, 0x7b, + 0xce, 0xb9, 0xf7, 0x1c, 0x0a, 0xae, 0x98, 0x6d, 0xd2, 0x33, 0x75, 0xbb, 0xd4, 0xd5, 0x08, 0x76, + 0x48, 0x89, 0x1c, 0x15, 0xfb, 0xb6, 0x45, 0x2c, 0xf5, 0x1a, 0xe9, 0x60, 0xc7, 0x38, 0x32, 0x31, + 0x19, 0x5a, 0xf6, 0xb3, 0xa2, 0xfb, 0xb3, 0x4d, 0x8a, 0x9c, 0x3a, 0xff, 0x46, 0x88, 0x4d, 0x6b, + 0x12, 0xc3, 0x32, 0x1b, 0xf8, 0x08, 0x37, 0x07, 0xc4, 0xb2, 0x19, 0x46, 0xfe, 0xcd, 0x10, 0x95, + 0xd3, 0xec, 0xe0, 0x9e, 0xd6, 0xd0, 0x08, 0xb1, 0x8d, 0xc3, 0x01, 0xc1, 0x9c, 0x0c, 0x85, 0xc8, + 0x2c, 0xb3, 0xd1, 0xec, 0x68, 0x86, 0xd9, 0x68, 0x69, 0x44, 0xe3, 0x34, 0x6f, 0x85, 0x05, 0x7a, + 0x18, 0x8d, 0x16, 0x6e, 0x1b, 0xa6, 0xe1, 0x8a, 0xe7, 0xa4, 0x1b, 0x21, 0x52, 0xb3, 0x4d, 0x46, + 0x22, 0x1b, 0xcf, 0xb5, 0xee, 0xc0, 0x13, 0x7c, 0x55, 0xb7, 0x2c, 0xbd, 0x8b, 0x4b, 0xf4, 0xe9, + 0x70, 0xd0, 0x2e, 0x69, 0xe6, 0x31, 0x7b, 0x85, 0x7e, 0x0e, 0x6a, 0xc5, 0xd1, 0x77, 0x6c, 0xac, + 0x11, 0xbc, 0xbf, 0x57, 0xaf, 0x51, 0xcd, 0xd5, 0x1c, 0x5c, 0x68, 0xba, 0x4b, 0x96, 0x9d, 0x53, + 0xae, 0x2b, 0x1b, 0xf3, 0x55, 0xef, 0x51, 0xdd, 0x80, 0x65, 0xb3, 0x4d, 0x18, 0xd9, 0xb6, 0xe6, + 0xe0, 0x3b, 0xb7, 0x72, 0x19, 0x4a, 0x11, 0x5e, 0x46, 0x6f, 0x43, 0x3e, 0x8a, 0x5c, 0xc5, 0x4e, + 0xdf, 0x32, 0x1d, 0xac, 0xaa, 0x70, 0xae, 0x69, 0xb5, 0x30, 0x87, 0xa7, 0xbf, 0xd1, 0x1f, 0x15, + 0x58, 0xf5, 0x59, 0x2a, 0x98, 0x68, 0xae, 0x5f, 0x62, 0x74, 0x79, 0x03, 0x2e, 0xfa, 0x42, 0x77, + 0x5c, 0x30, 0xa6, 0x49, 0x70, 0xd1, 0xe5, 0x27, 0xd6, 0x33, 0x6c, 0x3e, 0x68, 0xe5, 0xb2, 0x8c, + 0x9f, 0x3f, 0xba, 0xfc, 0x87, 0x54, 0xd7, 0xfd, 0xbd, 0xfa, 0x3d, 0x8d, 0x68, 0xb9, 0x73, 0x8c, + 0x3f, 0xb0, 0x88, 0x7e, 0x09, 0x57, 0x23, 0x4a, 0xf9, 0x66, 0x44, 0x54, 0x50, 0x12, 0x54, 0xc8, + 0x04, 0x54, 0x40, 0x7f, 0x56, 0xe0, 0xf2, 0x08, 0x7d, 0xd0, 0x25, 0xc6, 0xd9, 0xd8, 0x9d, 0x9d, + 0xdc, 0xee, 0xa7, 0x50, 0x90, 0x6b, 0x36, 0x8d, 0xf1, 0xa2, 0x1e, 0xe8, 0x09, 0xac, 0x1c, 0xf4, + 0xb1, 0xe9, 0x60, 0xad, 0xec, 0x85, 0xad, 0xfa, 0x3a, 0x00, 0xb1, 0x35, 0x83, 0x34, 0xc8, 0x71, + 0xdf, 0x03, 0x9c, 0xa7, 0x2b, 0xf5, 0xe3, 0x3e, 0x56, 0x37, 0xe1, 0x3c, 0x0d, 0x6c, 0x6a, 0xf2, + 0xc2, 0xd6, 0x5a, 0x91, 0x45, 0x76, 0xd1, 0x8b, 0xec, 0x62, 0xd9, 0x3c, 0xae, 0x32, 0x12, 0xf4, + 0x29, 0xe4, 0x1e, 0xf7, 0x5b, 0x1a, 0xc1, 0xad, 0xb0, 0x14, 0x47, 0xdd, 0x07, 0xf0, 0x53, 0xc5, + 0xc9, 0x29, 0xd7, 0xb3, 0x1b, 0x0b, 0x5b, 0xc5, 0x62, 0x5c, 0x29, 0x28, 0x86, 0x41, 0xaa, 0x02, + 0x02, 0xfa, 0x0d, 0xac, 0x7a, 0xb2, 0x6c, 0x43, 0x37, 0x4c, 0xd7, 0x83, 0x6a, 0x15, 0x2e, 0x58, + 0x8c, 0x89, 0x1a, 0xb2, 0xb0, 0x75, 0x27, 0x5e, 0xc2, 0x38, 0x6d, 0xef, 0xcf, 0x54, 0x3d, 0xa0, + 0xed, 0x75, 0xb8, 0x34, 0x60, 0x64, 0x0d, 0x8b, 0x4a, 0xa2, 0xc5, 0x03, 0xbd, 0x0f, 0xcb, 0x65, + 0x5a, 0x9a, 0x3e, 0xd2, 0x6c, 0xad, 0x87, 0x09, 0xb6, 0xdd, 0x0c, 0x33, 0xb5, 0x9e, 0x9f, 0x61, + 0xee, 0x6f, 0x75, 0x4d, 0x74, 0xdf, 0xbc, 0xe7, 0xa8, 0xff, 0x2a, 0x70, 0xa5, 0xe2, 0xe8, 0x1f, + 0x61, 0xbb, 0x6d, 0xd9, 0x3d, 0x86, 0xb3, 0x7d, 0x5c, 0x6e, 0xf5, 0x0c, 0x33, 0x26, 0x0a, 0x6f, + 0xd0, 0x4a, 0xd0, 0xe0, 0xb5, 0xae, 0x79, 0x82, 0xfc, 0xbb, 0x0c, 0xb3, 0xac, 0x9e, 0xf2, 0x00, + 0xe4, 0x4f, 0xea, 0x3a, 0xcc, 0xda, 0xb8, 0xdd, 0x30, 0x5a, 0xb9, 0xf3, 0x4c, 0x4d, 0x1b, 0xb7, + 0x1f, 0xb4, 0xd4, 0x0a, 0x40, 0xdf, 0xb3, 0xce, 0xc9, 0xcd, 0xd2, 0x3d, 0xbb, 0x19, 0xef, 0xd1, + 0x90, 0x4f, 0xaa, 0x02, 0x00, 0x6a, 0xc1, 0xf7, 0xc6, 0x18, 0xed, 0x07, 0xb8, 0xc4, 0x44, 0x69, + 0x88, 0x5f, 0x85, 0x39, 0x6a, 0x93, 0xab, 0x72, 0x28, 0xc1, 0xbf, 0x56, 0x68, 0x19, 0xe4, 0x62, + 0x68, 0x1e, 0xd5, 0xdd, 0x57, 0x4c, 0xe0, 0x69, 0xbb, 0x37, 0x3b, 0xce, 0xbd, 0xd9, 0x64, 0xf7, + 0x16, 0x42, 0xee, 0x75, 0x5f, 0x89, 0xfe, 0xfa, 0x15, 0xa0, 0xf1, 0x86, 0x9c, 0x56, 0x4d, 0x10, + 0x94, 0xce, 0x8a, 0x4a, 0xa3, 0xff, 0x29, 0xf0, 0xba, 0x4c, 0xfc, 0x81, 0x89, 0x13, 0x5d, 0x39, + 0x6d, 0xbd, 0x1c, 0x17, 0xa7, 0x6b, 0xc0, 0x5c, 0x77, 0xa6, 0x61, 0xaa, 0xc3, 0x9b, 0xb1, 0x76, + 0x9f, 0x5a, 0x35, 0xfe, 0xa7, 0x22, 0x26, 0xc4, 0x48, 0x12, 0xfd, 0xf5, 0xad, 0xfa, 0x38, 0x9b, + 0xe8, 0xe3, 0x42, 0xc4, 0xc7, 0xc1, 0x58, 0xfd, 0x42, 0x81, 0x1f, 0x24, 0xd8, 0x72, 0xe6, 0x11, + 0xfb, 0x75, 0x20, 0x62, 0x0f, 0x4c, 0x7c, 0xb6, 0xde, 0x54, 0xce, 0xce, 0x9b, 0xbf, 0x15, 0x43, + 0x50, 0x62, 0xc8, 0x69, 0xdd, 0x86, 0xc6, 0xba, 0xf2, 0x5f, 0x0a, 0x2c, 0x57, 0x1c, 0xbd, 0xdc, + 0x6a, 0x8d, 0x2e, 0x0a, 0xe3, 0x9d, 0xe7, 0x5d, 0x2d, 0x33, 0xa3, 0xab, 0xa5, 0xfa, 0x10, 0xe6, + 0xba, 0x56, 0x53, 0xe3, 0xd8, 0xca, 0xc6, 0xd2, 0x56, 0x29, 0x21, 0x25, 0x3d, 0x41, 0x8f, 0x38, + 0x5b, 0xd5, 0x07, 0x50, 0x3f, 0x84, 0xd7, 0xf8, 0x55, 0x09, 0x0f, 0x29, 0xdd, 0x80, 0xe0, 0x7b, + 0xb8, 0x8d, 0xd9, 0xed, 0x9c, 0x17, 0x89, 0x38, 0x12, 0x54, 0xa6, 0x07, 0xae, 0x68, 0x4f, 0xdc, + 0xc5, 0xd8, 0x3f, 0xca, 0x33, 0xa3, 0xa3, 0x1c, 0xb5, 0x61, 0x91, 0x43, 0x24, 0x05, 0x93, 0xcc, + 0x1f, 0x1b, 0xb0, 0x3c, 0xd2, 0xaf, 0xe9, 0xbb, 0x65, 0xbe, 0x1a, 0x5e, 0x46, 0x77, 0x61, 0x4d, + 0x94, 0x33, 0xb1, 0x9e, 0x4f, 0xe0, 0x62, 0xc5, 0xd1, 0x6b, 0x98, 0xb8, 0x6d, 0xc1, 0x63, 0xdb, + 0x98, 0x50, 0xd1, 0x02, 0x80, 0x89, 0x87, 0x9c, 0x97, 0xeb, 0x28, 0xac, 0xa0, 0x0f, 0x60, 0x3d, + 0x00, 0x1f, 0xab, 0xdf, 0x0a, 0x64, 0x07, 0xb6, 0xc1, 0xf1, 0xdd, 0x9f, 0xc8, 0xa2, 0x81, 0x55, + 0xb7, 0x74, 0xbd, 0x8b, 0x4f, 0xe4, 0x48, 0x31, 0x64, 0xc5, 0xb3, 0xe1, 0x32, 0xcc, 0x3a, 0x44, + 0x23, 0x03, 0x87, 0x86, 0xc3, 0x5c, 0x95, 0x3f, 0xa1, 0x8f, 0xe9, 0xce, 0x8b, 0x02, 0x27, 0xf5, + 0xa8, 0x00, 0x9d, 0x0d, 0x40, 0xdb, 0x74, 0xa7, 0x76, 0x3a, 0x9a, 0xa9, 0x63, 0x96, 0x6e, 0x07, + 0x43, 0x13, 0xdb, 0x53, 0x97, 0x99, 0x3c, 0xcc, 0x99, 0x78, 0x48, 0xb1, 0xb8, 0x91, 0xfe, 0x33, + 0x7a, 0x0a, 0xd7, 0x64, 0x32, 0x27, 0xac, 0x08, 0xa2, 0x84, 0x4c, 0x48, 0xc2, 0x13, 0x78, 0xad, + 0xe2, 0xe8, 0x55, 0xec, 0x1c, 0x9b, 0xcd, 0xd1, 0x95, 0xf8, 0xd4, 0x1a, 0xb0, 0xaf, 0x58, 0xcf, + 0x59, 0xeb, 0x58, 0x43, 0xa1, 0x3d, 0x98, 0xd6, 0x65, 0x2a, 0x9c, 0x73, 0x3a, 0xd6, 0x90, 0x6f, + 0x10, 0xfd, 0xad, 0xde, 0x80, 0x25, 0xbf, 0x61, 0xd8, 0xd7, 0x7a, 0xd8, 0xe1, 0xb5, 0x39, 0xb4, + 0x8a, 0xde, 0xa3, 0xfd, 0x66, 0x50, 0x21, 0xdf, 0xdc, 0x6b, 0x30, 0xef, 0x4b, 0xf2, 0xba, 0x23, + 0x7f, 0x01, 0x59, 0x70, 0x49, 0xe2, 0xab, 0xb3, 0x3b, 0x67, 0xd0, 0xdf, 0x58, 0x61, 0xae, 0x61, + 0xb2, 0x87, 0xf1, 0x8e, 0x65, 0xb6, 0x0d, 0x3d, 0x46, 0x5a, 0x11, 0x54, 0x13, 0x0f, 0x7d, 0xca, + 0xc0, 0xf8, 0x40, 0xf2, 0x46, 0xbd, 0x0f, 0xd0, 0xc6, 0xb8, 0x36, 0x38, 0xfc, 0x14, 0x37, 0x09, + 0x2f, 0xdb, 0x1b, 0xf1, 0x65, 0x7b, 0xcf, 0xa7, 0xaf, 0x0a, 0xbc, 0xe8, 0x2a, 0xcd, 0x3a, 0x51, + 0x4d, 0xcf, 0xa3, 0xe8, 0x2f, 0x0a, 0x2c, 0xb1, 0x77, 0x15, 0xc3, 0x24, 0xda, 0x80, 0x74, 0xa6, + 0xf6, 0xd7, 0x43, 0x58, 0x70, 0x71, 0x2c, 0xdb, 0xf8, 0x1c, 0xd7, 0x2d, 0xae, 0xf8, 0x5b, 0x09, + 0xe7, 0xcd, 0x88, 0xa1, 0x2a, 0x72, 0xa3, 0xbb, 0x74, 0x40, 0x20, 0xa8, 0x37, 0x59, 0xe8, 0x23, + 0x9d, 0xcd, 0x54, 0x68, 0x86, 0x1e, 0xd8, 0x7a, 0x52, 0x49, 0xc8, 0xc1, 0x05, 0xcb, 0xd6, 0xf7, + 0x47, 0x35, 0xc7, 0x7b, 0x74, 0x2b, 0x31, 0xb1, 0xf6, 0x83, 0x85, 0x40, 0x58, 0x41, 0x3d, 0x36, + 0x27, 0x09, 0x08, 0xf2, 0x75, 0x15, 0x60, 0x95, 0x20, 0x6c, 0x1e, 0xe6, 0xac, 0x6e, 0x2b, 0x90, + 0xfb, 0xde, 0x73, 0x6c, 0xe5, 0xb1, 0x21, 0xc7, 0xfc, 0x42, 0x8b, 0x3e, 0xb1, 0x0d, 0xfc, 0x5c, + 0xeb, 0x56, 0x30, 0xe9, 0x58, 0xad, 0x18, 0xf3, 0x0a, 0x00, 0x4e, 0x78, 0xf7, 0x84, 0x15, 0x9a, + 0x5f, 0x78, 0xc8, 0x60, 0xa8, 0xc8, 0xf3, 0xd5, 0xd1, 0x02, 0x7a, 0x0a, 0xd7, 0xc7, 0xc9, 0xf4, + 0x2d, 0x0d, 0x4a, 0x50, 0xe2, 0x25, 0x64, 0x78, 0x06, 0xfb, 0x12, 0x06, 0xac, 0x1a, 0x61, 0xc2, + 0xc6, 0x08, 0x3b, 0x1d, 0x2d, 0xb6, 0x07, 0x4f, 0x32, 0xe7, 0x06, 0x2c, 0xb9, 0x0e, 0x1b, 0x61, + 0x71, 0x37, 0x86, 0x56, 0x51, 0x93, 0xd5, 0x9c, 0x80, 0xd8, 0xd4, 0x16, 0x45, 0x85, 0x64, 0xa4, + 0x42, 0x5e, 0x28, 0xf4, 0x80, 0x1a, 0x49, 0xb1, 0x4c, 0x62, 0x6b, 0x4d, 0x32, 0x85, 0x7d, 0xac, + 0xa2, 0x78, 0x40, 0xe5, 0x56, 0xcb, 0xc6, 0x8e, 0xc3, 0x6d, 0x94, 0xbc, 0x41, 0x26, 0x3d, 0xae, + 0x22, 0x1a, 0xa4, 0x36, 0x55, 0x2e, 0x2f, 0x33, 0x56, 0xde, 0x0b, 0xc5, 0x8b, 0x52, 0xbf, 0x1c, + 0x1f, 0x3c, 0xc7, 0xb6, 0xd1, 0x32, 0x4c, 0x7d, 0x0a, 0xb3, 0x37, 0x61, 0xc5, 0xf5, 0xad, 0x87, + 0x54, 0x3f, 0xee, 0x63, 0x1e, 0xac, 0x91, 0x75, 0xd4, 0xf6, 0x62, 0x36, 0xaa, 0x41, 0x6a, 0xb3, + 0x11, 0x2c, 0x8a, 0xb8, 0x5c, 0xa3, 0xc0, 0x1a, 0x32, 0xbd, 0xcd, 0xf5, 0xc6, 0x84, 0x7b, 0x96, + 0xdd, 0xd3, 0xc8, 0xd4, 0xb9, 0xc8, 0x60, 0xf8, 0x9e, 0x8e, 0x16, 0xd0, 0x27, 0xde, 0x56, 0x06, + 0xe5, 0x4d, 0x98, 0x87, 0x1c, 0x3d, 0x13, 0x46, 0xff, 0x92, 0x8d, 0xc4, 0xd8, 0xf4, 0x93, 0xdd, + 0xd3, 0x76, 0xf9, 0xcc, 0x7f, 0xea, 0xe3, 0x61, 0x03, 0x96, 0xbd, 0xef, 0x07, 0xc1, 0x88, 0x0d, + 0x2f, 0xa3, 0xcf, 0x68, 0x47, 0x2e, 0x53, 0x62, 0xc2, 0xfb, 0x8f, 0x44, 0x64, 0x46, 0x2e, 0x92, + 0x1b, 0xce, 0x46, 0x91, 0xdf, 0xb1, 0xe1, 0x32, 0x25, 0xce, 0xda, 0xf0, 0x7b, 0xb8, 0x8b, 0xbf, + 0x73, 0xc3, 0x65, 0x4a, 0x9c, 0x99, 0xe1, 0x7f, 0x65, 0x35, 0x8a, 0x39, 0x9b, 0x21, 0xa4, 0xe9, + 0xb2, 0xd3, 0x59, 0xbe, 0x07, 0x05, 0x76, 0x99, 0xe3, 0x7b, 0x19, 0xed, 0x96, 0x99, 0x23, 0x12, + 0xa8, 0xd0, 0x27, 0xb4, 0x8a, 0x49, 0x75, 0x9c, 0xd0, 0x31, 0xb2, 0x1e, 0xf5, 0x0b, 0x76, 0x8d, + 0x15, 0xe3, 0x6d, 0x6a, 0xcb, 0x8b, 0xa0, 0x1e, 0x8a, 0x36, 0x89, 0x4d, 0xa2, 0xe4, 0x0d, 0xaa, + 0x45, 0xf2, 0x6e, 0x7a, 0xc3, 0x36, 0xdf, 0x87, 0xd5, 0xc8, 0x20, 0x43, 0x5d, 0x85, 0x8b, 0xfb, + 0x7b, 0xf5, 0x46, 0xb9, 0x5e, 0xaf, 0x3e, 0xd8, 0x7e, 0x5c, 0xdf, 0x5d, 0x99, 0x51, 0x2f, 0xc1, + 0x72, 0xfd, 0xe0, 0xe1, 0xee, 0xbe, 0xb0, 0xa8, 0x6c, 0x22, 0x58, 0x10, 0x6e, 0xa5, 0x2a, 0xc0, + 0x6c, 0xed, 0xe3, 0x5a, 0x7d, 0xb7, 0xb2, 0x32, 0xa3, 0x5e, 0x80, 0x6c, 0xf9, 0xd1, 0xa3, 0x15, + 0x65, 0xf3, 0xfb, 0x00, 0xa3, 0x2b, 0xb7, 0xba, 0x0e, 0xab, 0x3b, 0xd5, 0xdd, 0x72, 0x7d, 0xb7, + 0xe1, 0x0a, 0xa8, 0xed, 0xdc, 0xdf, 0xad, 0x94, 0x57, 0x66, 0xb6, 0xfe, 0x9e, 0x83, 0x6c, 0xc5, + 0xd1, 0xd5, 0x5f, 0xc3, 0x72, 0xf8, 0x43, 0xe3, 0xdb, 0xf1, 0xb7, 0xe2, 0xe8, 0x07, 0xc4, 0xfc, + 0xbb, 0x93, 0x72, 0xf8, 0x6e, 0xfc, 0x1c, 0x96, 0x42, 0x9f, 0x16, 0x4b, 0x29, 0xb1, 0x3c, 0x86, + 0xfc, 0x4f, 0x26, 0x64, 0xf0, 0x65, 0xff, 0x5e, 0x81, 0x35, 0xe9, 0xf7, 0x95, 0xdb, 0x89, 0x88, + 0x32, 0xb6, 0xfc, 0x07, 0x27, 0x62, 0xf3, 0xd5, 0x21, 0xb0, 0x18, 0x18, 0xa6, 0xdd, 0x4c, 0x84, + 0x13, 0xc9, 0xf3, 0xb7, 0x27, 0x22, 0xf7, 0xa5, 0x3e, 0x83, 0xf9, 0xd1, 0xbc, 0x6a, 0x33, 0x15, + 0x06, 0xa5, 0xcd, 0x6f, 0xa5, 0xa7, 0xf5, 0x85, 0x99, 0x00, 0xc2, 0xd0, 0xe9, 0x87, 0x89, 0x08, + 0x23, 0xe2, 0xfc, 0x3b, 0x13, 0x10, 0x8b, 0x2e, 0x0d, 0x8c, 0x91, 0x92, 0x5d, 0x2a, 0x92, 0xa7, + 0x70, 0xa9, 0x74, 0x66, 0xf4, 0xa5, 0x02, 0xab, 0xd1, 0x89, 0x4f, 0xb2, 0xbf, 0x22, 0x3c, 0xf9, + 0x9f, 0x4e, 0xce, 0xe3, 0x6b, 0xf1, 0x42, 0x81, 0x95, 0xc8, 0xd4, 0xe1, 0xc7, 0x89, 0x80, 0x61, + 0x96, 0xfc, 0x7b, 0x13, 0xb3, 0x88, 0xc9, 0x1d, 0x9a, 0xe1, 0x24, 0x27, 0x77, 0x90, 0x21, 0x45, + 0x72, 0x8f, 0x19, 0xca, 0x10, 0x58, 0x0c, 0x4c, 0x40, 0x6e, 0xa6, 0x89, 0x1f, 0x9f, 0x3c, 0xc5, + 0xd6, 0xcb, 0x06, 0x17, 0xea, 0x67, 0xb0, 0x20, 0x0e, 0x2d, 0x7e, 0x94, 0x06, 0xc5, 0xa3, 0xce, + 0xdf, 0x9a, 0x84, 0x3a, 0x50, 0x41, 0x83, 0x83, 0x84, 0x52, 0xca, 0xa8, 0xf1, 0x18, 0xd2, 0x54, + 0x50, 0xf9, 0x04, 0xe1, 0x77, 0x0a, 0x5c, 0x92, 0xfd, 0x4d, 0xe2, 0x56, 0xda, 0x92, 0x2c, 0x72, + 0xe5, 0x7f, 0x76, 0x12, 0x2e, 0x5f, 0x97, 0x3f, 0x29, 0x70, 0x65, 0xdc, 0x17, 0xdd, 0x77, 0xd3, + 0x56, 0xe6, 0x30, 0x67, 0xfe, 0xc3, 0x93, 0x72, 0xfa, 0x7a, 0x7d, 0xa5, 0xc0, 0xba, 0x7c, 0x22, + 0x72, 0x27, 0xcd, 0x7e, 0x47, 0xf9, 0xf2, 0x77, 0x4f, 0xc6, 0x17, 0x48, 0xcb, 0xe0, 0x30, 0xa3, + 0x94, 0x06, 0x51, 0x60, 0x48, 0x93, 0x96, 0xf2, 0xb9, 0x85, 0x5b, 0x1b, 0xa3, 0xc3, 0x86, 0xad, + 0x09, 0xe0, 0x38, 0x4f, 0x8a, 0xda, 0x38, 0x7e, 0xa4, 0xc0, 0xf7, 0x44, 0xd2, 0xff, 0xa7, 0xda, + 0x93, 0x28, 0x5f, 0xba, 0x3d, 0x89, 0xe9, 0xf6, 0xb9, 0x5f, 0x42, 0x7d, 0x7a, 0x2a, 0xbf, 0x04, + 0x79, 0xd2, 0xf9, 0x65, 0x4c, 0x7f, 0xee, 0xde, 0x88, 0xa4, 0xed, 0xf5, 0xed, 0x94, 0xa9, 0x19, + 0x64, 0x4b, 0x71, 0x23, 0x8a, 0xed, 0xa3, 0x5d, 0x75, 0xa4, 0xbd, 0x5f, 0xb2, 0x3a, 0x32, 0xb6, + 0x14, 0xea, 0xc4, 0x36, 0x79, 0x6e, 0xd4, 0xc8, 0x3b, 0xb2, 0xe4, 0xa8, 0x91, 0xf2, 0xa5, 0x88, + 0x9a, 0xf8, 0xee, 0x8a, 0xc0, 0x62, 0xa0, 0x3f, 0xba, 0x99, 0x12, 0x2f, 0xf5, 0xfd, 0x46, 0xd6, + 0xfa, 0x6c, 0x3f, 0xf8, 0xc7, 0xcb, 0x82, 0xf2, 0xcd, 0xcb, 0x82, 0xf2, 0x9f, 0x97, 0x05, 0xe5, + 0x0f, 0xaf, 0x0a, 0x33, 0xdf, 0xbc, 0x2a, 0xcc, 0xfc, 0xfb, 0x55, 0x61, 0xe6, 0x17, 0x25, 0xdd, + 0x20, 0x9d, 0xc1, 0x61, 0xb1, 0x69, 0xf5, 0x4a, 0x01, 0xe8, 0x12, 0x83, 0x2e, 0x1d, 0x95, 0xbc, + 0xff, 0x47, 0x92, 0xe3, 0x3e, 0x76, 0x0e, 0x67, 0xe9, 0x7f, 0xc4, 0xde, 0xf9, 0x7f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x64, 0x3e, 0x67, 0x11, 0x0a, 0x2a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3871,7 +3851,7 @@ type MsgClient interface { SetAttributeOveriding(ctx context.Context, in *MsgSetAttributeOveriding, opts ...grpc.CallOption) (*MsgSetAttributeOveridingResponse, error) SetMetadataFormat(ctx context.Context, in *MsgSetMetadataFormat, opts ...grpc.CallOption) (*MsgSetMetadataFormatResponse, error) CreateActionExecutor(ctx context.Context, in *MsgCreateActionExecutor, opts ...grpc.CallOption) (*MsgCreateActionExecutorResponse, error) - UpdateActionExecutor(ctx context.Context, in *MsgUpdateActionExecutor, opts ...grpc.CallOption) (*MsgUpdateActionExecutorResponse, error) + // rpc UpdateActionExecutor(MsgUpdateActionExecutor) returns (MsgUpdateActionExecutorResponse); DeleteActionExecutor(ctx context.Context, in *MsgDeleteActionExecutor, opts ...grpc.CallOption) (*MsgDeleteActionExecutorResponse, error) UpdateSchemaAttribute(ctx context.Context, in *MsgUpdateSchemaAttribute, opts ...grpc.CallOption) (*MsgUpdateSchemaAttributeResponse, error) // rpc DeleteSchemaAttribute(MsgDeleteSchemaAttribute) returns (MsgDeleteSchemaAttributeResponse); @@ -4075,15 +4055,6 @@ func (c *msgClient) CreateActionExecutor(ctx context.Context, in *MsgCreateActio return out, nil } -func (c *msgClient) UpdateActionExecutor(ctx context.Context, in *MsgUpdateActionExecutor, opts ...grpc.CallOption) (*MsgUpdateActionExecutorResponse, error) { - out := new(MsgUpdateActionExecutorResponse) - err := c.cc.Invoke(ctx, "/thesixnetwork.sixnft.nftmngr.Msg/UpdateActionExecutor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) DeleteActionExecutor(ctx context.Context, in *MsgDeleteActionExecutor, opts ...grpc.CallOption) (*MsgDeleteActionExecutorResponse, error) { out := new(MsgDeleteActionExecutorResponse) err := c.cc.Invoke(ctx, "/thesixnetwork.sixnft.nftmngr.Msg/DeleteActionExecutor", in, out, opts...) @@ -4134,7 +4105,7 @@ type MsgServer interface { SetAttributeOveriding(context.Context, *MsgSetAttributeOveriding) (*MsgSetAttributeOveridingResponse, error) SetMetadataFormat(context.Context, *MsgSetMetadataFormat) (*MsgSetMetadataFormatResponse, error) CreateActionExecutor(context.Context, *MsgCreateActionExecutor) (*MsgCreateActionExecutorResponse, error) - UpdateActionExecutor(context.Context, *MsgUpdateActionExecutor) (*MsgUpdateActionExecutorResponse, error) + // rpc UpdateActionExecutor(MsgUpdateActionExecutor) returns (MsgUpdateActionExecutorResponse); DeleteActionExecutor(context.Context, *MsgDeleteActionExecutor) (*MsgDeleteActionExecutorResponse, error) UpdateSchemaAttribute(context.Context, *MsgUpdateSchemaAttribute) (*MsgUpdateSchemaAttributeResponse, error) // rpc DeleteSchemaAttribute(MsgDeleteSchemaAttribute) returns (MsgDeleteSchemaAttributeResponse); @@ -4208,9 +4179,6 @@ func (*UnimplementedMsgServer) SetMetadataFormat(ctx context.Context, req *MsgSe func (*UnimplementedMsgServer) CreateActionExecutor(ctx context.Context, req *MsgCreateActionExecutor) (*MsgCreateActionExecutorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateActionExecutor not implemented") } -func (*UnimplementedMsgServer) UpdateActionExecutor(ctx context.Context, req *MsgUpdateActionExecutor) (*MsgUpdateActionExecutorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateActionExecutor not implemented") -} func (*UnimplementedMsgServer) DeleteActionExecutor(ctx context.Context, req *MsgDeleteActionExecutor) (*MsgDeleteActionExecutorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteActionExecutor not implemented") } @@ -4603,24 +4571,6 @@ func _Msg_CreateActionExecutor_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Msg_UpdateActionExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateActionExecutor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateActionExecutor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/thesixnetwork.sixnft.nftmngr.Msg/UpdateActionExecutor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateActionExecutor(ctx, req.(*MsgUpdateActionExecutor)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_DeleteActionExecutor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgDeleteActionExecutor) if err := dec(in); err != nil { @@ -4763,10 +4713,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "CreateActionExecutor", Handler: _Msg_CreateActionExecutor_Handler, }, - { - MethodName: "UpdateActionExecutor", - Handler: _Msg_UpdateActionExecutor_Handler, - }, { MethodName: "DeleteActionExecutor", Handler: _Msg_DeleteActionExecutor_Handler, @@ -4781,7 +4727,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "nftmngr/tx.proto", + Metadata: "nftmngr/latest/tx.proto", } func (m *MsgCreateNFTSchema) Marshal() (dAtA []byte, err error) { @@ -5842,18 +5788,6 @@ func (m *MsgAddAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if m.OnchainData != nil { - { - size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) @@ -5935,18 +5869,6 @@ func (m *MsgAddActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.OnchainData != nil { - { - size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) @@ -6065,9 +5987,9 @@ func (m *MsgToggleAction) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.Disable { + if m.Status { i-- - if m.Disable { + if m.Status { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -6119,17 +6041,15 @@ func (m *MsgToggleActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if m.OnchainDataAction != nil { - { - size, err := m.OnchainDataAction.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) + if m.Status { + i-- + if m.Status { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } if len(m.Name) > 0 { i -= len(m.Name) @@ -6249,6 +6169,13 @@ func (m *MsgResyncAttributesResponse) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintTx(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } if len(m.NftSchemaCode) > 0 { i -= len(m.NftSchemaCode) copy(dAtA[i:], m.NftSchemaCode) @@ -7322,18 +7249,6 @@ func (m *MsgUpdateSchemaAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (in _ = i var l int _ = l - if m.NewAttribute != nil { - { - size, err := m.NewAttribute.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) @@ -7966,10 +7881,6 @@ func (m *MsgAddAttributeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -8008,10 +7919,6 @@ func (m *MsgAddActionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.OnchainData != nil { - l = m.OnchainData.Size() - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -8071,7 +7978,7 @@ func (m *MsgToggleAction) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.Disable { + if m.Status { n += 2 } return n @@ -8091,9 +7998,8 @@ func (m *MsgToggleActionResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.OnchainDataAction != nil { - l = m.OnchainDataAction.Size() - n += 1 + l + sovTx(uint64(l)) + if m.Status { + n += 2 } return n } @@ -8146,6 +8052,10 @@ func (m *MsgResyncAttributesResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -8650,10 +8560,6 @@ func (m *MsgUpdateSchemaAttributeResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.NewAttribute != nil { - l = m.NewAttribute.Size() - n += 1 + l + sovTx(uint64(l)) - } return n } @@ -12020,42 +11926,6 @@ func (m *MsgAddAttributeResponse) Unmarshal(dAtA []byte) error { } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OnchainData == nil { - m.OnchainData = &OnChainData{} - } - if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -12316,42 +12186,6 @@ func (m *MsgAddActionResponse) Unmarshal(dAtA []byte) error { } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OnchainData == nil { - m.OnchainData = &OnChainData{} - } - if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -12760,7 +12594,7 @@ func (m *MsgToggleAction) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -12777,7 +12611,7 @@ func (m *MsgToggleAction) Unmarshal(dAtA []byte) error { break } } - m.Disable = bool(v != 0) + m.Status = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -12893,10 +12727,10 @@ func (m *MsgToggleActionResponse) Unmarshal(dAtA []byte) error { m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnchainDataAction", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -12906,28 +12740,12 @@ func (m *MsgToggleActionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OnchainDataAction == nil { - m.OnchainDataAction = &OnChainData{} - } - if err := m.OnchainDataAction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + m.Status = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -13270,6 +13088,38 @@ func (m *MsgResyncAttributesResponse) Unmarshal(dAtA []byte) error { } m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -16668,42 +16518,6 @@ func (m *MsgUpdateSchemaAttributeResponse) Unmarshal(dAtA []byte) error { } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewAttribute", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.NewAttribute == nil { - m.NewAttribute = &SchemaAttribute{} - } - if err := m.NewAttribute.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) diff --git a/x/nftmngr/types/v062/action.pb.go b/x/nftmngr/types/v062/action.pb.go new file mode 100644 index 00000000..cb9633f1 --- /dev/null +++ b/x/nftmngr/types/v062/action.pb.go @@ -0,0 +1,589 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/action.proto + +package v062 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1c6ff85a6a54d009, []int{0} +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v062.AllowedActioner" json:"allowed_actioner,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_1c6ff85a6a54d009, []int{0} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v062.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v062.Action") +} + +func init() { proto.RegisterFile("nftmngr/v062/action.proto", fileDescriptor_1c6ff85a6a54d009) } + +var fileDescriptor_1c6ff85a6a54d009 = []byte{ + // 340 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x41, 0x4f, 0xf2, 0x30, + 0x18, 0xc7, 0x57, 0xe0, 0xe5, 0x7d, 0xdf, 0x1e, 0x84, 0x34, 0x1c, 0x2a, 0x31, 0x75, 0x7a, 0x22, + 0x1e, 0x5a, 0x83, 0xc6, 0xfb, 0xd0, 0x1d, 0x4c, 0x26, 0x24, 0x03, 0x63, 0xf0, 0xb2, 0x8c, 0x51, + 0xc6, 0x22, 0x5b, 0xc9, 0x56, 0x05, 0xbf, 0x85, 0x1f, 0x8b, 0x23, 0x37, 0x3d, 0x19, 0x03, 0x5f, + 0xc4, 0x74, 0x85, 0x03, 0x72, 0xf0, 0xf6, 0xef, 0xef, 0xf9, 0x3d, 0x4d, 0xfe, 0x79, 0xe0, 0x61, + 0x32, 0x92, 0x71, 0x12, 0xa6, 0xec, 0xe5, 0xfc, 0xaa, 0xc9, 0xfc, 0x40, 0x46, 0x22, 0xa1, 0xd3, + 0x54, 0x48, 0x81, 0x4e, 0xe4, 0x98, 0x67, 0xd1, 0x3c, 0xe1, 0x72, 0x26, 0xd2, 0x27, 0xaa, 0xe2, + 0x48, 0xd2, 0x8d, 0x4f, 0x95, 0x5f, 0xaf, 0x85, 0x22, 0x14, 0xb9, 0xcd, 0x54, 0xd2, 0x8b, 0xa7, + 0xef, 0x00, 0x96, 0xad, 0xfc, 0x27, 0x84, 0x60, 0x29, 0xf1, 0x63, 0x8e, 0x81, 0x09, 0x1a, 0xff, + 0xdd, 0x3c, 0x2b, 0x36, 0xe4, 0x59, 0x80, 0x0b, 0x9a, 0xa9, 0x8c, 0x30, 0xfc, 0x3b, 0x8c, 0x32, + 0x7f, 0x30, 0xe1, 0xb8, 0x68, 0x82, 0xc6, 0x3f, 0x77, 0xfb, 0x54, 0xf6, 0x6c, 0xcc, 0x13, 0x5c, + 0xd2, 0xb6, 0xca, 0x8a, 0x49, 0xc5, 0xfe, 0x98, 0x45, 0xc5, 0x54, 0x46, 0x01, 0xac, 0xfa, 0x93, + 0x89, 0x98, 0xf1, 0xa1, 0xa7, 0x5b, 0xf0, 0x14, 0x97, 0x4d, 0xd0, 0x38, 0x68, 0x36, 0xe9, 0xaf, + 0x45, 0xa8, 0xa5, 0x57, 0xad, 0xcd, 0x66, 0xab, 0xb4, 0xf8, 0x3c, 0x06, 0x6e, 0xc5, 0xdf, 0xc5, + 0x67, 0x31, 0xac, 0xfc, 0x30, 0x11, 0x86, 0x35, 0xcb, 0x71, 0x3a, 0x0f, 0xf6, 0x8d, 0x67, 0x5d, + 0xf7, 0x6e, 0x3b, 0x6d, 0xdb, 0xf5, 0x2c, 0xc7, 0xa9, 0x1a, 0xc8, 0x84, 0x47, 0x7b, 0x93, 0x6e, + 0xbf, 0xdb, 0xb3, 0xef, 0xbc, 0x4e, 0xdb, 0xe9, 0x57, 0x01, 0x22, 0xb0, 0xbe, 0x67, 0xdc, 0x77, + 0x6d, 0x57, 0xcf, 0x0b, 0xad, 0xf6, 0x62, 0x45, 0xc0, 0x72, 0x45, 0xc0, 0xd7, 0x8a, 0x80, 0xb7, + 0x35, 0x31, 0x96, 0x6b, 0x62, 0x7c, 0xac, 0x89, 0xf1, 0x78, 0x19, 0x46, 0x72, 0xfc, 0x3c, 0xa0, + 0x81, 0x88, 0xd9, 0x4e, 0x3b, 0xa6, 0xdb, 0xb1, 0x39, 0xdb, 0x1e, 0x56, 0xbe, 0x4e, 0x79, 0x96, + 0x9f, 0x77, 0x50, 0xce, 0xef, 0x73, 0xf1, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x82, 0x0f, 0x8e, + 0xf5, 0x01, 0x00, 0x00, +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/action_by_ref_id.pb.go b/x/nftmngr/types/v062/action_by_ref_id.pb.go new file mode 100644 index 00000000..5a8e15c0 --- /dev/null +++ b/x/nftmngr/types/v062/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/action_by_ref_id.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_cee66960c6b89efe, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v062.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v062/action_by_ref_id.proto", fileDescriptor_cee66960c6b89efe) +} + +var fileDescriptor_cee66960c6b89efe = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xf2, 0x0c, 0x72, 0xa5, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/attribute_definition.pb.go b/x/nftmngr/types/v062/attribute_definition.pb.go new file mode 100644 index 00000000..25049efd --- /dev/null +++ b/x/nftmngr/types/v062/attribute_definition.pb.go @@ -0,0 +1,1155 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/attribute_definition.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_2f6de6a164c5d785, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,7,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_2f6de6a164c5d785, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v062.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v062/attribute_definition.proto", fileDescriptor_2f6de6a164c5d785) +} + +var fileDescriptor_2f6de6a164c5d785 = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x4c, + 0x10, 0xc6, 0xe3, 0x37, 0x49, 0x9b, 0xec, 0x2b, 0x50, 0xd9, 0x34, 0x60, 0x05, 0xc9, 0x6a, 0x7b, + 0x80, 0x9e, 0xec, 0x2a, 0x45, 0x85, 0x2b, 0x51, 0x54, 0x71, 0x69, 0x91, 0x4c, 0x05, 0x12, 0x17, + 0x6b, 0xdd, 0x5d, 0x27, 0xab, 0xda, 0xbb, 0x66, 0x3d, 0x2e, 0xc9, 0xb7, 0xe0, 0xc8, 0x47, 0xe2, + 0xd8, 0x23, 0x37, 0x50, 0xf2, 0x45, 0x90, 0x77, 0xf3, 0x87, 0xc4, 0x91, 0xf0, 0xcd, 0x3b, 0xb3, + 0xcf, 0xf3, 0x1b, 0xcf, 0xce, 0xa0, 0x97, 0x22, 0x82, 0x44, 0x8c, 0x94, 0x77, 0x7f, 0x76, 0xd1, + 0xf7, 0x08, 0x80, 0xe2, 0x61, 0x0e, 0x2c, 0xa0, 0x2c, 0xe2, 0x82, 0x03, 0x97, 0xc2, 0x4d, 0x95, + 0x04, 0x89, 0x8f, 0x61, 0xcc, 0x32, 0x3e, 0x11, 0x0c, 0xbe, 0x4a, 0x75, 0xe7, 0x16, 0x9f, 0x11, + 0xb8, 0x0b, 0xb5, 0x5b, 0xa8, 0x7b, 0xc7, 0x1b, 0x5e, 0x94, 0x67, 0x69, 0x4c, 0xa6, 0x81, 0x4c, + 0xd7, 0x2e, 0xbd, 0x17, 0x1b, 0x57, 0x44, 0x04, 0xc1, 0x1a, 0x79, 0x4f, 0xe2, 0x9c, 0x99, 0x7b, + 0x27, 0xbf, 0xea, 0xe8, 0x60, 0xc8, 0x22, 0x92, 0xc7, 0x70, 0xc5, 0x05, 0x7c, 0x2c, 0x52, 0x58, + 0xa2, 0xa7, 0x22, 0x4f, 0x42, 0xa6, 0xb6, 0x45, 0xb6, 0x75, 0x64, 0x9d, 0xfe, 0xdf, 0x7f, 0xed, + 0xfe, 0xb3, 0x46, 0xf7, 0x5a, 0x1b, 0xbc, 0x5d, 0xea, 0xb5, 0xf1, 0xbb, 0x9a, 0x7f, 0x28, 0x76, + 0xc4, 0x0b, 0x60, 0x06, 0x8a, 0x8b, 0x51, 0x09, 0xf8, 0x5f, 0x65, 0xe0, 0x07, 0x6d, 0x50, 0x06, + 0x66, 0x3b, 0xe2, 0x58, 0xa1, 0x67, 0xa1, 0x94, 0x31, 0x23, 0xa2, 0x44, 0xac, 0x6b, 0xe2, 0x9b, + 0x0a, 0xc4, 0x81, 0x71, 0x28, 0x21, 0xbb, 0xe1, 0xae, 0x04, 0x8e, 0x51, 0x37, 0x8a, 0x25, 0x29, + 0xbd, 0x84, 0xdd, 0xd0, 0xc4, 0x8b, 0x0a, 0xc4, 0xcb, 0x42, 0x5f, 0xe2, 0x75, 0xa2, 0x72, 0x78, + 0xb0, 0x8f, 0x9a, 0xda, 0xfd, 0xe4, 0x7b, 0x1d, 0x75, 0x56, 0xb9, 0xe1, 0x6a, 0xda, 0x30, 0x46, + 0x0d, 0x41, 0x12, 0xf3, 0xa4, 0x6d, 0x5f, 0x7f, 0xe3, 0xe7, 0xa8, 0x4d, 0x09, 0x90, 0x00, 0xa6, + 0xa9, 0x69, 0x7d, 0xdb, 0x6f, 0x15, 0x81, 0x9b, 0x69, 0xca, 0x70, 0x0f, 0xb5, 0x14, 0xfb, 0x92, + 0x73, 0xc5, 0xa8, 0x6e, 0x52, 0xcb, 0x5f, 0x9d, 0xb1, 0x8b, 0x3a, 0xcb, 0x31, 0xd4, 0xd4, 0x20, + 0xe2, 0x2c, 0xa6, 0xfa, 0xcf, 0xda, 0xfe, 0x93, 0x45, 0x4a, 0x17, 0x76, 0x59, 0x24, 0xf0, 0x27, + 0xf4, 0x78, 0x73, 0x6c, 0xed, 0xa6, 0x6e, 0xc2, 0x59, 0x85, 0x26, 0x0c, 0x8d, 0xf0, 0xbd, 0xd6, + 0xf9, 0x8f, 0xe8, 0xdf, 0x47, 0x4c, 0x10, 0xa6, 0x66, 0x9c, 0x83, 0x84, 0x0b, 0x58, 0x74, 0x78, + 0x4f, 0x9b, 0x9f, 0x57, 0x31, 0xdf, 0xda, 0x05, 0xff, 0x80, 0x6e, 0x6f, 0x47, 0x1f, 0x75, 0xc7, + 0x9c, 0x52, 0x26, 0x02, 0x90, 0x41, 0x42, 0xd4, 0x1d, 0x83, 0x34, 0x26, 0xb7, 0xcc, 0xde, 0xd7, + 0x4d, 0xe9, 0x98, 0xe4, 0x8d, 0xbc, 0x5a, 0xa7, 0xf0, 0x21, 0x6a, 0x72, 0x41, 0xd9, 0xc4, 0x6e, + 0x1d, 0x59, 0xa7, 0x0d, 0xdf, 0x1c, 0x06, 0xd7, 0x3f, 0x66, 0x8e, 0xf5, 0x30, 0x73, 0xac, 0xdf, + 0x33, 0xc7, 0xfa, 0x36, 0x77, 0x6a, 0x0f, 0x73, 0xa7, 0xf6, 0x73, 0xee, 0xd4, 0x3e, 0xbf, 0x1a, + 0x71, 0x18, 0xe7, 0xa1, 0x7b, 0x2b, 0x13, 0x6f, 0xa3, 0x68, 0xcf, 0x14, 0xed, 0x4d, 0xbc, 0xe5, + 0x82, 0x17, 0x6f, 0x95, 0xe9, 0x35, 0x0f, 0xf7, 0xf4, 0x4e, 0x9f, 0xff, 0x09, 0x00, 0x00, 0xff, + 0xff, 0xab, 0xdd, 0x2b, 0x81, 0x6c, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x40 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/display_option.pb.go b/x/nftmngr/types/v062/display_option.pb.go new file mode 100644 index 00000000..d9a28bbe --- /dev/null +++ b/x/nftmngr/types/v062/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/display_option.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_5c85a73a7f69d542, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v062.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v062/display_option.proto", fileDescriptor_5c85a73a7f69d542) } + +var fileDescriptor_5c85a73a7f69d542 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x25, 0xb4, 0x1f, 0xb7, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/metadata_creator.pb.go b/x/nftmngr/types/v062/metadata_creator.pb.go new file mode 100644 index 00000000..52e47163 --- /dev/null +++ b/x/nftmngr/types/v062/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/metadata_creator.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_6baa8ec8c826543a, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_6baa8ec8c826543a, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v062.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v062.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v062/metadata_creator.proto", fileDescriptor_6baa8ec8c826543a) +} + +var fileDescriptor_6baa8ec8c826543a = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x8e, 0xd1, 0xa9, 0xc7, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_attribute_value.pb.go b/x/nftmngr/types/v062/nft_attribute_value.pb.go new file mode 100644 index 00000000..514c9676 --- /dev/null +++ b/x/nftmngr/types/v062/nft_attribute_value.pb.go @@ -0,0 +1,1322 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_attribute_value.proto + +package v062 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4a710c25d81705b, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4a710c25d81705b, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4a710c25d81705b, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4a710c25d81705b, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4a710c25d81705b, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v062.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v062/nft_attribute_value.proto", fileDescriptor_d4a710c25d81705b) +} + +var fileDescriptor_d4a710c25d81705b = []byte{ + // 370 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x4e, 0xea, 0x40, + 0x14, 0x86, 0xdb, 0x0b, 0xdc, 0x7b, 0x19, 0x57, 0x0e, 0xa0, 0xe8, 0xa2, 0x41, 0x16, 0x86, 0x44, + 0x9d, 0x31, 0x68, 0xd0, 0xad, 0x2c, 0x8c, 0x2b, 0x16, 0x98, 0xb8, 0x70, 0x43, 0x3a, 0x66, 0xa6, + 0x34, 0xb6, 0x33, 0x64, 0x3a, 0x45, 0x78, 0x0b, 0x1f, 0xcb, 0x25, 0x4b, 0x97, 0x06, 0x5e, 0xc1, + 0x07, 0x30, 0x1d, 0x68, 0x4c, 0x9d, 0x49, 0x64, 0x37, 0x39, 0xfd, 0xff, 0xff, 0x3b, 0x3d, 0x27, + 0x07, 0x1c, 0x73, 0xa6, 0x62, 0x1e, 0x48, 0x3c, 0x3d, 0xef, 0x75, 0x31, 0x67, 0x6a, 0xe4, 0x2b, + 0x25, 0x43, 0x92, 0x2a, 0x3a, 0x9a, 0xfa, 0x51, 0x4a, 0xd1, 0x44, 0x0a, 0x25, 0xe0, 0x91, 0x1a, + 0xd3, 0x24, 0x9c, 0x71, 0xaa, 0x5e, 0x84, 0x7c, 0x46, 0xd9, 0x93, 0x29, 0xb4, 0x31, 0xa3, 0xcc, + 0x7c, 0x78, 0x10, 0x08, 0x11, 0x44, 0x14, 0x6b, 0x03, 0x49, 0x19, 0xf6, 0xf9, 0x7c, 0xed, 0x6e, + 0x7f, 0x96, 0xc0, 0xee, 0x80, 0xa9, 0x9b, 0x3c, 0xfa, 0x21, 0x4b, 0x86, 0x10, 0x94, 0xb9, 0x1f, + 0xd3, 0xa6, 0xdb, 0x72, 0x3b, 0xd5, 0xa1, 0x7e, 0x43, 0x01, 0xf6, 0x78, 0x1a, 0x13, 0x2a, 0x7f, + 0xf6, 0xd1, 0xfc, 0xd3, 0x72, 0x3b, 0x3b, 0xdd, 0x2b, 0xf4, 0x6b, 0x23, 0x68, 0xa0, 0x03, 0x8a, + 0xb0, 0x3b, 0x67, 0x58, 0xe7, 0x96, 0x7a, 0x06, 0x4c, 0x94, 0x0c, 0x79, 0x60, 0x00, 0x4b, 0x5b, + 0x03, 0xef, 0x75, 0x80, 0x09, 0x4c, 0x2c, 0x75, 0x28, 0xc1, 0x3e, 0x11, 0x22, 0xa2, 0x3e, 0x37, + 0x88, 0x65, 0x4d, 0xbc, 0xde, 0x82, 0xd8, 0x5f, 0x27, 0x18, 0xc8, 0x06, 0xb1, 0x7d, 0x80, 0x11, + 0x68, 0xb0, 0x48, 0xf8, 0xc6, 0x72, 0x9b, 0x15, 0x4d, 0xec, 0x6d, 0x41, 0xbc, 0xcd, 0xfc, 0x06, + 0xaf, 0xc6, 0xcc, 0x72, 0xff, 0x1f, 0xa8, 0xe8, 0xf4, 0xf6, 0x29, 0xa8, 0xdb, 0x76, 0x01, 0xeb, + 0x1b, 0x81, 0xde, 0x7c, 0x79, 0xf8, 0xad, 0xb6, 0x0d, 0xb2, 0xa8, 0xae, 0xe6, 0xea, 0x33, 0xd0, + 0xb0, 0x0e, 0xa1, 0x28, 0xff, 0x9f, 0xcb, 0x4f, 0x40, 0xcd, 0xf2, 0x07, 0x45, 0xb1, 0xbb, 0x11, + 0xf7, 0x07, 0x6f, 0x4b, 0xcf, 0x5d, 0x2c, 0x3d, 0xf7, 0x63, 0xe9, 0xb9, 0xaf, 0x2b, 0xcf, 0x59, + 0xac, 0x3c, 0xe7, 0x7d, 0xe5, 0x39, 0x8f, 0x97, 0x41, 0xa8, 0xc6, 0x29, 0x41, 0x4f, 0x22, 0xc6, + 0x85, 0x99, 0xe1, 0xf5, 0xcc, 0xf0, 0x0c, 0xe7, 0x07, 0xa5, 0xe6, 0x13, 0x9a, 0xe8, 0xb3, 0x22, + 0x7f, 0xf5, 0x15, 0x5c, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x2a, 0x91, 0xb9, 0x6d, 0x03, + 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_collection.pb.go b/x/nftmngr/types/v062/nft_collection.pb.go new file mode 100644 index 00000000..ea5a881e --- /dev/null +++ b/x/nftmngr/types/v062/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_collection.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_20cce1b8feae5eda, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v062.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v062/nft_collection.proto", fileDescriptor_20cce1b8feae5eda) } + +var fileDescriptor_20cce1b8feae5eda = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x88, 0xec, 0x9e, 0x70, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_data.pb.go b/x/nftmngr/types/v062/nft_data.pb.go new file mode 100644 index 00000000..3e38f711 --- /dev/null +++ b/x/nftmngr/types/v062/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_data.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3dc5d4f31c6af6cf, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v062.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_3dc5d4f31c6af6cf, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v062.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v062.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v062/nft_data.proto", fileDescriptor_3dc5d4f31c6af6cf) } + +var fileDescriptor_3dc5d4f31c6af6cf = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0x6e, 0xe2, 0xc4, 0xa5, 0xd0, 0x09, 0x45, 0x42, 0x99, 0x94, 0x0e, 0x0e, 0x5c, + 0x2c, 0x37, 0x71, 0x12, 0x6b, 0xc4, 0xae, 0x9c, 0x27, 0x7b, 0xf9, 0x16, 0x7c, 0x2c, 0x8e, 0x3b, + 0x72, 0x44, 0xed, 0xe7, 0x40, 0x42, 0xb1, 0xd3, 0x00, 0xe5, 0x00, 0xd2, 0x6e, 0xc9, 0xef, 0xf9, + 0xff, 0x9f, 0x37, 0x3f, 0xe8, 0x40, 0xa4, 0x50, 0x88, 0x4c, 0xf9, 0x97, 0x2f, 0x5f, 0x8d, 0x7d, + 0x91, 0x02, 0x49, 0x28, 0x50, 0x6f, 0xa1, 0x24, 0x48, 0x7c, 0x08, 0x39, 0x2b, 0xf9, 0xb5, 0x60, + 0x70, 0x25, 0xd5, 0x85, 0x57, 0x7f, 0xa6, 0xe0, 0x35, 0x0e, 0xaf, 0x76, 0x3c, 0x39, 0xfa, 0xcb, + 0x4f, 0x01, 0x14, 0x9f, 0x57, 0xc0, 0xc8, 0x25, 0xfd, 0x5c, 0x31, 0x93, 0xea, 0xd9, 0x8f, 0x2e, + 0xea, 0x85, 0x29, 0x4c, 0x29, 0x50, 0x7c, 0x84, 0x1e, 0xd6, 0xc2, 0x32, 0xce, 0x59, 0x41, 0x49, + 0x2c, 0x13, 0xe6, 0x58, 0x43, 0x6b, 0xd4, 0x8f, 0x76, 0x45, 0x0a, 0x33, 0x4d, 0xdf, 0xca, 0x84, + 0xe1, 0xc7, 0x68, 0x1b, 0xe4, 0x05, 0x13, 0x84, 0x27, 0xce, 0x3d, 0x2d, 0xe8, 0xe9, 0xff, 0x20, + 0xc1, 0x4f, 0xd1, 0xc0, 0x84, 0xe4, 0x95, 0x60, 0xca, 0xe9, 0xea, 0x28, 0xd2, 0xe8, 0xac, 0x26, + 0x98, 0x22, 0xac, 0x43, 0x84, 0x26, 0x89, 0x62, 0x65, 0x49, 0xe0, 0x66, 0xc1, 0x9c, 0xfb, 0x43, + 0x6b, 0xb4, 0x37, 0x3e, 0xf6, 0xfe, 0x39, 0x97, 0xa7, 0xb3, 0x4c, 0x8c, 0xf7, 0xfc, 0x66, 0xc1, + 0x22, 0x5b, 0x6e, 0x10, 0x7c, 0x88, 0x76, 0xa4, 0xe2, 0x19, 0x17, 0x84, 0x17, 0x34, 0x63, 0xce, + 0x03, 0xdd, 0xc4, 0xc0, 0xb0, 0xa0, 0x46, 0xf8, 0x39, 0xda, 0x95, 0x22, 0xce, 0x69, 0xab, 0xd9, + 0xd2, 0x9a, 0x9d, 0x06, 0x1a, 0xd1, 0x01, 0xea, 0x9b, 0x59, 0x2a, 0xc5, 0x9d, 0x9e, 0x16, 0x98, + 0xb9, 0x3f, 0x28, 0x8e, 0x29, 0xda, 0x6f, 0x8a, 0xb4, 0x7b, 0x2d, 0x9d, 0xed, 0x61, 0x77, 0x34, + 0x18, 0x9f, 0xfc, 0xc7, 0x18, 0x61, 0x0a, 0x93, 0xb5, 0xef, 0x63, 0xfd, 0x1c, 0x91, 0x6d, 0xd2, + 0xb5, 0xb4, 0xc4, 0x31, 0xc2, 0xeb, 0x26, 0x7f, 0xab, 0xd1, 0xbf, 0x43, 0x8d, 0xfd, 0x26, 0xdf, + 0xaf, 0x22, 0x2f, 0x5e, 0x23, 0x7b, 0x73, 0xa5, 0x18, 0xa3, 0xbd, 0xb3, 0x28, 0x78, 0x17, 0x84, + 0x64, 0x32, 0x9d, 0x46, 0xa7, 0xb3, 0x99, 0xdd, 0xc1, 0x8f, 0x90, 0x1d, 0x84, 0xe7, 0xa7, 0x51, + 0x38, 0x79, 0xdf, 0x52, 0xeb, 0x4d, 0xf8, 0x75, 0xe9, 0x5a, 0xb7, 0x4b, 0xd7, 0xfa, 0xbe, 0x74, + 0xad, 0x2f, 0x2b, 0xb7, 0x73, 0xbb, 0x72, 0x3b, 0xdf, 0x56, 0x6e, 0xe7, 0xd3, 0x49, 0xc6, 0x21, + 0xaf, 0xe6, 0x5e, 0x2c, 0x0b, 0xff, 0x8f, 0x56, 0x7d, 0xd3, 0xaa, 0x7f, 0xed, 0xaf, 0x2f, 0xb4, + 0xbe, 0x80, 0x52, 0xdf, 0xe9, 0x7c, 0x4b, 0x1f, 0xe5, 0xf1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xc2, 0xce, 0x79, 0x09, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_fee_balance.pb.go b/x/nftmngr/types/v062/nft_fee_balance.pb.go new file mode 100644 index 00000000..e49cf41a --- /dev/null +++ b/x/nftmngr/types/v062/nft_fee_balance.pb.go @@ -0,0 +1,418 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_fee_balance.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + FeeBalances map[int32]string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_9191b9809b6b09b3, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() map[int32]string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v062.NFTFeeBalance") + proto.RegisterMapType((map[int32]string)(nil), "thesixnetwork.sixnft.nftmngr.v062.NFTFeeBalance.FeeBalancesEntry") +} + +func init() { + proto.RegisterFile("nftmngr/v062/nft_fee_balance.proto", fileDescriptor_9191b9809b6b09b3) +} + +var fileDescriptor_9191b9809b6b09b3 = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0xb6, 0x32, 0x72, 0xf1, 0xfa, 0xb9, 0x85, + 0xb8, 0xa5, 0xa6, 0x3a, 0x41, 0xb4, 0x0a, 0xa5, 0x70, 0xf1, 0x20, 0x99, 0x54, 0x2c, 0xc1, 0xa8, + 0xc0, 0xac, 0xc1, 0x6d, 0xe4, 0xa8, 0x47, 0xd0, 0x2c, 0x3d, 0x14, 0x73, 0xf4, 0x10, 0xcc, 0x62, + 0xd7, 0xbc, 0x92, 0xa2, 0xca, 0x20, 0xee, 0x34, 0x84, 0x88, 0x94, 0x1d, 0x97, 0x00, 0xba, 0x02, + 0x21, 0x01, 0x2e, 0xe6, 0xec, 0xd4, 0x4a, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x10, 0x53, + 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, + 0xc2, 0xb1, 0x62, 0xb2, 0x60, 0x74, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x37, + 0xeb, 0x43, 0xdc, 0xac, 0x5f, 0xa1, 0x0f, 0x0b, 0xba, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x00, + 0x26, 0xb1, 0x81, 0x43, 0xcc, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x0e, 0xcb, 0xe7, 0x57, + 0x01, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for k := range m.FeeBalances { + v := m.FeeBalances[k] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i = encodeVarintNftFeeBalance(dAtA, i, uint64(k)) + i-- + dAtA[i] = 0x8 + i = encodeVarintNftFeeBalance(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for k, v := range m.FeeBalances { + _ = k + _ = v + mapEntrySize := 1 + sovNftFeeBalance(uint64(k)) + 1 + len(v) + sovNftFeeBalance(uint64(len(v))) + n += mapEntrySize + 1 + sovNftFeeBalance(uint64(mapEntrySize)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FeeBalances == nil { + m.FeeBalances = make(map[int32]string) + } + var mapkey int32 + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapkey |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthNftFeeBalance + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.FeeBalances[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_fee_config.pb.go b/x/nftmngr/types/v062/nft_fee_config.pb.go new file mode 100644 index 00000000..09dfc0ba --- /dev/null +++ b/x/nftmngr/types/v062/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_fee_config.proto + +package v062 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8d35653e84f6f7eb, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v062.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_8d35653e84f6f7eb, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_8d35653e84f6f7eb, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_8d35653e84f6f7eb, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v062.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v062.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v062.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v062.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v062/nft_fee_config.proto", fileDescriptor_8d35653e84f6f7eb) } + +var fileDescriptor_8d35653e84f6f7eb = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0xdb, 0x21, 0x2a, 0x93, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_schema.pb.go b/x/nftmngr/types/v062/nft_schema.pb.go new file mode 100644 index 00000000..49888c9d --- /dev/null +++ b/x/nftmngr/types/v062/nft_schema.pb.go @@ -0,0 +1,696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_schema.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_f00ed273918df1d5, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v062.NFTSchema") +} + +func init() { proto.RegisterFile("nftmngr/v062/nft_schema.proto", fileDescriptor_f00ed273918df1d5) } + +var fileDescriptor_f00ed273918df1d5 = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x9b, 0xfe, 0xfb, 0x5a, 0xf7, 0x93, 0x00, 0x8b, 0xc1, 0xaa, 0x84, 0x15, 0x98, 0xc2, + 0x50, 0x07, 0x15, 0xc4, 0x5e, 0x40, 0x8c, 0x45, 0x04, 0xc4, 0xc0, 0x12, 0xb9, 0xa9, 0xd3, 0x58, + 0x28, 0x76, 0xe5, 0xb8, 0xb4, 0xe5, 0x29, 0x78, 0x2c, 0xc6, 0x8e, 0x8c, 0xa8, 0x95, 0x78, 0x0e, + 0x64, 0xa7, 0x85, 0x66, 0x82, 0xed, 0xf8, 0x5c, 0x9f, 0x9f, 0xef, 0xf5, 0x05, 0x07, 0x22, 0xd6, + 0xa9, 0x18, 0x29, 0xff, 0xf9, 0xe4, 0xbc, 0xeb, 0x8b, 0x58, 0x87, 0x59, 0x94, 0xb0, 0x94, 0x92, + 0xb1, 0x92, 0x5a, 0xc2, 0x43, 0x9d, 0xb0, 0x8c, 0xcf, 0x04, 0xd3, 0x53, 0xa9, 0x9e, 0x88, 0x91, + 0xb1, 0x26, 0xeb, 0x0c, 0x31, 0x99, 0xb6, 0x5b, 0x20, 0x48, 0x11, 0x46, 0x09, 0xe5, 0x22, 0x1c, + 0x52, 0xbd, 0x86, 0xb4, 0x71, 0xf1, 0x86, 0xe2, 0xa3, 0x42, 0xfd, 0xe8, 0xb3, 0x0c, 0x9a, 0xfd, + 0xeb, 0xfb, 0x3b, 0xfb, 0x30, 0x84, 0xa0, 0x1a, 0xc9, 0x21, 0x43, 0x8e, 0xeb, 0x78, 0xcd, 0xc0, + 0x6a, 0xe3, 0x09, 0x9a, 0x32, 0x54, 0xce, 0x3d, 0xa3, 0xe1, 0x3e, 0xa8, 0xc9, 0xa9, 0x60, 0x0a, + 0x55, 0xac, 0x99, 0x1f, 0xe0, 0x31, 0xd8, 0xcd, 0xe6, 0x99, 0x66, 0x69, 0x48, 0x23, 0xcd, 0xa5, + 0x60, 0x2a, 0x43, 0x55, 0xb7, 0xe2, 0x35, 0x83, 0x9d, 0xdc, 0xef, 0x6d, 0x6c, 0xd8, 0x07, 0xad, + 0xad, 0x5e, 0x50, 0xcd, 0x75, 0xbc, 0x56, 0xb7, 0x43, 0x7e, 0x9d, 0x98, 0xdc, 0xd8, 0xd4, 0x15, + 0xd5, 0x34, 0x00, 0xf2, 0x5b, 0xc3, 0x5b, 0xf0, 0x5f, 0x8a, 0x9f, 0xe1, 0x51, 0xdd, 0x02, 0xc9, + 0x5f, 0x80, 0xe2, 0xd2, 0xc4, 0x2c, 0xb1, 0xb5, 0x66, 0x58, 0x24, 0x06, 0x80, 0x67, 0x0f, 0x4c, + 0xf1, 0x98, 0xb3, 0x21, 0xfa, 0xe7, 0x3a, 0x5e, 0x23, 0xd8, 0x72, 0x60, 0x07, 0xc0, 0x94, 0x0b, + 0x1d, 0xd2, 0x89, 0x4e, 0xa4, 0xe2, 0x2f, 0xd4, 0xcc, 0x86, 0x1a, 0xf6, 0x43, 0xf6, 0x4c, 0xa5, + 0xb7, 0x5d, 0xb8, 0xe8, 0xbf, 0x2d, 0xb1, 0xb3, 0x58, 0x62, 0xe7, 0x63, 0x89, 0x9d, 0xd7, 0x15, + 0x2e, 0x2d, 0x56, 0xb8, 0xf4, 0xbe, 0xc2, 0xa5, 0xc7, 0xb3, 0x11, 0xd7, 0xc9, 0x64, 0x40, 0x22, + 0x99, 0xfa, 0x85, 0x7e, 0xfd, 0xbc, 0x5f, 0x7f, 0xe6, 0x6f, 0x96, 0xa8, 0xe7, 0x63, 0x96, 0xd9, + 0x55, 0x0e, 0xea, 0x76, 0x7f, 0xa7, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x28, 0xf0, 0xb7, 0x82, + 0x45, 0x02, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/nft_schema_by_contract.pb.go b/x/nftmngr/types/v062/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..e636a9b7 --- /dev/null +++ b/x/nftmngr/types/v062/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/nft_schema_by_contract.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_89c4090a4ef7ae24, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v062.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v062/nft_schema_by_contract.proto", fileDescriptor_89c4090a4ef7ae24) +} + +var fileDescriptor_89c4090a4ef7ae24 = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x05, 0x79, 0x75, 0xe8, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/on_chain_data.pb.go b/x/nftmngr/types/v062/on_chain_data.pb.go new file mode 100644 index 00000000..6a90a435 --- /dev/null +++ b/x/nftmngr/types/v062/on_chain_data.pb.go @@ -0,0 +1,933 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/on_chain_data.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OnChainData struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status map[string]bool `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + OnOffSwitch map[string]bool `protobuf:"bytes,7,rep,name=on_off_switch,json=onOffSwitch,proto3" json:"on_off_switch,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,8,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_05c070fd2f41c105, []int{0} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainData) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() map[string]bool { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainData) GetOnOffSwitch() map[string]bool { + if m != nil { + return m.OnOffSwitch + } + return nil +} + +func (m *OnChainData) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v062.OnChainData") + proto.RegisterMapType((map[string]bool)(nil), "thesixnetwork.sixnft.nftmngr.v062.OnChainData.OnOffSwitchEntry") + proto.RegisterMapType((map[string]bool)(nil), "thesixnetwork.sixnft.nftmngr.v062.OnChainData.StatusEntry") +} + +func init() { proto.RegisterFile("nftmngr/v062/on_chain_data.proto", fileDescriptor_05c070fd2f41c105) } + +var fileDescriptor_05c070fd2f41c105 = []byte{ + // 475 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x41, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x5a, 0xda, 0x0d, 0x77, 0xdd, 0x2a, 0x6b, 0x87, 0xd0, 0x43, 0x54, 0x40, 0x62, 0xe5, + 0x92, 0xa0, 0x31, 0x4d, 0xb0, 0x03, 0x08, 0x36, 0xae, 0xab, 0xe4, 0x4a, 0x1c, 0x90, 0x50, 0xe4, + 0xa6, 0xf6, 0x62, 0x75, 0xb3, 0x87, 0xfd, 0xd2, 0xad, 0xff, 0x82, 0x9f, 0xc5, 0x71, 0x47, 0x8e, + 0xa8, 0xfd, 0x1f, 0x08, 0xc5, 0x4e, 0xb7, 0x04, 0x84, 0xe8, 0xc4, 0x2d, 0xf9, 0xfc, 0xbe, 0xef, + 0xf3, 0xf3, 0xf7, 0x1e, 0xea, 0x4b, 0x0e, 0x17, 0xf2, 0x4c, 0x47, 0xb3, 0x17, 0x87, 0xfb, 0x91, + 0x92, 0x71, 0x92, 0x52, 0x21, 0xe3, 0x09, 0x05, 0x1a, 0x5e, 0x6a, 0x05, 0x0a, 0x3f, 0x86, 0x94, + 0x19, 0x71, 0x2d, 0x19, 0x5c, 0x29, 0x3d, 0x0d, 0xf3, 0x4f, 0x0e, 0x61, 0x41, 0x0b, 0x73, 0x5a, + 0x6f, 0xaf, 0x22, 0x42, 0x01, 0xb4, 0x18, 0x67, 0xc0, 0xe2, 0x09, 0xe3, 0x42, 0x0a, 0x10, 0x4a, + 0x3a, 0xad, 0xde, 0xa3, 0x6a, 0x61, 0xf2, 0xd7, 0x23, 0x03, 0x14, 0x32, 0x53, 0x1c, 0xfd, 0x71, + 0x47, 0xc5, 0x79, 0x6c, 0xae, 0x04, 0x24, 0x69, 0x51, 0xf1, 0xac, 0x52, 0x21, 0x39, 0xc4, 0x77, + 0x97, 0x98, 0xd1, 0xf3, 0x8c, 0xb9, 0xba, 0x27, 0x3f, 0x9b, 0xa8, 0x3d, 0x94, 0xc7, 0x79, 0x8b, + 0x27, 0x14, 0x28, 0xde, 0x43, 0x3b, 0x9a, 0xcd, 0x18, 0x3d, 0x8f, 0x35, 0xfb, 0x92, 0x09, 0xcd, + 0x26, 0xbe, 0xd7, 0xf7, 0x06, 0x9b, 0x64, 0xdb, 0xc1, 0xa4, 0x40, 0xf1, 0x53, 0xd4, 0x29, 0x0a, + 0x0d, 0x4b, 0x34, 0x03, 0xbf, 0xde, 0xf7, 0x06, 0x5b, 0x64, 0xcb, 0x81, 0x23, 0x8b, 0xe1, 0xcf, + 0x68, 0xbb, 0x62, 0x6d, 0xfc, 0x46, 0xbf, 0x31, 0x68, 0xef, 0x1f, 0x86, 0xff, 0x7c, 0xc2, 0xf0, + 0xdd, 0x8a, 0x74, 0x72, 0xfb, 0x66, 0xa4, 0x23, 0x39, 0xdc, 0xe2, 0x06, 0x53, 0xd4, 0x05, 0x35, + 0x65, 0xb2, 0x6c, 0xf0, 0xe0, 0xbf, 0x0c, 0x76, 0xac, 0x5e, 0xc9, 0xe2, 0x18, 0x6d, 0xb8, 0x50, + 0x8c, 0xdf, 0xb4, 0xca, 0xcf, 0xd7, 0x51, 0xb6, 0x0c, 0xb2, 0x62, 0x62, 0x82, 0x5a, 0x2e, 0x3e, + 0xbf, 0x65, 0x35, 0x8e, 0xd6, 0xd0, 0x28, 0x85, 0x12, 0x8e, 0x2c, 0xf9, 0x83, 0x04, 0x3d, 0x27, + 0x85, 0x12, 0x4e, 0x50, 0xa7, 0x92, 0xbb, 0xbf, 0x61, 0xa5, 0xdf, 0xde, 0x53, 0x7a, 0x28, 0x87, + 0x9c, 0x8f, 0xac, 0x82, 0xd3, 0x6f, 0xab, 0x3b, 0x04, 0x73, 0xb4, 0x5b, 0xcd, 0xcf, 0xcd, 0x8e, + 0xbf, 0x69, 0xbd, 0x0e, 0xd6, 0xf0, 0x3a, 0x2d, 0x05, 0xf6, 0x31, 0xe7, 0x12, 0x5c, 0xc9, 0xd0, + 0x62, 0xbd, 0xd7, 0xa8, 0x5d, 0xea, 0x11, 0x77, 0x51, 0x63, 0xca, 0xe6, 0x76, 0xf0, 0x1e, 0x92, + 0xfc, 0x13, 0xef, 0xa2, 0xa6, 0x73, 0xae, 0xdb, 0x61, 0x74, 0x3f, 0x47, 0xf5, 0x57, 0x5e, 0xef, + 0x0d, 0xea, 0xfe, 0xde, 0xc3, 0x7d, 0xf8, 0xef, 0x4f, 0xbf, 0x2d, 0x02, 0xef, 0x66, 0x11, 0x78, + 0x3f, 0x16, 0x81, 0xf7, 0x75, 0x19, 0xd4, 0x6e, 0x96, 0x41, 0xed, 0xfb, 0x32, 0xa8, 0x7d, 0x3a, + 0x38, 0x13, 0x90, 0x66, 0xe3, 0x30, 0x51, 0x17, 0x51, 0xa5, 0xd1, 0xc8, 0x35, 0x1a, 0x5d, 0x47, + 0xab, 0x25, 0x83, 0xf9, 0x25, 0x33, 0x76, 0xd5, 0xc6, 0x2d, 0xbb, 0x57, 0x2f, 0x7f, 0x05, 0x00, + 0x00, 0xff, 0xff, 0xbb, 0x16, 0x12, 0xdc, 0x47, 0x04, 0x00, 0x00, +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.OnOffSwitch) > 0 { + for k := range m.OnOffSwitch { + v := m.OnOffSwitch[k] + baseI := i + i-- + if v { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintOnChainData(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintOnChainData(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + } + } + if len(m.Status) > 0 { + for k := range m.Status { + v := m.Status[k] + baseI := i + i-- + if v { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintOnChainData(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintOnChainData(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for k, v := range m.Status { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovOnChainData(uint64(len(k))) + 1 + 1 + n += mapEntrySize + 1 + sovOnChainData(uint64(mapEntrySize)) + } + } + if len(m.OnOffSwitch) > 0 { + for k, v := range m.OnOffSwitch { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovOnChainData(uint64(len(k))) + 1 + 1 + n += mapEntrySize + 1 + sovOnChainData(uint64(mapEntrySize)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Status == nil { + m.Status = make(map[string]bool) + } + var mapkey string + var mapvalue bool + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthOnChainData + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthOnChainData + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapvaluetemp int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvaluetemp |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + mapvalue = bool(mapvaluetemp != 0) + } else { + iNdEx = entryPreIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Status[mapkey] = mapvalue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnOffSwitch", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnOffSwitch == nil { + m.OnOffSwitch = make(map[string]bool) + } + var mapkey string + var mapvalue bool + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthOnChainData + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthOnChainData + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapvaluetemp int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvaluetemp |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + mapvalue = bool(mapvaluetemp != 0) + } else { + iNdEx = entryPreIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.OnOffSwitch[mapkey] = mapvalue + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/on_off_switch.pb.go b/x/nftmngr/types/v062/on_off_switch.pb.go new file mode 100644 index 00000000..40ffc064 --- /dev/null +++ b/x/nftmngr/types/v062/on_off_switch.pb.go @@ -0,0 +1,306 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/on_off_switch.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OnOffSwitch struct { + Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` +} + +func (m *OnOffSwitch) Reset() { *m = OnOffSwitch{} } +func (m *OnOffSwitch) String() string { return proto.CompactTextString(m) } +func (*OnOffSwitch) ProtoMessage() {} +func (*OnOffSwitch) Descriptor() ([]byte, []int) { + return fileDescriptor_277f11b1f7ca5782, []int{0} +} +func (m *OnOffSwitch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnOffSwitch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnOffSwitch.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 *OnOffSwitch) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnOffSwitch.Merge(m, src) +} +func (m *OnOffSwitch) XXX_Size() int { + return m.Size() +} +func (m *OnOffSwitch) XXX_DiscardUnknown() { + xxx_messageInfo_OnOffSwitch.DiscardUnknown(m) +} + +var xxx_messageInfo_OnOffSwitch proto.InternalMessageInfo + +func (m *OnOffSwitch) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func init() { + proto.RegisterType((*OnOffSwitch)(nil), "thesixnetwork.sixnft.nftmngr.v062.OnOffSwitch") +} + +func init() { proto.RegisterFile("nftmngr/v062/on_off_switch.proto", fileDescriptor_277f11b1f7ca5782) } + +var fileDescriptor_277f11b1f7ca5782 = []byte{ + // 178 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xc8, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0xcf, 0x8b, 0xcf, 0x4f, 0x4b, 0x8b, + 0x2f, 0x2e, 0xcf, 0x2c, 0x49, 0xce, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, + 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, + 0xf4, 0xa0, 0xda, 0xf4, 0x40, 0xda, 0x94, 0x54, 0xb9, 0xb8, 0xfd, 0xf3, 0xfc, 0xd3, 0xd2, 0x82, + 0xc1, 0xfa, 0x84, 0xc4, 0xb8, 0xd8, 0x12, 0x93, 0x4b, 0x32, 0xcb, 0x52, 0x25, 0x18, 0x15, 0x18, + 0x35, 0x38, 0x82, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0xb1, 0x4e, + 0x1f, 0x62, 0x9d, 0x7e, 0x85, 0x3e, 0xcc, 0x9d, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xd7, 0x26, + 0xb1, 0x81, 0x1d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xc2, 0xe1, 0xe8, 0xc4, 0x00, + 0x00, 0x00, +} + +func (m *OnOffSwitch) 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 *OnOffSwitch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnOffSwitch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Active { + i-- + if m.Active { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnOffSwitch(dAtA []byte, offset int, v uint64) int { + offset -= sovOnOffSwitch(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OnOffSwitch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Active { + n += 2 + } + return n +} + +func sovOnOffSwitch(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnOffSwitch(x uint64) (n int) { + return sovOnOffSwitch(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OnOffSwitch) 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 ErrIntOverflowOnOffSwitch + } + 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: OnOffSwitch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnOffSwitch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnOffSwitch + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Active = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnOffSwitch(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnOffSwitch + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnOffSwitch(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, ErrIntOverflowOnOffSwitch + } + 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, ErrIntOverflowOnOffSwitch + } + 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, ErrIntOverflowOnOffSwitch + } + 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, ErrInvalidLengthOnOffSwitch + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnOffSwitch + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnOffSwitch + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnOffSwitch = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnOffSwitch = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnOffSwitch = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/opensea_display_option.pb.go b/x/nftmngr/types/v062/opensea_display_option.pb.go new file mode 100644 index 00000000..917d8e42 --- /dev/null +++ b/x/nftmngr/types/v062/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/opensea_display_option.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_de8029561ab86f9d, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v062.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v062/opensea_display_option.proto", fileDescriptor_de8029561ab86f9d) +} + +var fileDescriptor_de8029561ab86f9d = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0xc6, 0x7a, 0xe6, 0xc6, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/organization.pb.go b/x/nftmngr/types/v062/organization.pb.go new file mode 100644 index 00000000..ed15e49b --- /dev/null +++ b/x/nftmngr/types/v062/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/organization.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_e8f2d73427ff3268, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v062.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v062/organization.proto", fileDescriptor_e8f2d73427ff3268) } + +var fileDescriptor_e8f2d73427ff3268 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x97, 0x40, 0x67, 0x18, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v062/origin_data.pb.go b/x/nftmngr/types/v062/origin_data.pb.go new file mode 100644 index 00000000..5aad7244 --- /dev/null +++ b/x/nftmngr/types/v062/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v062/origin_data.proto + +package v062 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4e53b59a4e219b9c, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4e53b59a4e219b9c, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v062.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v062.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_4e53b59a4e219b9c, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v062.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v062.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v062.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v062/origin_data.proto", fileDescriptor_4e53b59a4e219b9c) } + +var fileDescriptor_4e53b59a4e219b9c = []byte{ + // 444 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0x0a, 0xe4, 0x9e, 0xb4, 0x05, 0x22, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x62, 0x6d, 0xe2, + 0x8d, 0x33, 0x02, 0xef, 0x56, 0xe3, 0x71, 0x28, 0x7f, 0xc1, 0x67, 0x71, 0xec, 0x91, 0x23, 0x4a, + 0xbe, 0x80, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0xa5, 0x48, 0xd0, 0xdb, 0xea, 0xed, 0x7b, 0x6f, 0xde, + 0x1b, 0x0d, 0x78, 0x7a, 0xc2, 0xa9, 0x4e, 0x28, 0x98, 0x3d, 0xed, 0x1c, 0x06, 0x86, 0x30, 0x41, + 0x1d, 0xc5, 0x92, 0xa5, 0x7f, 0x46, 0x86, 0x8d, 0xd8, 0xe3, 0xa9, 0xca, 0xf0, 0x5c, 0x2b, 0xfe, + 0x6c, 0xe8, 0xa3, 0xbf, 0x7c, 0x4e, 0xd8, 0x2f, 0x45, 0xfe, 0x52, 0xf4, 0x60, 0xff, 0x92, 0x85, + 0x64, 0x26, 0x1c, 0xe5, 0xac, 0xa2, 0x58, 0x4d, 0x50, 0x23, 0xa3, 0xd1, 0x85, 0xd7, 0xc3, 0x9f, + 0x75, 0x80, 0xa1, 0x9d, 0x70, 0x2c, 0x59, 0x8a, 0x3d, 0xb8, 0x5d, 0xce, 0x1b, 0x4f, 0x25, 0x6a, + 0xd7, 0x69, 0x39, 0xed, 0x8d, 0x70, 0xb3, 0xc0, 0x8e, 0x96, 0x90, 0xe8, 0xc0, 0xfd, 0x8a, 0x62, + 0x34, 0x93, 0x1c, 0x73, 0x24, 0xe3, 0x98, 0x54, 0x96, 0xb9, 0x37, 0x2c, 0xfb, 0x5e, 0xc9, 0x2e, + 0x7f, 0xbb, 0xc5, 0xa7, 0x78, 0x04, 0xdb, 0xa5, 0x6e, 0x24, 0x33, 0x15, 0xe5, 0x84, 0x6e, 0xdd, + 0xf2, 0xef, 0x14, 0x70, 0x4f, 0x66, 0xea, 0x94, 0x50, 0x20, 0xec, 0xfe, 0xce, 0x6b, 0x66, 0x8a, + 0x08, 0x63, 0xd4, 0x89, 0xbb, 0xd6, 0x72, 0xda, 0x5b, 0x87, 0x1d, 0xff, 0x9f, 0xe5, 0xfd, 0x6e, + 0x25, 0x1f, 0xae, 0xd4, 0xe1, 0x8e, 0xbc, 0x0a, 0x8a, 0x7d, 0xd8, 0x4e, 0x15, 0xcb, 0xe5, 0x6a, + 0xa3, 0x89, 0xa1, 0x54, 0xb2, 0xbb, 0x6e, 0x23, 0x6d, 0x55, 0xf0, 0x4b, 0x8b, 0x8a, 0x31, 0xdc, + 0x2d, 0xb3, 0xaf, 0x6c, 0x32, 0xb7, 0xd1, 0xaa, 0xb7, 0x37, 0xaf, 0x17, 0xe8, 0x78, 0xb5, 0xfe, + 0xb0, 0x59, 0x18, 0xae, 0xbe, 0x32, 0x91, 0xc0, 0x6e, 0x4e, 0x18, 0x91, 0x62, 0x42, 0x35, 0x93, + 0x9f, 0xa2, 0x54, 0xf1, 0xd4, 0xc4, 0xee, 0x4d, 0x5b, 0xfc, 0xc5, 0x7f, 0xcc, 0x39, 0x0d, 0xfb, + 0x61, 0xa5, 0x7e, 0x6b, 0xc5, 0xa1, 0xc8, 0x09, 0xff, 0xc0, 0x0e, 0x9e, 0xc0, 0xce, 0x5f, 0x56, + 0x24, 0x00, 0x1a, 0xc3, 0xb0, 0xff, 0xaa, 0x3f, 0x68, 0xd6, 0xc4, 0x06, 0xac, 0x1f, 0xbd, 0xee, + 0xf6, 0x07, 0x4d, 0xe7, 0xe0, 0x31, 0x88, 0xab, 0xbe, 0xe2, 0x16, 0xac, 0xf5, 0xba, 0xef, 0x4e, + 0x0a, 0xea, 0xfb, 0xe1, 0x9b, 0x93, 0x41, 0xd3, 0xe9, 0x0d, 0xbe, 0xcd, 0x3d, 0xe7, 0x62, 0xee, + 0x39, 0x3f, 0xe6, 0x9e, 0xf3, 0x75, 0xe1, 0xd5, 0x2e, 0x16, 0x5e, 0xed, 0xfb, 0xc2, 0xab, 0x7d, + 0x78, 0x9e, 0x20, 0x4f, 0xf3, 0x91, 0x3f, 0x36, 0x69, 0x70, 0xa9, 0x47, 0x50, 0xf4, 0x08, 0xce, + 0x83, 0xea, 0x62, 0xf9, 0xcb, 0x99, 0xca, 0xec, 0xdd, 0x8e, 0x1a, 0xf6, 0x46, 0x9f, 0xfd, 0x0a, + 0x00, 0x00, 0xff, 0xff, 0x18, 0xe8, 0xc7, 0xe4, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/status.pb.go b/x/nftmngr/types/v062/status.pb.go similarity index 81% rename from x/nftmngr/types/status.pb.go rename to x/nftmngr/types/v062/status.pb.go index 9c2bee33..25f787e9 100644 --- a/x/nftmngr/types/status.pb.go +++ b/x/nftmngr/types/v062/status.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: nftmngr/status.proto +// source: nftmngr/v062/status.proto -package types +package v062 import ( fmt "fmt" @@ -30,7 +30,7 @@ func (m *Status) Reset() { *m = Status{} } func (m *Status) String() string { return proto.CompactTextString(m) } func (*Status) ProtoMessage() {} func (*Status) Descriptor() ([]byte, []int) { - return fileDescriptor_4a9b5b9248874b93, []int{0} + return fileDescriptor_7e259e449726b010, []int{0} } func (m *Status) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -67,25 +67,25 @@ func (m *Status) GetFirstMintComplete() bool { } func init() { - proto.RegisterType((*Status)(nil), "thesixnetwork.sixnft.nftmngr.Status") + proto.RegisterType((*Status)(nil), "thesixnetwork.sixnft.nftmngr.v062.Status") } -func init() { proto.RegisterFile("nftmngr/status.proto", fileDescriptor_4a9b5b9248874b93) } +func init() { proto.RegisterFile("nftmngr/v062/status.proto", fileDescriptor_7e259e449726b010) } -var fileDescriptor_4a9b5b9248874b93 = []byte{ - // 177 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc9, 0x4b, 0x2b, 0xc9, - 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x92, 0x29, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, - 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x4a, 0x95, 0x2c, 0xb8, 0xd8, 0x82, 0xc1, 0xaa, 0x85, 0xf4, - 0xb8, 0x84, 0xd3, 0x32, 0x8b, 0x8a, 0x4b, 0xe2, 0x73, 0x33, 0xf3, 0x4a, 0xe2, 0x93, 0xf3, 0x73, - 0x0b, 0x72, 0x52, 0x4b, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x82, 0x04, 0xc1, 0x52, 0xbe, - 0x99, 0x79, 0x25, 0xce, 0x50, 0x09, 0x27, 0xcf, 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, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0xb1, - 0x5c, 0x1f, 0x62, 0xb9, 0x7e, 0x85, 0x3e, 0xcc, 0xa5, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, - 0x60, 0x97, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x5d, 0x8c, 0xaf, 0xc1, 0x00, 0x00, - 0x00, +var fileDescriptor_7e259e449726b010 = []byte{ + // 187 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd2, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xea, 0xf5, 0x40, 0xea, 0x95, + 0x2c, 0xb8, 0xd8, 0x82, 0xc1, 0x5a, 0x84, 0xf4, 0xb8, 0x84, 0xd3, 0x32, 0x8b, 0x8a, 0x4b, 0xe2, + 0x73, 0x33, 0xf3, 0x4a, 0xe2, 0x93, 0xf3, 0x73, 0x0b, 0x72, 0x52, 0x4b, 0x52, 0x25, 0x18, 0x15, + 0x18, 0x35, 0x38, 0x82, 0x04, 0xc1, 0x52, 0xbe, 0x99, 0x79, 0x25, 0xce, 0x50, 0x09, 0x27, 0xbf, + 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, + 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x81, 0x3e, 0xc4, 0x05, 0xfa, 0x15, 0xfa, 0x30, + 0x37, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x5d, 0x9e, 0xc4, 0x06, 0x76, 0xb3, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0xab, 0x95, 0x27, 0xf7, 0xd0, 0x00, 0x00, 0x00, } func (m *Status) Marshal() (dAtA []byte, err error) { diff --git a/x/nftmngr/types/v063/action.pb.go b/x/nftmngr/types/v063/action.pb.go new file mode 100644 index 00000000..d11503ee --- /dev/null +++ b/x/nftmngr/types/v063/action.pb.go @@ -0,0 +1,589 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/action.proto + +package v063 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6723d1598ed5cf62, []int{0} +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v063.AllowedActioner" json:"allowed_actioner,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_6723d1598ed5cf62, []int{0} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v063.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v063.Action") +} + +func init() { proto.RegisterFile("nftmngr/v063/action.proto", fileDescriptor_6723d1598ed5cf62) } + +var fileDescriptor_6723d1598ed5cf62 = []byte{ + // 341 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0x41, 0x4f, 0xe2, 0x40, + 0x18, 0x86, 0x3b, 0xc0, 0xb2, 0xbb, 0x73, 0x58, 0xc8, 0x84, 0xc3, 0x2c, 0x31, 0x63, 0xf5, 0x44, + 0x3c, 0xcc, 0x18, 0x30, 0xde, 0x8b, 0xf6, 0x60, 0x52, 0x21, 0x29, 0x18, 0x83, 0x97, 0xa6, 0x94, + 0xa1, 0x34, 0xd2, 0x0e, 0x69, 0x47, 0xc1, 0x7f, 0xe1, 0xcf, 0xe2, 0xc8, 0x4d, 0x4f, 0xc6, 0xc0, + 0x1f, 0x31, 0xd3, 0x81, 0x03, 0x72, 0xf0, 0xf6, 0xce, 0xf3, 0x3d, 0xdf, 0x24, 0x6f, 0x3e, 0xf8, + 0x3f, 0x19, 0xcb, 0x38, 0x09, 0x53, 0xf6, 0x7c, 0x7e, 0xd9, 0x62, 0x7e, 0x20, 0x23, 0x91, 0xd0, + 0x59, 0x2a, 0xa4, 0x40, 0x27, 0x72, 0xc2, 0xb3, 0x68, 0x91, 0x70, 0x39, 0x17, 0xe9, 0x23, 0x55, + 0x71, 0x2c, 0xe9, 0xd6, 0xa7, 0xca, 0xaf, 0xd7, 0x42, 0x11, 0x8a, 0xdc, 0x66, 0x2a, 0xe9, 0xc5, + 0xd3, 0x37, 0x00, 0xcb, 0x56, 0xfe, 0x13, 0x42, 0xb0, 0x94, 0xf8, 0x31, 0xc7, 0xc0, 0x04, 0x8d, + 0xbf, 0x6e, 0x9e, 0x15, 0x1b, 0xf1, 0x2c, 0xc0, 0x05, 0xcd, 0x54, 0x46, 0x18, 0xfe, 0x1e, 0x45, + 0x99, 0x3f, 0x9c, 0x72, 0x5c, 0x34, 0x41, 0xe3, 0x8f, 0xbb, 0x7b, 0x2a, 0x7b, 0x3e, 0xe1, 0x09, + 0x2e, 0x69, 0x5b, 0x65, 0xc5, 0xa4, 0x62, 0xbf, 0xcc, 0xa2, 0x62, 0x2a, 0xa3, 0x00, 0x56, 0xfd, + 0xe9, 0x54, 0xcc, 0xf9, 0xc8, 0xd3, 0x2d, 0x78, 0x8a, 0xcb, 0x26, 0x68, 0xfc, 0x6b, 0x36, 0xe9, + 0x8f, 0x45, 0xa8, 0xa5, 0x57, 0xad, 0xed, 0x66, 0xbb, 0xb4, 0xfc, 0x38, 0x06, 0x6e, 0xc5, 0xdf, + 0xc7, 0x67, 0x31, 0xac, 0x7c, 0x33, 0x11, 0x86, 0x35, 0xcb, 0x71, 0xba, 0xf7, 0xf6, 0xb5, 0x67, + 0x5d, 0xf5, 0x6f, 0xba, 0x1d, 0xdb, 0xf5, 0x2c, 0xc7, 0xa9, 0x1a, 0xc8, 0x84, 0x47, 0x07, 0x93, + 0xde, 0xa0, 0xd7, 0xb7, 0x6f, 0xbd, 0x6e, 0xc7, 0x19, 0x54, 0x01, 0x22, 0xb0, 0x7e, 0x60, 0xdc, + 0xf5, 0x6c, 0x57, 0xcf, 0x0b, 0xed, 0xce, 0x72, 0x4d, 0xc0, 0x6a, 0x4d, 0xc0, 0xe7, 0x9a, 0x80, + 0xd7, 0x0d, 0x31, 0x56, 0x1b, 0x62, 0xbc, 0x6f, 0x88, 0xf1, 0x70, 0x11, 0x46, 0x72, 0xf2, 0x34, + 0xa4, 0x81, 0x88, 0xd9, 0x5e, 0x3b, 0xa6, 0xdb, 0xb1, 0x05, 0xdb, 0x1d, 0x56, 0xbe, 0xcc, 0x78, + 0x96, 0x9f, 0x77, 0x58, 0xce, 0xef, 0xd3, 0xfa, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x74, 0xb7, + 0x37, 0xf5, 0x01, 0x00, 0x00, +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/action_by_ref_id.pb.go b/x/nftmngr/types/v063/action_by_ref_id.pb.go new file mode 100644 index 00000000..24429c13 --- /dev/null +++ b/x/nftmngr/types/v063/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/action_by_ref_id.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_094468541a4853b1, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v063.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v063/action_by_ref_id.proto", fileDescriptor_094468541a4853b1) +} + +var fileDescriptor_094468541a4853b1 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x7c, 0xfb, 0x27, 0xdb, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/attribute_definition.pb.go b/x/nftmngr/types/v063/attribute_definition.pb.go new file mode 100644 index 00000000..1ca53e45 --- /dev/null +++ b/x/nftmngr/types/v063/attribute_definition.pb.go @@ -0,0 +1,1155 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/attribute_definition.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_57b7a06a8224f791, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,7,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_57b7a06a8224f791, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v063.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v063/attribute_definition.proto", fileDescriptor_57b7a06a8224f791) +} + +var fileDescriptor_57b7a06a8224f791 = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x4c, + 0x10, 0xc6, 0xe3, 0x37, 0x49, 0x9b, 0xec, 0x2b, 0x50, 0xd9, 0x34, 0x60, 0x05, 0xc9, 0x6a, 0x7b, + 0x80, 0x9e, 0xec, 0xaa, 0x41, 0x85, 0x2b, 0x51, 0x54, 0x71, 0x69, 0x91, 0x4c, 0x05, 0x12, 0x17, + 0x6b, 0xdd, 0x5d, 0x27, 0xab, 0xda, 0xbb, 0x66, 0x3d, 0x2e, 0xc9, 0xb7, 0xe0, 0xc8, 0x47, 0xe2, + 0xd8, 0x23, 0x37, 0x50, 0xf2, 0x45, 0x90, 0x77, 0xf3, 0x87, 0xc4, 0x91, 0xf0, 0xcd, 0x3b, 0xb3, + 0xcf, 0xf3, 0x1b, 0xcf, 0xce, 0xa0, 0x97, 0x22, 0x82, 0x44, 0x8c, 0x94, 0x77, 0x7f, 0x76, 0xd1, + 0xf7, 0x08, 0x80, 0xe2, 0x61, 0x0e, 0x2c, 0xa0, 0x2c, 0xe2, 0x82, 0x03, 0x97, 0xc2, 0x4d, 0x95, + 0x04, 0x89, 0x8f, 0x61, 0xcc, 0x32, 0x3e, 0x11, 0x0c, 0xbe, 0x4a, 0x75, 0xe7, 0x16, 0x9f, 0x11, + 0xb8, 0x0b, 0xb5, 0x5b, 0xa8, 0x7b, 0xc7, 0x1b, 0x5e, 0x94, 0x67, 0x69, 0x4c, 0xa6, 0x81, 0x4c, + 0xd7, 0x2e, 0xbd, 0x17, 0x1b, 0x57, 0x44, 0x04, 0xc1, 0x1a, 0x79, 0x4f, 0xe2, 0x9c, 0x99, 0x7b, + 0x27, 0xbf, 0xea, 0xe8, 0x60, 0xc8, 0x22, 0x92, 0xc7, 0x70, 0xc5, 0x05, 0x7c, 0x2c, 0x52, 0x58, + 0xa2, 0xa7, 0x22, 0x4f, 0x42, 0xa6, 0xb6, 0x45, 0xb6, 0x75, 0x64, 0x9d, 0xfe, 0x7f, 0xfe, 0xda, + 0xfd, 0x67, 0x8d, 0xee, 0xb5, 0x36, 0x78, 0xbb, 0xd4, 0x6b, 0xe3, 0x77, 0x35, 0xff, 0x50, 0xec, + 0x88, 0x17, 0xc0, 0x0c, 0x14, 0x17, 0xa3, 0x12, 0xf0, 0xbf, 0xca, 0xc0, 0x0f, 0xda, 0xa0, 0x0c, + 0xcc, 0x76, 0xc4, 0xb1, 0x42, 0xcf, 0x42, 0x29, 0x63, 0x46, 0x44, 0x89, 0x58, 0xd7, 0xc4, 0x37, + 0x15, 0x88, 0x03, 0xe3, 0x50, 0x42, 0x76, 0xc3, 0x5d, 0x09, 0x1c, 0xa3, 0x6e, 0x14, 0x4b, 0x52, + 0x7a, 0x09, 0xbb, 0xa1, 0x89, 0x17, 0x15, 0x88, 0x97, 0x85, 0xbe, 0xc4, 0xeb, 0x44, 0xe5, 0xf0, + 0x60, 0x1f, 0x35, 0xb5, 0xfb, 0xc9, 0xf7, 0x3a, 0xea, 0xac, 0x72, 0xc3, 0xd5, 0xb4, 0x61, 0x8c, + 0x1a, 0x82, 0x24, 0xe6, 0x49, 0xdb, 0xbe, 0xfe, 0xc6, 0xcf, 0x51, 0x9b, 0x12, 0x20, 0x01, 0x4c, + 0x53, 0xd3, 0xfa, 0xb6, 0xdf, 0x2a, 0x02, 0x37, 0xd3, 0x94, 0xe1, 0x1e, 0x6a, 0x29, 0xf6, 0x25, + 0xe7, 0x8a, 0x51, 0xdd, 0xa4, 0x96, 0xbf, 0x3a, 0x63, 0x17, 0x75, 0x96, 0x63, 0xa8, 0xa9, 0x41, + 0xc4, 0x59, 0x4c, 0xf5, 0x9f, 0xb5, 0xfd, 0x27, 0x8b, 0x94, 0x2e, 0xec, 0xb2, 0x48, 0xe0, 0x4f, + 0xe8, 0xf1, 0xe6, 0xd8, 0xda, 0x4d, 0xdd, 0x84, 0xb3, 0x0a, 0x4d, 0x18, 0x1a, 0xe1, 0x7b, 0xad, + 0xf3, 0x1f, 0xd1, 0xbf, 0x8f, 0x98, 0x20, 0x4c, 0xcd, 0x38, 0x07, 0x09, 0x17, 0xb0, 0xe8, 0xf0, + 0x9e, 0x36, 0xef, 0x57, 0x31, 0xdf, 0xda, 0x05, 0xff, 0x80, 0x6e, 0x6f, 0xc7, 0x39, 0xea, 0x8e, + 0x39, 0xa5, 0x4c, 0x04, 0x20, 0x83, 0x84, 0xa8, 0x3b, 0x06, 0x69, 0x4c, 0x6e, 0x99, 0xbd, 0xaf, + 0x9b, 0xd2, 0x31, 0xc9, 0x1b, 0x79, 0xb5, 0x4e, 0xe1, 0x43, 0xd4, 0xe4, 0x82, 0xb2, 0x89, 0xdd, + 0x3a, 0xb2, 0x4e, 0x1b, 0xbe, 0x39, 0x0c, 0xae, 0x7f, 0xcc, 0x1c, 0xeb, 0x61, 0xe6, 0x58, 0xbf, + 0x67, 0x8e, 0xf5, 0x6d, 0xee, 0xd4, 0x1e, 0xe6, 0x4e, 0xed, 0xe7, 0xdc, 0xa9, 0x7d, 0x7e, 0x35, + 0xe2, 0x30, 0xce, 0x43, 0xf7, 0x56, 0x26, 0xde, 0x46, 0xd1, 0x9e, 0x29, 0xda, 0x9b, 0x78, 0xcb, + 0x05, 0x2f, 0xde, 0x2a, 0xd3, 0x6b, 0x1e, 0xee, 0xe9, 0x9d, 0xee, 0xff, 0x09, 0x00, 0x00, 0xff, + 0xff, 0x27, 0x22, 0x48, 0xf1, 0x6c, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x40 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/display_option.pb.go b/x/nftmngr/types/v063/display_option.pb.go new file mode 100644 index 00000000..358d77fe --- /dev/null +++ b/x/nftmngr/types/v063/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/display_option.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_3e2a2d4d967f94f1, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v063.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v063/display_option.proto", fileDescriptor_3e2a2d4d967f94f1) } + +var fileDescriptor_3e2a2d4d967f94f1 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x08, 0x18, 0xcb, 0x53, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/metadata_creator.pb.go b/x/nftmngr/types/v063/metadata_creator.pb.go new file mode 100644 index 00000000..509dde92 --- /dev/null +++ b/x/nftmngr/types/v063/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/metadata_creator.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_8aa4e3ddf81c9876, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_8aa4e3ddf81c9876, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v063.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v063.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v063/metadata_creator.proto", fileDescriptor_8aa4e3ddf81c9876) +} + +var fileDescriptor_8aa4e3ddf81c9876 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x0f, 0xca, 0xe5, 0x53, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_attribute_value.pb.go b/x/nftmngr/types/v063/nft_attribute_value.pb.go new file mode 100644 index 00000000..bfdd75e7 --- /dev/null +++ b/x/nftmngr/types/v063/nft_attribute_value.pb.go @@ -0,0 +1,1322 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_attribute_value.proto + +package v063 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4d2b4734ab08105, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4d2b4734ab08105, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4d2b4734ab08105, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4d2b4734ab08105, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d4d2b4734ab08105, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v063.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v063/nft_attribute_value.proto", fileDescriptor_d4d2b4734ab08105) +} + +var fileDescriptor_d4d2b4734ab08105 = []byte{ + // 370 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x4e, 0xea, 0x40, + 0x14, 0x86, 0xdb, 0x0b, 0xdc, 0x7b, 0x19, 0x57, 0x0e, 0xa0, 0xe8, 0xa2, 0x41, 0x16, 0x86, 0x44, + 0x9d, 0x31, 0x62, 0xd0, 0xad, 0x2c, 0x8c, 0x2b, 0x16, 0x98, 0xb8, 0x70, 0x43, 0x3a, 0x66, 0xa6, + 0x34, 0xb6, 0x33, 0x64, 0x3a, 0x45, 0x78, 0x0b, 0x1f, 0xcb, 0x25, 0x4b, 0x97, 0x06, 0x5e, 0xc1, + 0x07, 0x30, 0x1d, 0x68, 0x4c, 0x9d, 0x49, 0x64, 0x37, 0x39, 0xfd, 0xff, 0xff, 0x3b, 0x3d, 0x27, + 0x07, 0x1c, 0x73, 0xa6, 0x62, 0x1e, 0x48, 0x3c, 0x3d, 0xef, 0x75, 0x31, 0x67, 0x6a, 0xe4, 0x2b, + 0x25, 0x43, 0x92, 0x2a, 0x3a, 0x9a, 0xfa, 0x51, 0x4a, 0xd1, 0x44, 0x0a, 0x25, 0xe0, 0x91, 0x1a, + 0xd3, 0x24, 0x9c, 0x71, 0xaa, 0x5e, 0x84, 0x7c, 0x46, 0xd9, 0x93, 0x29, 0xb4, 0x31, 0xa3, 0xcc, + 0x7c, 0x78, 0x10, 0x08, 0x11, 0x44, 0x14, 0x6b, 0x03, 0x49, 0x19, 0xf6, 0xf9, 0x7c, 0xed, 0x6e, + 0x7f, 0x96, 0xc0, 0xee, 0x80, 0xa9, 0x9b, 0x3c, 0xfa, 0x21, 0x4b, 0x86, 0x10, 0x94, 0xb9, 0x1f, + 0xd3, 0xa6, 0xdb, 0x72, 0x3b, 0xd5, 0xa1, 0x7e, 0x43, 0x01, 0xf6, 0x78, 0x1a, 0x13, 0x2a, 0x7f, + 0xf6, 0xd1, 0xfc, 0xd3, 0x72, 0x3b, 0x3b, 0x17, 0x57, 0xe8, 0xd7, 0x46, 0xd0, 0x40, 0x07, 0x14, + 0x61, 0x77, 0xce, 0xb0, 0xce, 0x2d, 0xf5, 0x0c, 0x98, 0x28, 0x19, 0xf2, 0xc0, 0x00, 0x96, 0xb6, + 0x06, 0xde, 0xeb, 0x00, 0x13, 0x98, 0x58, 0xea, 0x50, 0x82, 0x7d, 0x22, 0x44, 0x44, 0x7d, 0x6e, + 0x10, 0xcb, 0x9a, 0x78, 0xbd, 0x05, 0xb1, 0xbf, 0x4e, 0x30, 0x90, 0x0d, 0x62, 0xfb, 0x00, 0x23, + 0xd0, 0x60, 0x91, 0xf0, 0x8d, 0xe5, 0x36, 0x2b, 0x9a, 0xd8, 0xdb, 0x82, 0x78, 0x9b, 0xf9, 0x0d, + 0x5e, 0x8d, 0x99, 0xe5, 0xfe, 0x3f, 0x50, 0xd1, 0xe9, 0xed, 0x53, 0x50, 0xb7, 0xed, 0x02, 0xd6, + 0x37, 0x02, 0xbd, 0xf9, 0xf2, 0xf0, 0x5b, 0x6d, 0x1b, 0x64, 0x51, 0x5d, 0xcd, 0xd5, 0x67, 0xa0, + 0x61, 0x1d, 0x42, 0x51, 0xfe, 0x3f, 0x97, 0x9f, 0x80, 0x9a, 0xe5, 0x0f, 0x8a, 0x62, 0x77, 0x23, + 0xee, 0x0f, 0xde, 0x96, 0x9e, 0xbb, 0x58, 0x7a, 0xee, 0xc7, 0xd2, 0x73, 0x5f, 0x57, 0x9e, 0xb3, + 0x58, 0x79, 0xce, 0xfb, 0xca, 0x73, 0x1e, 0x2f, 0x83, 0x50, 0x8d, 0x53, 0x82, 0x9e, 0x44, 0x8c, + 0x0b, 0x33, 0xc3, 0xeb, 0x99, 0xe1, 0x19, 0xce, 0x0f, 0x4a, 0xcd, 0x27, 0x34, 0xd1, 0x67, 0x45, + 0xfe, 0xea, 0x2b, 0xe8, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x75, 0xbf, 0x8e, 0x6d, 0x03, + 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_collection.pb.go b/x/nftmngr/types/v063/nft_collection.pb.go new file mode 100644 index 00000000..b38b6b03 --- /dev/null +++ b/x/nftmngr/types/v063/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_collection.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_993ed78899f595ad, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v063.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v063/nft_collection.proto", fileDescriptor_993ed78899f595ad) } + +var fileDescriptor_993ed78899f595ad = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x7b, 0xc5, 0xf3, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_data.pb.go b/x/nftmngr/types/v063/nft_data.pb.go new file mode 100644 index 00000000..9a2eeb09 --- /dev/null +++ b/x/nftmngr/types/v063/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_data.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e87908c01dff5c23, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v063.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_e87908c01dff5c23, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v063.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v063.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v063/nft_data.proto", fileDescriptor_e87908c01dff5c23) } + +var fileDescriptor_e87908c01dff5c23 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0x75, 0xe2, 0xc4, 0xa5, 0xd0, 0x09, 0x45, 0x42, 0x99, 0x94, 0x0e, 0x0e, 0x5c, + 0x2c, 0x37, 0x71, 0x12, 0x6b, 0xc4, 0xae, 0x9c, 0x27, 0x7b, 0xf9, 0x16, 0x7c, 0x2c, 0x8e, 0x3b, + 0x72, 0x44, 0xed, 0xe7, 0x40, 0x42, 0xb1, 0xd3, 0x00, 0xe5, 0x00, 0xd2, 0x6e, 0xc9, 0xef, 0xf9, + 0xff, 0x9f, 0x37, 0x3f, 0xe8, 0x40, 0xa4, 0x50, 0x88, 0x4c, 0xf9, 0x97, 0x2f, 0x5f, 0x8d, 0x7d, + 0x91, 0x02, 0x49, 0x28, 0x50, 0x6f, 0xa1, 0x24, 0x48, 0x7c, 0x08, 0x39, 0x2b, 0xf9, 0xb5, 0x60, + 0x70, 0x25, 0xd5, 0x85, 0x57, 0x7f, 0xa6, 0xe0, 0x35, 0x0e, 0xaf, 0x76, 0x3c, 0x39, 0xfa, 0xcb, + 0x4f, 0x01, 0x14, 0x9f, 0x57, 0xc0, 0xc8, 0x25, 0xfd, 0x5c, 0x31, 0x93, 0xea, 0xd9, 0x8f, 0x2e, + 0xea, 0x85, 0x29, 0x4c, 0x29, 0x50, 0x7c, 0x84, 0x1e, 0xd6, 0xc2, 0x32, 0xce, 0x59, 0x41, 0x49, + 0x2c, 0x13, 0xe6, 0x58, 0x43, 0x6b, 0xd4, 0x8f, 0x76, 0x45, 0x0a, 0x33, 0x4d, 0xdf, 0xca, 0x84, + 0xe1, 0xc7, 0x68, 0x1b, 0xe4, 0x05, 0x13, 0x84, 0x27, 0xce, 0x3d, 0x2d, 0xe8, 0xe9, 0xff, 0x20, + 0xc1, 0x4f, 0xd1, 0xc0, 0x84, 0xe4, 0x95, 0x60, 0xca, 0xe9, 0xea, 0x28, 0xd2, 0xe8, 0xac, 0x26, + 0x98, 0x22, 0xac, 0x43, 0x84, 0x26, 0x89, 0x62, 0x65, 0x49, 0xe0, 0x66, 0xc1, 0x9c, 0xfb, 0x43, + 0x6b, 0xb4, 0x77, 0x3c, 0xf6, 0xfe, 0x39, 0x97, 0xa7, 0xb3, 0x4c, 0x8c, 0xf7, 0xfc, 0x66, 0xc1, + 0x22, 0x5b, 0x6e, 0x10, 0x7c, 0x88, 0x76, 0xa4, 0xe2, 0x19, 0x17, 0x84, 0x17, 0x34, 0x63, 0xce, + 0x03, 0xdd, 0xc4, 0xc0, 0xb0, 0xa0, 0x46, 0xf8, 0x39, 0xda, 0x95, 0x22, 0xce, 0x69, 0xab, 0xd9, + 0xd2, 0x9a, 0x9d, 0x06, 0x1a, 0xd1, 0x01, 0xea, 0x9b, 0x59, 0x2a, 0xc5, 0x9d, 0x9e, 0x16, 0x98, + 0xb9, 0x3f, 0x28, 0x8e, 0x29, 0xda, 0x6f, 0x8a, 0xb4, 0x7b, 0x2d, 0x9d, 0xed, 0x61, 0x77, 0x34, + 0x38, 0x3e, 0xf9, 0x8f, 0x31, 0xc2, 0x14, 0x26, 0x6b, 0xdf, 0xc7, 0xfa, 0x39, 0x22, 0xdb, 0xa4, + 0x6b, 0x69, 0x89, 0x63, 0x84, 0xd7, 0x4d, 0xfe, 0x56, 0xa3, 0x7f, 0x87, 0x1a, 0xfb, 0x4d, 0xbe, + 0x5f, 0x45, 0x5e, 0xbc, 0x46, 0xf6, 0xe6, 0x4a, 0x31, 0x46, 0x7b, 0x67, 0x51, 0xf0, 0x2e, 0x08, + 0xc9, 0x64, 0x3a, 0x8d, 0x4e, 0x67, 0x33, 0xbb, 0x83, 0x1f, 0x21, 0x3b, 0x08, 0xcf, 0x4f, 0xa3, + 0x70, 0xf2, 0xbe, 0xa5, 0xd6, 0x9b, 0xf0, 0xeb, 0xd2, 0xb5, 0x6e, 0x97, 0xae, 0xf5, 0x7d, 0xe9, + 0x5a, 0x5f, 0x56, 0x6e, 0xe7, 0x76, 0xe5, 0x76, 0xbe, 0xad, 0xdc, 0xce, 0xa7, 0x93, 0x8c, 0x43, + 0x5e, 0xcd, 0xbd, 0x58, 0x16, 0xfe, 0x1f, 0xad, 0xfa, 0xa6, 0x55, 0xff, 0xda, 0x5f, 0x5f, 0x68, + 0x7d, 0x01, 0xa5, 0xbe, 0xd3, 0xf9, 0x96, 0x3e, 0xca, 0xf1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xb3, 0xee, 0xa3, 0x57, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_fee_balance.pb.go b/x/nftmngr/types/v063/nft_fee_balance.pb.go new file mode 100644 index 00000000..a4fd37c4 --- /dev/null +++ b/x/nftmngr/types/v063/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_fee_balance.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_3d8c071a73f52019, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v063.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v063/nft_fee_balance.proto", fileDescriptor_3d8c071a73f52019) +} + +var fileDescriptor_3d8c071a73f52019 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x87, 0x94, + 0x66, 0x7e, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_fee_config.pb.go b/x/nftmngr/types/v063/nft_fee_config.pb.go new file mode 100644 index 00000000..e787ca47 --- /dev/null +++ b/x/nftmngr/types/v063/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_fee_config.proto + +package v063 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5cede4e0db7f5437, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v063.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_5cede4e0db7f5437, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5cede4e0db7f5437, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_5cede4e0db7f5437, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v063.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v063.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v063.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v063.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v063/nft_fee_config.proto", fileDescriptor_5cede4e0db7f5437) } + +var fileDescriptor_5cede4e0db7f5437 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x6e, 0xe9, 0x7f, 0x4c, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_schema.pb.go b/x/nftmngr/types/v063/nft_schema.pb.go new file mode 100644 index 00000000..d40d441e --- /dev/null +++ b/x/nftmngr/types/v063/nft_schema.pb.go @@ -0,0 +1,696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_schema.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_1a57188ae196118e, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v063.NFTSchema") +} + +func init() { proto.RegisterFile("nftmngr/v063/nft_schema.proto", fileDescriptor_1a57188ae196118e) } + +var fileDescriptor_1a57188ae196118e = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x9b, 0xfe, 0xfb, 0x5a, 0xf7, 0x93, 0x00, 0x8b, 0xc1, 0xaa, 0x84, 0x15, 0x98, 0xc2, + 0x50, 0x07, 0x51, 0xc4, 0x5e, 0x40, 0x8c, 0x45, 0x04, 0xc4, 0xc0, 0x12, 0xb9, 0xa9, 0xd3, 0x58, + 0x28, 0x76, 0xe5, 0xb8, 0xb4, 0xe5, 0x29, 0x78, 0x2c, 0xc6, 0x8e, 0x8c, 0xa8, 0x95, 0x78, 0x0e, + 0x64, 0xa7, 0x85, 0x66, 0x82, 0xed, 0xf8, 0x5c, 0x9f, 0x9f, 0xef, 0xf5, 0x05, 0x07, 0x22, 0xd6, + 0xa9, 0x18, 0x29, 0xff, 0xf9, 0xe4, 0xbc, 0xeb, 0x8b, 0x58, 0x87, 0x59, 0x94, 0xb0, 0x94, 0x92, + 0xb1, 0x92, 0x5a, 0xc2, 0x43, 0x9d, 0xb0, 0x8c, 0xcf, 0x04, 0xd3, 0x53, 0xa9, 0x9e, 0x88, 0x91, + 0xb1, 0x26, 0xeb, 0x0c, 0x31, 0x99, 0xb6, 0x5b, 0x20, 0x48, 0x11, 0x46, 0x09, 0xe5, 0x22, 0x1c, + 0x52, 0xbd, 0x86, 0xb4, 0x71, 0xf1, 0x86, 0xe2, 0xa3, 0x42, 0xfd, 0xe8, 0xb3, 0x0c, 0x9a, 0xfd, + 0xeb, 0xfb, 0x3b, 0xfb, 0x30, 0x84, 0xa0, 0x1a, 0xc9, 0x21, 0x43, 0x8e, 0xeb, 0x78, 0xcd, 0xc0, + 0x6a, 0xe3, 0x09, 0x9a, 0x32, 0x54, 0xce, 0x3d, 0xa3, 0xe1, 0x3e, 0xa8, 0xc9, 0xa9, 0x60, 0x0a, + 0x55, 0xac, 0x99, 0x1f, 0xe0, 0x31, 0xd8, 0xcd, 0xe6, 0x99, 0x66, 0x69, 0x48, 0x23, 0xcd, 0xa5, + 0x60, 0x2a, 0x43, 0x55, 0xb7, 0xe2, 0x35, 0x83, 0x9d, 0xdc, 0xef, 0x6d, 0x6c, 0xd8, 0x07, 0xad, + 0xad, 0x5e, 0x50, 0xcd, 0x75, 0xbc, 0xd6, 0x69, 0x87, 0xfc, 0x3a, 0x31, 0xb9, 0xb1, 0xa9, 0x2b, + 0xaa, 0x69, 0x00, 0xe4, 0xb7, 0x86, 0xb7, 0xe0, 0xbf, 0x14, 0x3f, 0xc3, 0xa3, 0xba, 0x05, 0x92, + 0xbf, 0x00, 0xc5, 0xa5, 0x89, 0x59, 0x62, 0x6b, 0xcd, 0xb0, 0x48, 0x0c, 0x00, 0xcf, 0x1e, 0x98, + 0xe2, 0x31, 0x67, 0x43, 0xf4, 0xcf, 0x75, 0xbc, 0x46, 0xb0, 0xe5, 0xc0, 0x0e, 0x80, 0x29, 0x17, + 0x3a, 0xa4, 0x13, 0x9d, 0x48, 0xc5, 0x5f, 0xa8, 0x99, 0x0d, 0x35, 0xec, 0x87, 0xec, 0x99, 0x4a, + 0x6f, 0xbb, 0x70, 0xd1, 0x7f, 0x5b, 0x62, 0x67, 0xb1, 0xc4, 0xce, 0xc7, 0x12, 0x3b, 0xaf, 0x2b, + 0x5c, 0x5a, 0xac, 0x70, 0xe9, 0x7d, 0x85, 0x4b, 0x8f, 0x67, 0x23, 0xae, 0x93, 0xc9, 0x80, 0x44, + 0x32, 0xf5, 0x0b, 0xfd, 0xfa, 0x79, 0xbf, 0xfe, 0xcc, 0xdf, 0x2c, 0x51, 0xcf, 0xc7, 0x2c, 0xb3, + 0xab, 0x1c, 0xd4, 0xed, 0xfe, 0xba, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x6e, 0x23, 0xee, + 0x45, 0x02, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/nft_schema_by_contract.pb.go b/x/nftmngr/types/v063/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..0bd8321c --- /dev/null +++ b/x/nftmngr/types/v063/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/nft_schema_by_contract.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_7d87f91bcd3b6c09, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v063.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v063/nft_schema_by_contract.proto", fileDescriptor_7d87f91bcd3b6c09) +} + +var fileDescriptor_7d87f91bcd3b6c09 = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xec, 0xa2, 0x73, 0x7a, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/on_chain_data.pb.go b/x/nftmngr/types/v063/on_chain_data.pb.go new file mode 100644 index 00000000..7f8a10a1 --- /dev/null +++ b/x/nftmngr/types/v063/on_chain_data.pb.go @@ -0,0 +1,895 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/on_chain_data.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_49c6471aadb9de43, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,8,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_49c6471aadb9de43, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainData) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainData) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v063.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v063.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v063/on_chain_data.proto", fileDescriptor_49c6471aadb9de43) } + +var fileDescriptor_49c6471aadb9de43 = []byte{ + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4f, 0x8f, 0xd2, 0x40, + 0x18, 0xc6, 0xa9, 0xbb, 0x22, 0x0e, 0xec, 0xae, 0x99, 0x78, 0xa8, 0x7b, 0xa8, 0xdd, 0x35, 0x11, + 0x3c, 0xd8, 0x1a, 0x21, 0xdc, 0x15, 0xf4, 0x88, 0x66, 0x48, 0x3c, 0x98, 0x98, 0x66, 0x28, 0x53, + 0x98, 0x40, 0xa7, 0x38, 0xf3, 0x16, 0xf1, 0x5b, 0xe8, 0xb7, 0xf2, 0xc8, 0xd1, 0xa3, 0x81, 0x2f, + 0x62, 0x3a, 0x33, 0xfc, 0xe9, 0xc1, 0x48, 0xb2, 0xb7, 0xe6, 0x99, 0xf7, 0xf9, 0x3d, 0xe9, 0xf3, + 0xbe, 0xc8, 0x17, 0x09, 0xa4, 0x62, 0x22, 0xc3, 0xe5, 0xab, 0x6e, 0x3b, 0xcc, 0x44, 0x14, 0x4f, + 0x29, 0x17, 0xd1, 0x98, 0x02, 0x0d, 0x16, 0x32, 0x83, 0x0c, 0xdf, 0xc0, 0x94, 0x29, 0xbe, 0x12, + 0x0c, 0xbe, 0x65, 0x72, 0x16, 0x14, 0x9f, 0x09, 0x04, 0xd6, 0x16, 0x14, 0xb6, 0xeb, 0x66, 0x09, + 0x42, 0x01, 0x24, 0x1f, 0xe5, 0xc0, 0xa2, 0x31, 0x4b, 0xb8, 0xe0, 0xc0, 0x33, 0x61, 0x58, 0xd7, + 0x4f, 0xca, 0x83, 0xf1, 0x3f, 0x9f, 0x14, 0x50, 0xc8, 0x95, 0x7d, 0x7a, 0x5e, 0x7a, 0x12, 0x09, + 0x44, 0x87, 0x88, 0x25, 0x9d, 0xe7, 0xcc, 0xcc, 0xdd, 0x7e, 0x44, 0xe8, 0xfd, 0x9c, 0x4e, 0x86, + 0xda, 0x8b, 0x9f, 0xa2, 0xba, 0xa1, 0x44, 0x82, 0xa6, 0xcc, 0x75, 0x7c, 0xa7, 0xf5, 0x90, 0x20, + 0x23, 0x0d, 0x68, 0xca, 0xf0, 0x0d, 0x6a, 0xd8, 0x01, 0x0d, 0x71, 0xef, 0xf9, 0x4e, 0xab, 0x46, + 0xac, 0xe9, 0x53, 0x21, 0xdd, 0xfe, 0x3c, 0x47, 0xf5, 0x0f, 0xa2, 0x57, 0x54, 0xd2, 0xa7, 0x40, + 0x71, 0x13, 0x5d, 0x49, 0xb6, 0x64, 0x74, 0x1e, 0x49, 0xf6, 0x35, 0xe7, 0x92, 0x8d, 0x35, 0xb7, + 0x46, 0x2e, 0x8d, 0x4c, 0xac, 0x8a, 0x9f, 0xa1, 0x0b, 0x3b, 0xa8, 0x58, 0x2c, 0x19, 0x68, 0x78, + 0x83, 0x34, 0x8c, 0x38, 0xd4, 0x1a, 0xfe, 0x82, 0x2e, 0x4b, 0x3f, 0xa3, 0xdc, 0x33, 0xff, 0xac, + 0x55, 0x7f, 0xdd, 0x0d, 0xfe, 0x5b, 0x79, 0xf0, 0x66, 0x67, 0xea, 0xef, 0x3b, 0x26, 0x17, 0x22, + 0x81, 0xbd, 0xae, 0x30, 0x45, 0x8f, 0x20, 0x9b, 0x31, 0x71, 0x1c, 0x70, 0x7e, 0xa7, 0x80, 0x2b, + 0xcd, 0x3b, 0x8a, 0xe8, 0xa1, 0x07, 0x66, 0x89, 0xca, 0xbd, 0xaf, 0xc9, 0x2f, 0x4e, 0x21, 0x6b, + 0x07, 0xd9, 0x39, 0xf1, 0x3b, 0x54, 0x35, 0x9d, 0xbb, 0x55, 0xcd, 0x78, 0x79, 0x02, 0xe3, 0xb0, + 0x67, 0x62, 0xcd, 0x38, 0x41, 0x8f, 0xcb, 0x6d, 0xda, 0xb5, 0xd6, 0x34, 0xb4, 0x73, 0x02, 0x74, + 0x70, 0x54, 0x9f, 0xde, 0x3f, 0xc1, 0xa5, 0x46, 0xb5, 0xf6, 0x76, 0xf0, 0x6b, 0xe3, 0x39, 0xeb, + 0x8d, 0xe7, 0xfc, 0xd9, 0x78, 0xce, 0x8f, 0xad, 0x57, 0x59, 0x6f, 0xbd, 0xca, 0xef, 0xad, 0x57, + 0xf9, 0xdc, 0x99, 0x70, 0x98, 0xe6, 0xa3, 0x20, 0xce, 0xd2, 0xb0, 0x94, 0x16, 0x9a, 0xb4, 0x70, + 0x15, 0xee, 0x2e, 0x19, 0xbe, 0x2f, 0x98, 0xd2, 0xf7, 0x3c, 0xaa, 0xea, 0xe3, 0x6d, 0xff, 0x0d, + 0x00, 0x00, 0xff, 0xff, 0x08, 0xa4, 0x6c, 0x22, 0x8a, 0x03, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/opensea_display_option.pb.go b/x/nftmngr/types/v063/opensea_display_option.pb.go new file mode 100644 index 00000000..23d24dc3 --- /dev/null +++ b/x/nftmngr/types/v063/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/opensea_display_option.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_087851de00e16472, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v063.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v063/opensea_display_option.proto", fileDescriptor_087851de00e16472) +} + +var fileDescriptor_087851de00e16472 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x5b, 0xff, 0x1e, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/organization.pb.go b/x/nftmngr/types/v063/organization.pb.go new file mode 100644 index 00000000..4823a976 --- /dev/null +++ b/x/nftmngr/types/v063/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/organization.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_2feb32cbbc96f705, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v063.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v063/organization.proto", fileDescriptor_2feb32cbbc96f705) } + +var fileDescriptor_2feb32cbbc96f705 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0xbb, 0xb0, 0x98, 0x04, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/origin_data.pb.go b/x/nftmngr/types/v063/origin_data.pb.go new file mode 100644 index 00000000..51c083cc --- /dev/null +++ b/x/nftmngr/types/v063/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/origin_data.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_666311fb5d1f88a0, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_666311fb5d1f88a0, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v063.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v063.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_666311fb5d1f88a0, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v063.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v063.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v063.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v063/origin_data.proto", fileDescriptor_666311fb5d1f88a0) } + +var fileDescriptor_666311fb5d1f88a0 = []byte{ + // 444 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0x28, 0xe4, 0x9e, 0xb4, 0x05, 0x22, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x62, 0x6d, 0xe2, + 0x8d, 0x33, 0x02, 0xef, 0x56, 0xe3, 0x71, 0x28, 0x7f, 0xc1, 0x67, 0x71, 0xec, 0x91, 0x23, 0x4a, + 0xbe, 0x80, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0xa5, 0x48, 0xd0, 0xdb, 0xea, 0xed, 0x7b, 0x6f, 0xde, + 0x1b, 0x0d, 0x78, 0x7a, 0xc2, 0xa9, 0x4e, 0x28, 0x98, 0x3d, 0xed, 0x1c, 0x06, 0x86, 0x30, 0x41, + 0x1d, 0xc5, 0x92, 0xa5, 0x7f, 0x46, 0x86, 0x8d, 0xd8, 0xe3, 0xa9, 0xca, 0xf0, 0x5c, 0x2b, 0xfe, + 0x6c, 0xe8, 0xa3, 0xbf, 0x7c, 0x4e, 0xd8, 0x2f, 0x45, 0xfe, 0x52, 0xf4, 0x60, 0xff, 0x92, 0x85, + 0x64, 0x26, 0x1c, 0xe5, 0xac, 0xa2, 0x58, 0x4d, 0x50, 0x23, 0xa3, 0xd1, 0x85, 0xd7, 0xc3, 0x9f, + 0x75, 0x80, 0xa1, 0x9d, 0x70, 0x2c, 0x59, 0x8a, 0x3d, 0xb8, 0x5d, 0xce, 0x1b, 0x4f, 0x25, 0x6a, + 0xd7, 0x69, 0x39, 0xed, 0x8d, 0x70, 0xb3, 0xc0, 0x8e, 0x96, 0x90, 0xe8, 0xc0, 0xfd, 0x8a, 0x62, + 0x34, 0x93, 0x1c, 0x73, 0x24, 0xe3, 0x98, 0x54, 0x96, 0xb9, 0x37, 0x2c, 0xfb, 0x5e, 0xc9, 0x2e, + 0x7f, 0xbb, 0xc5, 0xa7, 0x78, 0x04, 0xdb, 0xa5, 0x6e, 0x24, 0x33, 0x15, 0xe5, 0x84, 0x6e, 0xdd, + 0xf2, 0xef, 0x14, 0x70, 0x4f, 0x66, 0xea, 0x94, 0x50, 0x20, 0xec, 0xfe, 0xce, 0x6b, 0x66, 0x8a, + 0x08, 0x63, 0xd4, 0x89, 0xbb, 0xd6, 0x72, 0xda, 0x5b, 0xcf, 0x3a, 0xfe, 0x3f, 0xcb, 0xfb, 0xdd, + 0x4a, 0x3e, 0x5c, 0xa9, 0xc3, 0x1d, 0x79, 0x15, 0x14, 0xfb, 0xb0, 0x9d, 0x2a, 0x96, 0xcb, 0xd5, + 0x46, 0x13, 0x43, 0xa9, 0x64, 0x77, 0xdd, 0x46, 0xda, 0xaa, 0xe0, 0x97, 0x16, 0x15, 0x63, 0xb8, + 0x5b, 0x66, 0x5f, 0xd9, 0x64, 0x6e, 0xa3, 0x55, 0x6f, 0x6f, 0x5e, 0x2f, 0xd0, 0xf1, 0x6a, 0xfd, + 0x61, 0xb3, 0x30, 0x5c, 0x7d, 0x65, 0x22, 0x81, 0xdd, 0x9c, 0x30, 0x22, 0xc5, 0x84, 0x6a, 0x26, + 0x3f, 0x45, 0xa9, 0xe2, 0xa9, 0x89, 0xdd, 0x9b, 0xb6, 0xf8, 0x8b, 0xff, 0x98, 0x73, 0x1a, 0xf6, + 0xc3, 0x4a, 0xfd, 0xd6, 0x8a, 0x43, 0x91, 0x13, 0xfe, 0x81, 0x1d, 0x3c, 0x81, 0x9d, 0xbf, 0xac, + 0x48, 0x00, 0x34, 0x86, 0x61, 0xff, 0x55, 0x7f, 0xd0, 0xac, 0x89, 0x0d, 0x58, 0x3f, 0x7a, 0xdd, + 0xed, 0x0f, 0x9a, 0xce, 0xc1, 0x63, 0x10, 0x57, 0x7d, 0xc5, 0x2d, 0x58, 0xeb, 0x75, 0xdf, 0x9d, + 0x14, 0xd4, 0xf7, 0xc3, 0x37, 0x27, 0x83, 0xa6, 0xd3, 0x1b, 0x7c, 0x9b, 0x7b, 0xce, 0xc5, 0xdc, + 0x73, 0x7e, 0xcc, 0x3d, 0xe7, 0xeb, 0xc2, 0xab, 0x5d, 0x2c, 0xbc, 0xda, 0xf7, 0x85, 0x57, 0xfb, + 0xf0, 0x3c, 0x41, 0x9e, 0xe6, 0x23, 0x7f, 0x6c, 0xd2, 0xe0, 0x52, 0x8f, 0xa0, 0xe8, 0x11, 0x9c, + 0x07, 0xd5, 0xc5, 0xf2, 0x97, 0x33, 0x95, 0xd9, 0xbb, 0x1d, 0x35, 0xec, 0x8d, 0x1e, 0xfe, 0x0a, + 0x00, 0x00, 0xff, 0xff, 0xee, 0x55, 0xa2, 0xf1, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v063/status.pb.go b/x/nftmngr/types/v063/status.pb.go new file mode 100644 index 00000000..78d049a3 --- /dev/null +++ b/x/nftmngr/types/v063/status.pb.go @@ -0,0 +1,306 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v063/status.proto + +package v063 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Status struct { + FirstMintComplete bool `protobuf:"varint,1,opt,name=first_mint_complete,json=firstMintComplete,proto3" json:"first_mint_complete,omitempty"` +} + +func (m *Status) Reset() { *m = Status{} } +func (m *Status) String() string { return proto.CompactTextString(m) } +func (*Status) ProtoMessage() {} +func (*Status) Descriptor() ([]byte, []int) { + return fileDescriptor_4236607ba77789fd, []int{0} +} +func (m *Status) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Status.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 *Status) XXX_Merge(src proto.Message) { + xxx_messageInfo_Status.Merge(m, src) +} +func (m *Status) XXX_Size() int { + return m.Size() +} +func (m *Status) XXX_DiscardUnknown() { + xxx_messageInfo_Status.DiscardUnknown(m) +} + +var xxx_messageInfo_Status proto.InternalMessageInfo + +func (m *Status) GetFirstMintComplete() bool { + if m != nil { + return m.FirstMintComplete + } + return false +} + +func init() { + proto.RegisterType((*Status)(nil), "thesixnetwork.sixnft.nftmngr.v063.Status") +} + +func init() { proto.RegisterFile("nftmngr/v063/status.proto", fileDescriptor_4236607ba77789fd) } + +var fileDescriptor_4236607ba77789fd = []byte{ + // 187 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x33, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xea, 0xf5, 0x40, 0xea, 0x95, + 0x2c, 0xb8, 0xd8, 0x82, 0xc1, 0x5a, 0x84, 0xf4, 0xb8, 0x84, 0xd3, 0x32, 0x8b, 0x8a, 0x4b, 0xe2, + 0x73, 0x33, 0xf3, 0x4a, 0xe2, 0x93, 0xf3, 0x73, 0x0b, 0x72, 0x52, 0x4b, 0x52, 0x25, 0x18, 0x15, + 0x18, 0x35, 0x38, 0x82, 0x04, 0xc1, 0x52, 0xbe, 0x99, 0x79, 0x25, 0xce, 0x50, 0x09, 0x27, 0xbf, + 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, + 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x81, 0x3e, 0xc4, 0x05, 0xfa, 0x15, 0xfa, 0x30, + 0x37, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x5d, 0x9e, 0xc4, 0x06, 0x76, 0xb3, 0x31, 0x20, 0x00, + 0x00, 0xff, 0xff, 0xb5, 0x24, 0x81, 0x1f, 0xd0, 0x00, 0x00, 0x00, +} + +func (m *Status) 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 *Status) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FirstMintComplete { + i-- + if m.FirstMintComplete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintStatus(dAtA []byte, offset int, v uint64) int { + offset -= sovStatus(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Status) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FirstMintComplete { + n += 2 + } + return n +} + +func sovStatus(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozStatus(x uint64) (n int) { + return sovStatus(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Status) 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 ErrIntOverflowStatus + } + 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: Status: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstMintComplete", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStatus + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.FirstMintComplete = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipStatus(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthStatus + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipStatus(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, ErrIntOverflowStatus + } + 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, ErrIntOverflowStatus + } + 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, ErrIntOverflowStatus + } + 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, ErrInvalidLengthStatus + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupStatus + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthStatus + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthStatus = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowStatus = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupStatus = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/action.pb.go b/x/nftmngr/types/v072/action.pb.go new file mode 100644 index 00000000..208fb372 --- /dev/null +++ b/x/nftmngr/types/v072/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/action.proto + +package v072 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_1e49bda9bae5ce1d, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_1e49bda9bae5ce1d, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v072.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_1e49bda9bae5ce1d, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v072.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v072.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v072.Action") +} + +func init() { proto.RegisterFile("nftmngr/v072/action.proto", fileDescriptor_1e49bda9bae5ce1d) } + +var fileDescriptor_1e49bda9bae5ce1d = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x26, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x57, 0x06, 0x89, 0xb3, 0x0b, 0x3e, 0x20, 0x19, 0x47, 0x72, 0x02, 0xa8, 0x5c, 0xac, + 0x8d, 0xbd, 0x71, 0x2c, 0x6c, 0xaf, 0xb1, 0xd7, 0x4d, 0xfb, 0x16, 0x5c, 0x78, 0x06, 0x5e, 0xa5, + 0xc7, 0x1e, 0x39, 0x21, 0x94, 0xbc, 0x08, 0xda, 0x5d, 0x17, 0x29, 0xf4, 0xd0, 0xde, 0xfe, 0xfd, + 0xe6, 0x9f, 0xf1, 0xcc, 0x78, 0xe0, 0xe3, 0x62, 0xc9, 0xf3, 0x22, 0xa9, 0xac, 0xf3, 0x93, 0x37, + 0xb6, 0x45, 0x22, 0x9e, 0xb2, 0xc2, 0x2c, 0x2b, 0xc6, 0x19, 0x7a, 0xce, 0x57, 0xb4, 0x4e, 0x2f, + 0x0a, 0xca, 0xd7, 0xac, 0xfa, 0x6a, 0x0a, 0xb9, 0xe4, 0x66, 0xeb, 0x37, 0x85, 0x7f, 0x72, 0x94, + 0xb0, 0x84, 0x49, 0xb7, 0x25, 0x94, 0x4a, 0x3c, 0xfe, 0x01, 0xe0, 0x81, 0xaa, 0x14, 0x96, 0xa4, + 0x22, 0x79, 0x8d, 0x10, 0xec, 0x17, 0x24, 0xa7, 0x18, 0xe8, 0xc0, 0x18, 0x05, 0x52, 0x0b, 0x16, + 0xd3, 0x3a, 0xc2, 0x5d, 0xc5, 0x84, 0x46, 0x4f, 0xe0, 0x28, 0x26, 0x9c, 0x84, 0xfc, 0xb2, 0xa4, + 0xb8, 0x27, 0x03, 0x43, 0x01, 0xe6, 0x97, 0x25, 0x45, 0x13, 0x38, 0xac, 0xe8, 0xb7, 0x26, 0xad, + 0x68, 0x8c, 0xfb, 0x3a, 0x30, 0x86, 0xc1, 0xbf, 0x37, 0x7a, 0x01, 0x0f, 0x62, 0xba, 0x24, 0x4d, + 0xc6, 0xc3, 0x73, 0x92, 0x35, 0x14, 0xef, 0xc9, 0xe4, 0x87, 0x2d, 0xfc, 0x24, 0xd8, 0xf1, 0xcf, + 0x2e, 0x1c, 0x38, 0xb2, 0xaf, 0x7b, 0x37, 0x84, 0xe1, 0x7e, 0x9c, 0xd6, 0x64, 0x91, 0xa9, 0x76, + 0x86, 0xc1, 0xcd, 0x53, 0xb8, 0xd7, 0x2b, 0x5a, 0xc8, 0x4e, 0x46, 0x81, 0xd4, 0x82, 0x71, 0xc1, + 0xf6, 0xf4, 0x9e, 0x60, 0x42, 0xa3, 0x08, 0x8e, 0x49, 0x96, 0xb1, 0x35, 0x8d, 0x43, 0xb5, 0x13, + 0x5a, 0xe1, 0x81, 0x0e, 0x8c, 0x47, 0xb6, 0x6d, 0xde, 0xb9, 0x60, 0xd3, 0x51, 0xa9, 0x4e, 0x9b, + 0x79, 0xda, 0xbf, 0xfa, 0xfd, 0x0c, 0x04, 0x87, 0x64, 0x17, 0x23, 0x1f, 0x0e, 0xd4, 0xa6, 0xf1, + 0xbe, 0xde, 0x33, 0x1e, 0xd8, 0x27, 0xf7, 0x28, 0xbd, 0xf3, 0x87, 0xda, 0xc2, 0x6d, 0x95, 0x97, + 0x39, 0x3c, 0xfc, 0xef, 0xcb, 0x08, 0xc3, 0x23, 0xc7, 0xf3, 0xa6, 0x9f, 0xdd, 0x77, 0xa1, 0xf3, + 0x76, 0xfe, 0x7e, 0xea, 0xbb, 0x41, 0xe8, 0x78, 0xde, 0xb8, 0x83, 0x74, 0xf8, 0xf4, 0x56, 0x64, + 0x76, 0x36, 0x9b, 0xbb, 0x1f, 0xc2, 0xa9, 0xef, 0x9d, 0x8d, 0x01, 0xd2, 0xe0, 0xe4, 0x96, 0xe3, + 0xe3, 0xcc, 0x0d, 0x54, 0xbc, 0x7b, 0xea, 0x5f, 0x6d, 0x34, 0x70, 0xbd, 0xd1, 0xc0, 0x9f, 0x8d, + 0x06, 0xbe, 0x6f, 0xb5, 0xce, 0xf5, 0x56, 0xeb, 0xfc, 0xda, 0x6a, 0x9d, 0x2f, 0xaf, 0x93, 0x94, + 0xaf, 0x9a, 0x85, 0x19, 0xb1, 0xdc, 0xda, 0x19, 0xc9, 0x52, 0x23, 0x59, 0x17, 0xd6, 0xcd, 0x01, + 0x8b, 0x9b, 0xa9, 0xe5, 0x19, 0x2f, 0x06, 0xf2, 0x0e, 0x5f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0x2b, 0x87, 0x59, 0x8f, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/action_by_ref_id.pb.go b/x/nftmngr/types/v072/action_by_ref_id.pb.go new file mode 100644 index 00000000..db59e6c7 --- /dev/null +++ b/x/nftmngr/types/v072/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/action_by_ref_id.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_7f9466236b327515, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v072.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v072/action_by_ref_id.proto", fileDescriptor_7f9466236b327515) +} + +var fileDescriptor_7f9466236b327515 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x22, 0xf7, 0x0c, 0xaf, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/attribute_definition.pb.go b/x/nftmngr/types/v072/attribute_definition.pb.go new file mode 100644 index 00000000..f34f65d4 --- /dev/null +++ b/x/nftmngr/types/v072/attribute_definition.pb.go @@ -0,0 +1,1155 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/attribute_definition.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_65bd8c31af95e09e, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,7,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_65bd8c31af95e09e, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v072.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v072/attribute_definition.proto", fileDescriptor_65bd8c31af95e09e) +} + +var fileDescriptor_65bd8c31af95e09e = []byte{ + // 505 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x4c, + 0x10, 0xc6, 0xe3, 0x37, 0x49, 0x9b, 0xec, 0x2b, 0x50, 0xd9, 0x34, 0x60, 0x05, 0xc9, 0x6a, 0x7b, + 0x80, 0x9e, 0xec, 0x2a, 0x45, 0x94, 0x2b, 0x51, 0x54, 0x71, 0x69, 0x91, 0x4c, 0x05, 0x12, 0x17, + 0x6b, 0xdd, 0x5d, 0x27, 0xab, 0xda, 0xbb, 0x66, 0x3d, 0x2e, 0xc9, 0xb7, 0xe0, 0xc8, 0x47, 0xe2, + 0xd8, 0x23, 0x37, 0x50, 0xf2, 0x45, 0x90, 0x77, 0xf3, 0x87, 0xc4, 0x91, 0xf0, 0xcd, 0x3b, 0xb3, + 0xcf, 0xf3, 0x1b, 0xcf, 0xce, 0xa0, 0x97, 0x22, 0x82, 0x44, 0x8c, 0x94, 0x77, 0x7f, 0x76, 0xd1, + 0xf7, 0x08, 0x80, 0xe2, 0x61, 0x0e, 0x2c, 0xa0, 0x2c, 0xe2, 0x82, 0x03, 0x97, 0xc2, 0x4d, 0x95, + 0x04, 0x89, 0x8f, 0x61, 0xcc, 0x32, 0x3e, 0x11, 0x0c, 0xbe, 0x4a, 0x75, 0xe7, 0x16, 0x9f, 0x11, + 0xb8, 0x0b, 0xb5, 0x5b, 0xa8, 0x7b, 0xc7, 0x1b, 0x5e, 0x94, 0x67, 0x69, 0x4c, 0xa6, 0x81, 0x4c, + 0xd7, 0x2e, 0xbd, 0x17, 0x1b, 0x57, 0x44, 0x04, 0xc1, 0x1a, 0x79, 0x4f, 0xe2, 0x9c, 0x99, 0x7b, + 0x27, 0xbf, 0xea, 0xe8, 0x60, 0xc8, 0x22, 0x92, 0xc7, 0x70, 0xc5, 0x05, 0x7c, 0x2c, 0x52, 0x58, + 0xa2, 0xa7, 0x22, 0x4f, 0x42, 0xa6, 0xb6, 0x45, 0xb6, 0x75, 0x64, 0x9d, 0xfe, 0xdf, 0xbf, 0x70, + 0xff, 0x59, 0xa3, 0x7b, 0xad, 0x0d, 0xde, 0x2e, 0xf5, 0xda, 0xf8, 0x5d, 0xcd, 0x3f, 0x14, 0x3b, + 0xe2, 0x05, 0x30, 0x03, 0xc5, 0xc5, 0xa8, 0x04, 0xfc, 0xaf, 0x32, 0xf0, 0x83, 0x36, 0x28, 0x03, + 0xb3, 0x1d, 0x71, 0xac, 0xd0, 0xb3, 0x50, 0xca, 0x98, 0x11, 0x51, 0x22, 0xd6, 0x35, 0xf1, 0x4d, + 0x05, 0xe2, 0xc0, 0x38, 0x94, 0x90, 0xdd, 0x70, 0x57, 0x02, 0xc7, 0xa8, 0x1b, 0xc5, 0x92, 0x94, + 0x5e, 0xc2, 0x6e, 0x68, 0xe2, 0xeb, 0x0a, 0xc4, 0xcb, 0x42, 0x5f, 0xe2, 0x75, 0xa2, 0x72, 0x78, + 0xb0, 0x8f, 0x9a, 0xda, 0xfd, 0xe4, 0x7b, 0x1d, 0x75, 0x56, 0xb9, 0xe1, 0x6a, 0xda, 0x30, 0x46, + 0x0d, 0x41, 0x12, 0xf3, 0xa4, 0x6d, 0x5f, 0x7f, 0xe3, 0xe7, 0xa8, 0x4d, 0x09, 0x90, 0x00, 0xa6, + 0xa9, 0x69, 0x7d, 0xdb, 0x6f, 0x15, 0x81, 0x9b, 0x69, 0xca, 0x70, 0x0f, 0xb5, 0x14, 0xfb, 0x92, + 0x73, 0xc5, 0xa8, 0x6e, 0x52, 0xcb, 0x5f, 0x9d, 0xb1, 0x8b, 0x3a, 0xcb, 0x31, 0xd4, 0xd4, 0x20, + 0xe2, 0x2c, 0xa6, 0xfa, 0xcf, 0xda, 0xfe, 0x93, 0x45, 0x4a, 0x17, 0x76, 0x59, 0x24, 0xf0, 0x27, + 0xf4, 0x78, 0x73, 0x6c, 0xed, 0xa6, 0x6e, 0xc2, 0x59, 0x85, 0x26, 0x0c, 0x8d, 0xf0, 0xbd, 0xd6, + 0xf9, 0x8f, 0xe8, 0xdf, 0x47, 0x4c, 0x10, 0xa6, 0x66, 0x9c, 0x83, 0x84, 0x0b, 0x58, 0x74, 0x78, + 0x4f, 0x9b, 0x9f, 0x57, 0x31, 0xdf, 0xda, 0x05, 0xff, 0x80, 0x6e, 0x6f, 0x47, 0x1f, 0x75, 0xc7, + 0x9c, 0x52, 0x26, 0x02, 0x90, 0x41, 0x42, 0xd4, 0x1d, 0x83, 0x34, 0x26, 0xb7, 0xcc, 0xde, 0xd7, + 0x4d, 0xe9, 0x98, 0xe4, 0x8d, 0xbc, 0x5a, 0xa7, 0xf0, 0x21, 0x6a, 0x72, 0x41, 0xd9, 0xc4, 0x6e, + 0x1d, 0x59, 0xa7, 0x0d, 0xdf, 0x1c, 0x06, 0xd7, 0x3f, 0x66, 0x8e, 0xf5, 0x30, 0x73, 0xac, 0xdf, + 0x33, 0xc7, 0xfa, 0x36, 0x77, 0x6a, 0x0f, 0x73, 0xa7, 0xf6, 0x73, 0xee, 0xd4, 0x3e, 0xbf, 0x1a, + 0x71, 0x18, 0xe7, 0xa1, 0x7b, 0x2b, 0x13, 0x6f, 0xa3, 0x68, 0xcf, 0x14, 0xed, 0x4d, 0xbc, 0xe5, + 0x82, 0x17, 0x6f, 0x95, 0xe9, 0x35, 0x0f, 0xf7, 0xf4, 0x4e, 0x9f, 0xff, 0x09, 0x00, 0x00, 0xff, + 0xff, 0x5f, 0x71, 0x55, 0x65, 0x6c, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x40 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/display_option.pb.go b/x/nftmngr/types/v072/display_option.pb.go new file mode 100644 index 00000000..3116522d --- /dev/null +++ b/x/nftmngr/types/v072/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/display_option.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_bc039bb7e41f1dba, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v072.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v072/display_option.proto", fileDescriptor_bc039bb7e41f1dba) } + +var fileDescriptor_bc039bb7e41f1dba = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x3c, 0x24, 0xf2, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/metadata_creator.pb.go b/x/nftmngr/types/v072/metadata_creator.pb.go new file mode 100644 index 00000000..788d453a --- /dev/null +++ b/x/nftmngr/types/v072/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/metadata_creator.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_2f91746e02d2e4cc, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_2f91746e02d2e4cc, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v072.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v072.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v072/metadata_creator.proto", fileDescriptor_2f91746e02d2e4cc) +} + +var fileDescriptor_2f91746e02d2e4cc = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x23, 0x2e, 0x82, 0x5d, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_attribute_value.pb.go b/x/nftmngr/types/v072/nft_attribute_value.pb.go new file mode 100644 index 00000000..5ff5b183 --- /dev/null +++ b/x/nftmngr/types/v072/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_attribute_value.proto + +package v072 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a8664bc3df003060, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a8664bc3df003060, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a8664bc3df003060, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a8664bc3df003060, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a8664bc3df003060, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v072.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v072/nft_attribute_value.proto", fileDescriptor_a8664bc3df003060) +} + +var fileDescriptor_a8664bc3df003060 = []byte{ + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0xda, 0x30, + 0x18, 0xc7, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0x3c, 0xb1, 0x69, 0xec, 0x3a, 0x0e, 0x55, 0x2f, 0xe5, 0x90, 0x56, 0x3d, 0xf4, 0x12, 0x39, + 0xe0, 0x84, 0x88, 0xc4, 0x46, 0x8e, 0x43, 0xe1, 0x2d, 0xfa, 0x18, 0x7d, 0x94, 0x1e, 0x39, 0xf6, + 0x58, 0xc1, 0x8b, 0x54, 0x71, 0x88, 0x50, 0x9a, 0x48, 0xe5, 0x66, 0xf9, 0xfb, 0xff, 0xff, 0xbf, + 0x2f, 0x9f, 0xf3, 0xc1, 0x6f, 0xcc, 0x97, 0x31, 0x0b, 0x04, 0x5e, 0xfd, 0x1a, 0x0d, 0x31, 0xf3, + 0xa5, 0x4b, 0xa4, 0x14, 0xa1, 0x97, 0x4a, 0xea, 0xae, 0x48, 0x94, 0x52, 0x7b, 0x29, 0xb8, 0xe4, + 0xe8, 0xab, 0x9c, 0xd3, 0x24, 0x5c, 0x33, 0x2a, 0x6f, 0xb9, 0x58, 0xd8, 0xd9, 0xd1, 0x97, 0xf6, + 0xc1, 0x6c, 0x67, 0xe6, 0x2f, 0x9f, 0x03, 0xce, 0x83, 0x88, 0x62, 0x65, 0xf0, 0x52, 0x1f, 0x13, + 0xb6, 0xc9, 0xdd, 0xfd, 0x7b, 0x1d, 0x7e, 0x98, 0xf8, 0xf2, 0x7f, 0x11, 0x7d, 0x9d, 0x25, 0x23, + 0x04, 0x75, 0x46, 0x62, 0x6a, 0x82, 0x1e, 0x18, 0xb4, 0x1d, 0x75, 0x46, 0x1c, 0x7e, 0x64, 0x69, + 0xec, 0x51, 0xf1, 0xb2, 0x0f, 0xf3, 0x4d, 0x0f, 0x0c, 0xde, 0x0f, 0x47, 0xf6, 0xab, 0x8d, 0xd8, + 0x13, 0x15, 0x50, 0x86, 0x9d, 0x6b, 0x4e, 0x97, 0xd5, 0xdc, 0x67, 0xc0, 0x44, 0x8a, 0x90, 0x05, + 0x15, 0xe0, 0xdb, 0x93, 0x81, 0x97, 0x2a, 0xa0, 0x0a, 0x4c, 0x6a, 0xee, 0x91, 0x80, 0x9f, 0x3c, + 0xce, 0x23, 0x4a, 0x58, 0x85, 0xa8, 0x2b, 0xe2, 0xbf, 0x13, 0x88, 0xe3, 0x3c, 0xa1, 0x82, 0x34, + 0xbc, 0xba, 0x02, 0x8a, 0xa0, 0xe1, 0x47, 0x9c, 0x54, 0x1e, 0xd7, 0x6c, 0x28, 0xe2, 0xdf, 0x13, + 0x88, 0x67, 0x99, 0xbf, 0xc2, 0xeb, 0xf8, 0xd5, 0x6b, 0x34, 0x84, 0xc6, 0x3c, 0x9c, 0xcd, 0x28, + 0x73, 0x25, 0x77, 0x63, 0x22, 0x16, 0x54, 0x2e, 0x23, 0x32, 0xa5, 0x66, 0xb3, 0x07, 0x06, 0x2d, + 0xa7, 0x93, 0x17, 0xaf, 0xf8, 0xc5, 0xb1, 0x34, 0x7e, 0x07, 0x1b, 0xaa, 0xa3, 0xfe, 0x0f, 0xd8, + 0xad, 0x7b, 0x3f, 0xd4, 0x3d, 0x08, 0xd4, 0xdf, 0xa2, 0x3b, 0x47, 0x75, 0xdd, 0xf0, 0xcb, 0xea, + 0x76, 0xa1, 0xfe, 0x09, 0x8d, 0xda, 0xc1, 0x95, 0xe5, 0xad, 0x42, 0xfe, 0x1d, 0x76, 0x6a, 0xbe, + 0xba, 0x2c, 0x06, 0x07, 0xf1, 0x78, 0xf2, 0xb0, 0xb3, 0xc0, 0x76, 0x67, 0x81, 0xa7, 0x9d, 0x05, + 0xee, 0xf6, 0x96, 0xb6, 0xdd, 0x5b, 0xda, 0xe3, 0xde, 0xd2, 0x6e, 0xfe, 0x04, 0xa1, 0x9c, 0xa7, + 0x9e, 0x3d, 0xe5, 0x31, 0x2e, 0xcd, 0x19, 0xe7, 0x73, 0xc6, 0x6b, 0x5c, 0x2c, 0xa1, 0xdc, 0x2c, + 0x69, 0xa2, 0x56, 0xd1, 0x6b, 0xaa, 0xcd, 0xf9, 0xfd, 0x1c, 0x00, 0x00, 0xff, 0xff, 0x01, 0xad, + 0xeb, 0xf7, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_collection.pb.go b/x/nftmngr/types/v072/nft_collection.pb.go new file mode 100644 index 00000000..6c5626ee --- /dev/null +++ b/x/nftmngr/types/v072/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_collection.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_438c1d15ec61d5fe, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v072.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v072/nft_collection.proto", fileDescriptor_438c1d15ec61d5fe) } + +var fileDescriptor_438c1d15ec61d5fe = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xf0, 0x16, 0xcb, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_data.pb.go b/x/nftmngr/types/v072/nft_data.pb.go new file mode 100644 index 00000000..c9fa12ac --- /dev/null +++ b/x/nftmngr/types/v072/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_data.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_6215a346add7b87f, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v072.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_6215a346add7b87f, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v072.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v072.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v072/nft_data.proto", fileDescriptor_6215a346add7b87f) } + +var fileDescriptor_6215a346add7b87f = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0x6e, 0x12, 0x17, 0x2e, 0x85, 0x4e, 0x28, 0x12, 0xca, 0xa4, 0x74, 0x70, 0xe0, + 0x62, 0xb9, 0x89, 0x93, 0x58, 0x23, 0x76, 0xe5, 0x3c, 0xd9, 0xcb, 0xb7, 0xe0, 0x63, 0x71, 0xdc, + 0x91, 0x23, 0x6a, 0x3f, 0x07, 0x12, 0x8a, 0x9d, 0x06, 0x28, 0x07, 0x90, 0x76, 0x4b, 0x7e, 0xcf, + 0xff, 0xff, 0xbc, 0xf9, 0x41, 0x07, 0x22, 0x85, 0x42, 0x64, 0xca, 0xbf, 0x7c, 0xf9, 0x6a, 0xec, + 0x8b, 0x14, 0x48, 0x42, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x43, 0xc8, 0x59, 0xc9, 0xaf, 0x05, + 0x83, 0x2b, 0xa9, 0x2e, 0xbc, 0xfa, 0x33, 0x05, 0xaf, 0x71, 0x78, 0xb5, 0xe3, 0xc9, 0xd1, 0x5f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x02, 0x46, 0x2e, 0xe9, 0xe7, 0x8a, 0x99, 0x54, 0xcf, 0x7e, 0x74, + 0x51, 0x2f, 0x4c, 0x61, 0x4a, 0x81, 0xe2, 0x23, 0xf4, 0xb0, 0x16, 0x96, 0x71, 0xce, 0x0a, 0x4a, + 0x62, 0x99, 0x30, 0xc7, 0x1a, 0x5a, 0xa3, 0x7e, 0xb4, 0x2b, 0x52, 0x98, 0x69, 0xfa, 0x56, 0x26, + 0x0c, 0x3f, 0x46, 0xdb, 0x20, 0x2f, 0x98, 0x20, 0x3c, 0x71, 0xee, 0x69, 0x41, 0x4f, 0xff, 0x07, + 0x09, 0x7e, 0x8a, 0x06, 0x26, 0x24, 0xaf, 0x04, 0x53, 0x4e, 0x57, 0x47, 0x91, 0x46, 0x67, 0x35, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x49, 0x14, 0x2b, 0x4b, 0x02, 0x37, 0x0b, 0xe6, 0xdc, 0x1f, + 0x5a, 0xa3, 0xbd, 0xf1, 0xb1, 0xf7, 0xcf, 0xb9, 0x3c, 0x9d, 0x65, 0x62, 0xbc, 0xe7, 0x37, 0x0b, + 0x16, 0xd9, 0x72, 0x83, 0xe0, 0x43, 0xb4, 0x23, 0x15, 0xcf, 0xb8, 0x20, 0xbc, 0xa0, 0x19, 0x73, + 0x1e, 0xe8, 0x26, 0x06, 0x86, 0x05, 0x35, 0xc2, 0xcf, 0xd1, 0xae, 0x14, 0x71, 0x4e, 0x5b, 0xcd, + 0x96, 0xd6, 0xec, 0x34, 0xd0, 0x88, 0x0e, 0x50, 0xdf, 0xcc, 0x52, 0x29, 0xee, 0xf4, 0xb4, 0xc0, + 0xcc, 0xfd, 0x41, 0x71, 0x4c, 0xd1, 0x7e, 0x53, 0xa4, 0xdd, 0x6b, 0xe9, 0x6c, 0x0f, 0xbb, 0xa3, + 0xc1, 0xf8, 0xe4, 0x3f, 0xc6, 0x08, 0x53, 0x98, 0xac, 0x7d, 0x1f, 0xeb, 0xe7, 0x88, 0x6c, 0x93, + 0xae, 0xa5, 0x25, 0x8e, 0x11, 0x5e, 0x37, 0xf9, 0x5b, 0x8d, 0xfe, 0x1d, 0x6a, 0xec, 0x37, 0xf9, + 0x7e, 0x15, 0x79, 0xf1, 0x1a, 0xd9, 0x9b, 0x2b, 0xc5, 0x18, 0xed, 0x9d, 0x45, 0xc1, 0xbb, 0x20, + 0x24, 0x93, 0xe9, 0x34, 0x3a, 0x9d, 0xcd, 0xec, 0x0e, 0x7e, 0x84, 0xec, 0x20, 0x3c, 0x3f, 0x8d, + 0xc2, 0xc9, 0xfb, 0x96, 0x5a, 0x6f, 0xc2, 0xaf, 0x4b, 0xd7, 0xba, 0x5d, 0xba, 0xd6, 0xf7, 0xa5, + 0x6b, 0x7d, 0x59, 0xb9, 0x9d, 0xdb, 0x95, 0xdb, 0xf9, 0xb6, 0x72, 0x3b, 0x9f, 0x4e, 0x32, 0x0e, + 0x79, 0x35, 0xf7, 0x62, 0x59, 0xf8, 0x7f, 0xb4, 0xea, 0x9b, 0x56, 0xfd, 0x6b, 0x7f, 0x7d, 0xa1, + 0xf5, 0x05, 0x94, 0xfa, 0x4e, 0xe7, 0x5b, 0xfa, 0x28, 0x8f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x48, 0x55, 0x25, 0x2e, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_fee_balance.pb.go b/x/nftmngr/types/v072/nft_fee_balance.pb.go new file mode 100644 index 00000000..0733b3d9 --- /dev/null +++ b/x/nftmngr/types/v072/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_fee_balance.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_9c27f224ed37ba05, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v072.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v072/nft_fee_balance.proto", fileDescriptor_9c27f224ed37ba05) +} + +var fileDescriptor_9c27f224ed37ba05 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x5c, + 0xa5, 0xc6, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_fee_config.pb.go b/x/nftmngr/types/v072/nft_fee_config.pb.go new file mode 100644 index 00000000..b9613a1c --- /dev/null +++ b/x/nftmngr/types/v072/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_fee_config.proto + +package v072 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_eeeff668b90e527d, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v072.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_eeeff668b90e527d, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_eeeff668b90e527d, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_eeeff668b90e527d, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v072.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v072.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v072.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v072.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v072/nft_fee_config.proto", fileDescriptor_eeeff668b90e527d) } + +var fileDescriptor_eeeff668b90e527d = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x10, 0x33, 0xfe, 0x28, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_schema.pb.go b/x/nftmngr/types/v072/nft_schema.pb.go new file mode 100644 index 00000000..ca3b4200 --- /dev/null +++ b/x/nftmngr/types/v072/nft_schema.pb.go @@ -0,0 +1,696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_schema.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_f2d6f2a3ec80fe2d, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v072.NFTSchema") +} + +func init() { proto.RegisterFile("nftmngr/v072/nft_schema.proto", fileDescriptor_f2d6f2a3ec80fe2d) } + +var fileDescriptor_f2d6f2a3ec80fe2d = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x9b, 0xfe, 0xfb, 0x5a, 0xf7, 0x93, 0x00, 0x8b, 0xc1, 0xaa, 0x84, 0x15, 0x98, 0xc2, + 0x50, 0x07, 0x15, 0x24, 0xe6, 0x02, 0x62, 0x2c, 0x22, 0x20, 0x06, 0x96, 0xc8, 0x4d, 0x9d, 0xc6, + 0x42, 0xb1, 0x2b, 0xc7, 0xa5, 0x2d, 0x4f, 0xc1, 0x63, 0x31, 0x76, 0x64, 0x44, 0xad, 0xc4, 0x73, + 0x20, 0x3b, 0x2d, 0x34, 0x13, 0x6c, 0xc7, 0xe7, 0xfa, 0xfc, 0x7c, 0xaf, 0x2f, 0x38, 0x10, 0xb1, + 0x4e, 0xc5, 0x48, 0xf9, 0xcf, 0x27, 0xe7, 0x5d, 0x5f, 0xc4, 0x3a, 0xcc, 0xa2, 0x84, 0xa5, 0x94, + 0x8c, 0x95, 0xd4, 0x12, 0x1e, 0xea, 0x84, 0x65, 0x7c, 0x26, 0x98, 0x9e, 0x4a, 0xf5, 0x44, 0x8c, + 0x8c, 0x35, 0x59, 0x67, 0x88, 0xc9, 0xb4, 0xdd, 0x02, 0x41, 0x8a, 0x30, 0x4a, 0x28, 0x17, 0xe1, + 0x90, 0xea, 0x35, 0xa4, 0x8d, 0x8b, 0x37, 0x14, 0x1f, 0x15, 0xea, 0x47, 0x9f, 0x65, 0xd0, 0xec, + 0x5f, 0xdf, 0xdf, 0xd9, 0x87, 0x21, 0x04, 0xd5, 0x48, 0x0e, 0x19, 0x72, 0x5c, 0xc7, 0x6b, 0x06, + 0x56, 0x1b, 0x4f, 0xd0, 0x94, 0xa1, 0x72, 0xee, 0x19, 0x0d, 0xf7, 0x41, 0x4d, 0x4e, 0x05, 0x53, + 0xa8, 0x62, 0xcd, 0xfc, 0x00, 0x8f, 0xc1, 0x6e, 0x36, 0xcf, 0x34, 0x4b, 0x43, 0x1a, 0x69, 0x2e, + 0x05, 0x53, 0x19, 0xaa, 0xba, 0x15, 0xaf, 0x19, 0xec, 0xe4, 0x7e, 0x6f, 0x63, 0xc3, 0x3e, 0x68, + 0x6d, 0xf5, 0x82, 0x6a, 0xae, 0xe3, 0xb5, 0xba, 0x1d, 0xf2, 0xeb, 0xc4, 0xe4, 0xc6, 0xa6, 0xae, + 0xa8, 0xa6, 0x01, 0x90, 0xdf, 0x1a, 0xde, 0x82, 0xff, 0x52, 0xfc, 0x0c, 0x8f, 0xea, 0x16, 0x48, + 0xfe, 0x02, 0x14, 0x97, 0x26, 0x66, 0x89, 0xad, 0x35, 0xc3, 0x22, 0x31, 0x00, 0x3c, 0x7b, 0x60, + 0x8a, 0xc7, 0x9c, 0x0d, 0xd1, 0x3f, 0xd7, 0xf1, 0x1a, 0xc1, 0x96, 0x03, 0x3b, 0x00, 0xa6, 0x5c, + 0xe8, 0x90, 0x4e, 0x74, 0x22, 0x15, 0x7f, 0xa1, 0x66, 0x36, 0xd4, 0xb0, 0x1f, 0xb2, 0x67, 0x2a, + 0xbd, 0xed, 0xc2, 0x45, 0xff, 0x6d, 0x89, 0x9d, 0xc5, 0x12, 0x3b, 0x1f, 0x4b, 0xec, 0xbc, 0xae, + 0x70, 0x69, 0xb1, 0xc2, 0xa5, 0xf7, 0x15, 0x2e, 0x3d, 0x9e, 0x8d, 0xb8, 0x4e, 0x26, 0x03, 0x12, + 0xc9, 0xd4, 0x2f, 0xf4, 0xeb, 0xe7, 0xfd, 0xfa, 0x33, 0x7f, 0xb3, 0x44, 0x3d, 0x1f, 0xb3, 0xcc, + 0xae, 0x72, 0x50, 0xb7, 0xfb, 0x3b, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x65, 0x9b, 0xb0, 0xe3, + 0x45, 0x02, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/nft_schema_by_contract.pb.go b/x/nftmngr/types/v072/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..abff8963 --- /dev/null +++ b/x/nftmngr/types/v072/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/nft_schema_by_contract.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_dd15db7cd8c861cf, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v072.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v072/nft_schema_by_contract.proto", fileDescriptor_dd15db7cd8c861cf) +} + +var fileDescriptor_dd15db7cd8c861cf = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x02, 0x25, 0x31, 0x31, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/on_chain_data.pb.go b/x/nftmngr/types/v072/on_chain_data.pb.go new file mode 100644 index 00000000..c37bbbb4 --- /dev/null +++ b/x/nftmngr/types/v072/on_chain_data.pb.go @@ -0,0 +1,895 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/on_chain_data.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_25bff78157aa25ad, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,8,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_25bff78157aa25ad, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainData) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainData) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v072.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v072.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v072/on_chain_data.proto", fileDescriptor_25bff78157aa25ad) } + +var fileDescriptor_25bff78157aa25ad = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x41, 0xcf, 0xd2, 0x30, + 0x1c, 0xc6, 0x99, 0xef, 0x2b, 0x62, 0xe1, 0x7d, 0x31, 0x8d, 0x87, 0xc9, 0x61, 0x0e, 0x4c, 0x04, + 0x0f, 0x6e, 0x06, 0x89, 0x9e, 0x15, 0xf4, 0x88, 0xa6, 0x24, 0x1e, 0x4c, 0xcc, 0x52, 0x46, 0x07, + 0x0d, 0xac, 0xc3, 0xf6, 0x3f, 0xc4, 0x6f, 0xa1, 0xdf, 0xca, 0x23, 0x47, 0x8f, 0x06, 0xbe, 0x88, + 0x59, 0x3b, 0x60, 0x3b, 0x49, 0xe2, 0xad, 0x79, 0xfa, 0x7f, 0x7e, 0x4f, 0xfa, 0xfc, 0x8b, 0x5c, + 0x11, 0x41, 0x2c, 0xe6, 0xd2, 0xdf, 0xbc, 0x78, 0xdd, 0xf7, 0x13, 0x11, 0x84, 0x0b, 0xca, 0x45, + 0x30, 0xa3, 0x40, 0xbd, 0xb5, 0x4c, 0x20, 0xc1, 0x6d, 0x58, 0x30, 0xc5, 0xb7, 0x82, 0xc1, 0xb7, + 0x44, 0x2e, 0xbd, 0xec, 0x18, 0x81, 0x97, 0xdb, 0xbc, 0xcc, 0xd6, 0xea, 0x96, 0x20, 0x14, 0x40, + 0xf2, 0x69, 0x0a, 0x2c, 0x98, 0xb1, 0x88, 0x0b, 0x0e, 0x3c, 0x11, 0x86, 0xd5, 0x7a, 0x54, 0x1e, + 0x0c, 0x0b, 0x57, 0x4f, 0x4b, 0x57, 0x22, 0x82, 0xe0, 0xcc, 0xd9, 0xd0, 0x55, 0xca, 0xcc, 0x5c, + 0xe7, 0x23, 0x42, 0xef, 0x57, 0x74, 0x3e, 0x01, 0x0a, 0xa9, 0xc2, 0x8f, 0x51, 0x5d, 0xe9, 0x53, + 0x20, 0x68, 0xcc, 0x6c, 0xcb, 0xb5, 0x7a, 0xf7, 0x09, 0x32, 0xd2, 0x98, 0xc6, 0x0c, 0xb7, 0x51, + 0x23, 0x1f, 0xd0, 0x10, 0xfb, 0x8e, 0x6b, 0xf5, 0x6a, 0x24, 0x37, 0x7d, 0xca, 0xa4, 0xce, 0xcf, + 0x6b, 0x54, 0xff, 0x20, 0x86, 0xd9, 0xbb, 0x47, 0x14, 0x28, 0xee, 0xa2, 0xa6, 0x64, 0x1b, 0x46, + 0x57, 0x81, 0x64, 0x5f, 0x53, 0x2e, 0xd9, 0x4c, 0x73, 0x6b, 0xe4, 0xd6, 0xc8, 0x24, 0x57, 0xf1, + 0x13, 0x74, 0x93, 0x0f, 0x2a, 0x16, 0x4a, 0x06, 0x1a, 0xde, 0x20, 0x0d, 0x23, 0x4e, 0xb4, 0x86, + 0xbf, 0xa0, 0xdb, 0xd2, 0x63, 0x94, 0x7d, 0xe5, 0x5e, 0xf5, 0xea, 0xfd, 0x57, 0xde, 0x3f, 0x7b, + 0xf5, 0xde, 0x1c, 0x4d, 0xa3, 0x53, 0x91, 0xe4, 0x46, 0x44, 0x70, 0xd2, 0x15, 0xa6, 0xe8, 0x01, + 0x24, 0x4b, 0x26, 0x8a, 0x01, 0xd7, 0xff, 0x15, 0xd0, 0xd4, 0xbc, 0x42, 0xc4, 0x10, 0xdd, 0x33, + 0x9b, 0x52, 0xf6, 0x5d, 0x4d, 0x7e, 0x76, 0x09, 0x59, 0x3b, 0xc8, 0xd1, 0x89, 0xdf, 0xa1, 0xaa, + 0xe9, 0xdc, 0xae, 0x6a, 0xc6, 0xf3, 0x0b, 0x18, 0xe7, 0x3d, 0x93, 0xdc, 0x8c, 0x23, 0xf4, 0xb0, + 0xdc, 0x66, 0xbe, 0xd6, 0x9a, 0x86, 0x0e, 0x2e, 0x80, 0x8e, 0x0b, 0xf5, 0xe9, 0xfd, 0x13, 0x5c, + 0x6a, 0x54, 0x6b, 0x6f, 0xc7, 0xbf, 0xf6, 0x8e, 0xb5, 0xdb, 0x3b, 0xd6, 0x9f, 0xbd, 0x63, 0xfd, + 0x38, 0x38, 0x95, 0xdd, 0xc1, 0xa9, 0xfc, 0x3e, 0x38, 0x95, 0xcf, 0x83, 0x39, 0x87, 0x45, 0x3a, + 0xf5, 0xc2, 0x24, 0xf6, 0x4b, 0x69, 0xbe, 0x49, 0xf3, 0xb7, 0xfe, 0xf1, 0x27, 0xc3, 0xf7, 0x35, + 0x53, 0xfa, 0x3f, 0x4f, 0xab, 0xfa, 0xf3, 0xbe, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x9d, + 0x35, 0xfa, 0x6f, 0x03, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/opensea_display_option.pb.go b/x/nftmngr/types/v072/opensea_display_option.pb.go new file mode 100644 index 00000000..0f68da81 --- /dev/null +++ b/x/nftmngr/types/v072/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/opensea_display_option.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_7ce27f412d754547, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v072.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v072/opensea_display_option.proto", fileDescriptor_7ce27f412d754547) +} + +var fileDescriptor_7ce27f412d754547 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x91, 0x78, 0xea, 0x38, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/organization.pb.go b/x/nftmngr/types/v072/organization.pb.go new file mode 100644 index 00000000..4a3fe772 --- /dev/null +++ b/x/nftmngr/types/v072/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/organization.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_72ae5627e0465388, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v072.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v072/organization.proto", fileDescriptor_72ae5627e0465388) } + +var fileDescriptor_72ae5627e0465388 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0x30, 0x37, 0xd2, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x84, 0xd3, 0xa3, 0x2a, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v072/origin_data.pb.go b/x/nftmngr/types/v072/origin_data.pb.go new file mode 100644 index 00000000..f3860923 --- /dev/null +++ b/x/nftmngr/types/v072/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v072/origin_data.proto + +package v072 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4c88cfba039698aa, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4c88cfba039698aa, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v072.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v072.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_4c88cfba039698aa, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v072.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v072.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v072.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v072/origin_data.proto", fileDescriptor_4c88cfba039698aa) } + +var fileDescriptor_4c88cfba039698aa = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0x0a, 0x94, 0x73, 0xd2, 0x16, 0x88, 0x10, 0x89, 0x64, 0xe8, 0x85, 0x8b, 0xb5, 0x89, + 0x37, 0xce, 0x08, 0xbc, 0x5b, 0x8d, 0xc7, 0xa1, 0xfc, 0x05, 0x9f, 0xc5, 0xb1, 0x47, 0x8e, 0x28, + 0xf9, 0x02, 0xfe, 0x00, 0x65, 0x6d, 0x07, 0x95, 0x20, 0x01, 0xb7, 0xd5, 0xdb, 0xf7, 0xde, 0xbc, + 0x37, 0x1a, 0xf0, 0xf4, 0x98, 0x53, 0x9d, 0x50, 0x30, 0x7d, 0xfc, 0xfc, 0x30, 0x30, 0x84, 0x09, + 0xea, 0x28, 0x96, 0x2c, 0xfd, 0x73, 0x32, 0x6c, 0xc4, 0x1e, 0x4f, 0x54, 0x86, 0x17, 0x5a, 0xf1, + 0x27, 0x43, 0x1f, 0xfc, 0xc5, 0x73, 0xcc, 0x7e, 0x29, 0xf2, 0x17, 0xa2, 0x7b, 0xfb, 0x57, 0x2c, + 0x24, 0x33, 0xe1, 0x30, 0x67, 0x15, 0xc5, 0x6a, 0x8c, 0x1a, 0x19, 0x8d, 0x2e, 0xbc, 0xee, 0xff, + 0xa8, 0x03, 0x0c, 0xec, 0x84, 0x13, 0xc9, 0x52, 0xec, 0xc1, 0xcd, 0x72, 0xde, 0x68, 0x22, 0x51, + 0xbb, 0x4e, 0xcb, 0x69, 0x6f, 0x84, 0x9b, 0x05, 0x76, 0xbc, 0x80, 0xc4, 0x11, 0xdc, 0xad, 0x28, + 0x46, 0x33, 0xc9, 0x11, 0x47, 0x32, 0x8e, 0x49, 0x65, 0x99, 0x7b, 0xcd, 0xb2, 0xef, 0x94, 0xec, + 0xf2, 0xb7, 0x53, 0x7c, 0x8a, 0x07, 0xb0, 0x5d, 0xea, 0x86, 0x32, 0x53, 0x51, 0x4e, 0xe8, 0xd6, + 0x2d, 0xff, 0x56, 0x01, 0x77, 0x65, 0xa6, 0xce, 0x08, 0x05, 0xc2, 0xee, 0xaf, 0xbc, 0x66, 0xaa, + 0x88, 0x30, 0x46, 0x9d, 0xb8, 0x6b, 0x2d, 0xa7, 0xbd, 0x75, 0x78, 0xe4, 0xff, 0xb5, 0xbc, 0xdf, + 0xa9, 0xe4, 0x83, 0xa5, 0x3a, 0xdc, 0x91, 0xab, 0xa0, 0xd8, 0x87, 0xed, 0x54, 0xb1, 0x5c, 0xac, + 0x36, 0x1a, 0x1b, 0x4a, 0x25, 0xbb, 0xeb, 0x36, 0xd2, 0x56, 0x05, 0xbf, 0xb0, 0xa8, 0x18, 0xc1, + 0xed, 0x32, 0xfb, 0xd2, 0x26, 0x73, 0x1b, 0xad, 0x7a, 0x7b, 0xf3, 0xff, 0x02, 0x9d, 0x2c, 0xd7, + 0x1f, 0x36, 0x0b, 0xc3, 0xe5, 0x57, 0x26, 0x12, 0xd8, 0xcd, 0x09, 0x23, 0x52, 0x4c, 0xa8, 0xa6, + 0xf2, 0x63, 0x94, 0x2a, 0x9e, 0x98, 0xd8, 0xbd, 0x6e, 0x8b, 0x3f, 0xfb, 0x87, 0x39, 0x67, 0x61, + 0x2f, 0xac, 0xd4, 0x6f, 0xac, 0x38, 0x14, 0x39, 0xe1, 0x6f, 0xd8, 0xc1, 0x23, 0xd8, 0xf9, 0xc3, + 0x8a, 0x04, 0x40, 0x63, 0x10, 0xf6, 0x5e, 0xf6, 0xfa, 0xcd, 0x9a, 0xd8, 0x80, 0xf5, 0xe3, 0x57, + 0x9d, 0x5e, 0xbf, 0xe9, 0x1c, 0x3c, 0x04, 0xb1, 0xea, 0x2b, 0x6e, 0xc0, 0x5a, 0xb7, 0xf3, 0xf6, + 0xb4, 0xa0, 0xbe, 0x1b, 0xbc, 0x3e, 0xed, 0x37, 0x9d, 0x6e, 0xff, 0xeb, 0xcc, 0x73, 0x2e, 0x67, + 0x9e, 0xf3, 0x7d, 0xe6, 0x39, 0x5f, 0xe6, 0x5e, 0xed, 0x72, 0xee, 0xd5, 0xbe, 0xcd, 0xbd, 0xda, + 0xfb, 0xa7, 0x09, 0xf2, 0x24, 0x1f, 0xfa, 0x23, 0x93, 0x06, 0x57, 0x7a, 0x04, 0x45, 0x8f, 0xe0, + 0x22, 0xa8, 0x2e, 0x96, 0x3f, 0x9f, 0xab, 0xcc, 0xde, 0xed, 0xb0, 0x61, 0x6f, 0xf4, 0xc9, 0xcf, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xda, 0x0c, 0xb0, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/action.pb.go b/x/nftmngr/types/v080/action.pb.go new file mode 100644 index 00000000..06190ba0 --- /dev/null +++ b/x/nftmngr/types/v080/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/action.proto + +package v080 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_a64699820cdb692b, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_a64699820cdb692b, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v080.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_a64699820cdb692b, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v080.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v080.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v080.Action") +} + +func init() { proto.RegisterFile("nftmngr/v080/action.proto", fileDescriptor_a64699820cdb692b) } + +var fileDescriptor_a64699820cdb692b = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x26, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x47, 0x81, 0x03, 0x57, 0x17, 0x7c, 0x40, 0x32, 0x8e, 0xe4, 0x04, 0x50, 0xb9, 0x58, + 0x1b, 0x7b, 0xe3, 0x58, 0xd8, 0x5e, 0x63, 0xaf, 0x9b, 0xf6, 0x2d, 0xb8, 0xf0, 0x0c, 0xbc, 0x4a, + 0x8f, 0x3d, 0x72, 0x42, 0x28, 0x79, 0x11, 0xb4, 0xbb, 0x2e, 0x52, 0xe8, 0xa1, 0xb9, 0xfd, 0xfb, + 0xcd, 0x3f, 0xe3, 0x99, 0xf1, 0xc0, 0xc7, 0xf9, 0x92, 0x67, 0x79, 0x5c, 0x5a, 0x17, 0xe3, 0x37, + 0x63, 0x8b, 0x84, 0x3c, 0x61, 0xb9, 0x59, 0x94, 0x8c, 0x33, 0xf4, 0x9c, 0xaf, 0x68, 0x95, 0x5c, + 0xe6, 0x94, 0xaf, 0x59, 0xf9, 0xd5, 0x14, 0x72, 0xc9, 0xcd, 0xc6, 0x6f, 0x0a, 0xff, 0xe8, 0x24, + 0x66, 0x31, 0x93, 0x6e, 0x4b, 0x28, 0x95, 0x78, 0xfa, 0x03, 0xc0, 0x23, 0x55, 0x29, 0x28, 0x48, + 0x49, 0xb2, 0x0a, 0x21, 0xd8, 0xcd, 0x49, 0x46, 0x31, 0xd0, 0x81, 0x31, 0xf0, 0xa5, 0x16, 0x2c, + 0xa2, 0x55, 0x88, 0xdb, 0x8a, 0x09, 0x8d, 0x9e, 0xc0, 0x41, 0x44, 0x38, 0x09, 0xf8, 0x55, 0x41, + 0x71, 0x47, 0x06, 0xfa, 0x02, 0xcc, 0xaf, 0x0a, 0x8a, 0x46, 0xb0, 0x5f, 0xd2, 0x6f, 0x75, 0x52, + 0xd2, 0x08, 0x77, 0x75, 0x60, 0xf4, 0xfd, 0x7f, 0x6f, 0xf4, 0x02, 0x1e, 0x45, 0x74, 0x49, 0xea, + 0x94, 0x07, 0x17, 0x24, 0xad, 0x29, 0x3e, 0x90, 0xc9, 0x0f, 0x1b, 0xf8, 0x49, 0xb0, 0xd3, 0x9f, + 0x6d, 0xd8, 0xb3, 0x65, 0x5f, 0x7b, 0x37, 0x84, 0xe1, 0x61, 0x94, 0x54, 0x64, 0x91, 0xaa, 0x76, + 0xfa, 0xfe, 0xed, 0x53, 0xb8, 0xd7, 0x2b, 0x9a, 0xcb, 0x4e, 0x06, 0xbe, 0xd4, 0x82, 0x71, 0xc1, + 0x0e, 0xf4, 0x8e, 0x60, 0x42, 0xa3, 0x10, 0x0e, 0x49, 0x9a, 0xb2, 0x35, 0x8d, 0x02, 0xb5, 0x13, + 0x5a, 0xe2, 0x9e, 0x0e, 0x8c, 0x47, 0x93, 0x89, 0x79, 0xef, 0x82, 0x4d, 0x5b, 0xa5, 0xda, 0x4d, + 0xe6, 0x59, 0xf7, 0xfa, 0xf7, 0x33, 0xe0, 0x1f, 0x93, 0x5d, 0x8c, 0x3c, 0xd8, 0x53, 0x9b, 0xc6, + 0x87, 0x7a, 0xc7, 0x78, 0x30, 0x19, 0xef, 0x51, 0x7a, 0xe7, 0x0f, 0x35, 0x85, 0x9b, 0x2a, 0x2f, + 0x33, 0x78, 0xfc, 0xdf, 0x97, 0x11, 0x86, 0x27, 0xb6, 0xeb, 0x4e, 0x3f, 0x3b, 0xef, 0x02, 0xfb, + 0xed, 0xfc, 0xfd, 0xd4, 0x73, 0xfc, 0xc0, 0x76, 0xdd, 0x61, 0x0b, 0xe9, 0xf0, 0xe9, 0x9d, 0xc8, + 0xec, 0x7c, 0x36, 0x77, 0x3e, 0x04, 0x53, 0xcf, 0x3d, 0x1f, 0x02, 0xa4, 0xc1, 0xd1, 0x1d, 0xc7, + 0xc7, 0x99, 0xe3, 0xab, 0x78, 0xfb, 0xcc, 0xbb, 0xde, 0x68, 0xe0, 0x66, 0xa3, 0x81, 0x3f, 0x1b, + 0x0d, 0x7c, 0xdf, 0x6a, 0xad, 0x9b, 0xad, 0xd6, 0xfa, 0xb5, 0xd5, 0x5a, 0x5f, 0x5e, 0xc7, 0x09, + 0x5f, 0xd5, 0x0b, 0x33, 0x64, 0x99, 0xb5, 0x33, 0x92, 0xa5, 0x46, 0xb2, 0x2e, 0xad, 0xdb, 0x03, + 0x16, 0x37, 0x53, 0xc9, 0x33, 0x5e, 0xf4, 0xe4, 0x1d, 0xbe, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0x61, 0x1b, 0x14, 0x13, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/action_by_ref_id.pb.go b/x/nftmngr/types/v080/action_by_ref_id.pb.go new file mode 100644 index 00000000..6610ba4a --- /dev/null +++ b/x/nftmngr/types/v080/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/action_by_ref_id.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_ff4f981e826a3d17, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v080.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v080/action_by_ref_id.proto", fileDescriptor_ff4f981e826a3d17) +} + +var fileDescriptor_ff4f981e826a3d17 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x8e, 0x25, 0x28, 0x37, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/attribute_definition.pb.go b/x/nftmngr/types/v080/attribute_definition.pb.go new file mode 100644 index 00000000..257bfe0d --- /dev/null +++ b/x/nftmngr/types/v080/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/attribute_definition.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_063f2b71d1a64f4d, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_063f2b71d1a64f4d, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v080.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v080/attribute_definition.proto", fileDescriptor_063f2b71d1a64f4d) +} + +var fileDescriptor_063f2b71d1a64f4d = []byte{ + // 523 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x68, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x54, 0x1b, 0x82, 0x5d, 0xa9, 0xaa, 0x89, 0xcb, 0x36, 0x29, 0x4c, 0x20, 0x71, 0x89, 0x9c, + 0xd9, 0x69, 0xad, 0x25, 0x76, 0x70, 0x5f, 0x4a, 0xfb, 0x5f, 0xf0, 0x1f, 0x71, 0xe5, 0xb8, 0x23, + 0x37, 0x50, 0xfb, 0x8f, 0xa0, 0xd8, 0xfd, 0x41, 0x9b, 0x4a, 0xeb, 0xcd, 0x7e, 0xdf, 0xfb, 0xbe, + 0xcf, 0x7e, 0x7e, 0xcf, 0xe8, 0x8d, 0x88, 0x20, 0x11, 0x3d, 0xe5, 0x0d, 0xdb, 0x17, 0x6d, 0x8f, + 0x00, 0x28, 0x1e, 0x66, 0xc0, 0x02, 0xca, 0x22, 0x2e, 0x38, 0x70, 0x29, 0xdc, 0x54, 0x49, 0x90, + 0xf8, 0x18, 0xfa, 0x6c, 0xc0, 0x47, 0x82, 0xc1, 0x77, 0xa9, 0xee, 0xdd, 0x7c, 0x19, 0x81, 0x3b, + 0x63, 0xbb, 0x39, 0xbb, 0x75, 0xbc, 0xa2, 0x45, 0xf9, 0x20, 0x8d, 0xc9, 0x38, 0x90, 0xe9, 0x52, + 0xa5, 0xf5, 0x7a, 0x25, 0x45, 0x44, 0x10, 0x2c, 0x2d, 0x87, 0x24, 0xce, 0x98, 0xc9, 0x3b, 0xf9, + 0x53, 0x46, 0x07, 0x5d, 0x16, 0x91, 0x2c, 0x86, 0x2b, 0x2e, 0xe0, 0x73, 0x0e, 0x61, 0x89, 0x9e, + 0x8b, 0x2c, 0x09, 0x99, 0x5a, 0x27, 0xd9, 0xd6, 0x91, 0x75, 0xfa, 0xf4, 0xec, 0xbd, 0xfb, 0xe8, + 0x19, 0xdd, 0x6b, 0x2d, 0xf0, 0x61, 0xce, 0xd7, 0xc2, 0x1f, 0x4b, 0xfe, 0xa1, 0xd8, 0x10, 0xcf, + 0x0d, 0x07, 0xa0, 0xb8, 0xe8, 0x15, 0x0c, 0x9f, 0x6c, 0x6d, 0xf8, 0x49, 0x0b, 0x14, 0x0d, 0x07, + 0x1b, 0xe2, 0x58, 0xa1, 0x17, 0xa1, 0x94, 0x31, 0x23, 0xa2, 0xe0, 0x58, 0xd6, 0x8e, 0x17, 0x5b, + 0x38, 0x76, 0x8c, 0x42, 0xc1, 0xb2, 0x19, 0x6e, 0x02, 0x70, 0x8c, 0x9a, 0x51, 0x2c, 0x49, 0xe1, + 0x25, 0xec, 0x8a, 0x76, 0x7c, 0xb7, 0x85, 0xe3, 0x65, 0xce, 0x2f, 0xf8, 0x35, 0xa2, 0x62, 0xb8, + 0xb3, 0x8b, 0xaa, 0x5a, 0xfd, 0xe4, 0x67, 0x19, 0x35, 0x16, 0x58, 0x77, 0xd1, 0x6d, 0x18, 0xa3, + 0x8a, 0x20, 0x89, 0x79, 0xd2, 0xba, 0xaf, 0xd7, 0xf8, 0x25, 0xaa, 0x53, 0x02, 0x24, 0x80, 0x71, + 0x6a, 0x4a, 0x5f, 0xf7, 0x6b, 0x79, 0xe0, 0x76, 0x9c, 0x32, 0xdc, 0x42, 0x35, 0xc5, 0xbe, 0x65, + 0x5c, 0x31, 0xaa, 0x8b, 0x54, 0xf3, 0x17, 0x7b, 0xec, 0xa2, 0xc6, 0xbc, 0x0d, 0xb5, 0x6b, 0x10, + 0x71, 0x16, 0x53, 0x7d, 0xb3, 0xba, 0xff, 0x6c, 0x06, 0xe9, 0x83, 0x5d, 0xe6, 0x00, 0xfe, 0x82, + 0xf6, 0x57, 0xdb, 0xd6, 0xae, 0xea, 0x22, 0xb4, 0xb7, 0x28, 0x42, 0xd7, 0x10, 0x6f, 0x34, 0xcf, + 0xdf, 0xa3, 0xff, 0x6f, 0x31, 0x41, 0x98, 0x9a, 0x76, 0x0e, 0x12, 0x2e, 0x60, 0x56, 0xe1, 0x1d, + 0x2d, 0x7e, 0xbe, 0x8d, 0xf8, 0xda, 0x2c, 0xf8, 0x07, 0x74, 0x7d, 0x3a, 0x5e, 0xa1, 0xfd, 0x3e, + 0xa7, 0x94, 0x89, 0x40, 0x0e, 0x99, 0xe2, 0x94, 0xd9, 0xbb, 0xba, 0x1a, 0x7b, 0x26, 0x7a, 0x63, + 0x82, 0xf8, 0x0c, 0x35, 0x67, 0x69, 0x20, 0x83, 0x84, 0xa8, 0x7b, 0x06, 0x69, 0x4c, 0xee, 0x98, + 0x5d, 0xd3, 0xd9, 0x0d, 0x03, 0xde, 0xca, 0xab, 0x25, 0x84, 0x0f, 0x51, 0x95, 0x0b, 0xca, 0x46, + 0x76, 0xfd, 0xc8, 0x3a, 0xad, 0xf8, 0x66, 0xd3, 0xb9, 0xfe, 0x35, 0x71, 0xac, 0x87, 0x89, 0x63, + 0xfd, 0x9d, 0x38, 0xd6, 0x8f, 0xa9, 0x53, 0x7a, 0x98, 0x3a, 0xa5, 0xdf, 0x53, 0xa7, 0xf4, 0xf5, + 0x6d, 0x8f, 0x43, 0x3f, 0x0b, 0xdd, 0x3b, 0x99, 0x78, 0x2b, 0x77, 0xf3, 0xcc, 0xdd, 0xbc, 0x91, + 0x37, 0xff, 0x07, 0xf2, 0x27, 0x1d, 0xe8, 0xdf, 0x20, 0xdc, 0xd1, 0xa3, 0x7f, 0xfe, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0x5e, 0x14, 0xe3, 0x1c, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/display_option.pb.go b/x/nftmngr/types/v080/display_option.pb.go new file mode 100644 index 00000000..47520730 --- /dev/null +++ b/x/nftmngr/types/v080/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/display_option.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_fb016d4e267574b0, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v080.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v080/display_option.proto", fileDescriptor_fb016d4e267574b0) } + +var fileDescriptor_fb016d4e267574b0 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x92, 0x60, 0xa4, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/metadata_creator.pb.go b/x/nftmngr/types/v080/metadata_creator.pb.go new file mode 100644 index 00000000..f85619af --- /dev/null +++ b/x/nftmngr/types/v080/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/metadata_creator.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_737cf7551c227dae, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_737cf7551c227dae, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v080.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v080.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v080/metadata_creator.proto", fileDescriptor_737cf7551c227dae) +} + +var fileDescriptor_737cf7551c227dae = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x4f, 0x05, 0x23, 0xd4, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_attribute_value.pb.go b/x/nftmngr/types/v080/nft_attribute_value.pb.go new file mode 100644 index 00000000..41f2d22c --- /dev/null +++ b/x/nftmngr/types/v080/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_attribute_value.proto + +package v080 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f004df871d5ee2b0, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f004df871d5ee2b0, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f004df871d5ee2b0, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f004df871d5ee2b0, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f004df871d5ee2b0, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v080.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v080/nft_attribute_value.proto", fileDescriptor_f004df871d5ee2b0) +} + +var fileDescriptor_f004df871d5ee2b0 = []byte{ + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xb1, 0x8e, 0xda, 0x30, + 0x18, 0xc7, 0xe3, 0x36, 0x50, 0x70, 0xa7, 0x1a, 0xd2, 0xa6, 0x1d, 0x22, 0xca, 0x50, 0x21, 0xb5, + 0x8d, 0x11, 0xad, 0x5a, 0xd6, 0x32, 0x54, 0x5d, 0xca, 0x90, 0x3b, 0xdd, 0x70, 0x4b, 0xe4, 0x80, + 0x13, 0x22, 0x12, 0x1b, 0x39, 0x0e, 0x07, 0x6f, 0x71, 0x8f, 0x71, 0x8f, 0x72, 0x23, 0xe3, 0x8d, + 0x27, 0x78, 0x91, 0x53, 0x1c, 0x22, 0x94, 0x4b, 0xa4, 0x63, 0xb3, 0xfc, 0xfd, 0xff, 0xff, 0xdf, + 0x97, 0xcf, 0xf9, 0xe0, 0x17, 0xe6, 0xcb, 0x98, 0x05, 0x02, 0xaf, 0x87, 0xe3, 0x21, 0x66, 0xbe, + 0x74, 0x89, 0x94, 0x22, 0xf4, 0x52, 0x49, 0xdd, 0x35, 0x89, 0x52, 0x6a, 0xaf, 0x04, 0x97, 0x1c, + 0x7d, 0x96, 0x0b, 0x9a, 0x84, 0x1b, 0x46, 0xe5, 0x0d, 0x17, 0x4b, 0x3b, 0x3b, 0xfa, 0xd2, 0x3e, + 0x9a, 0xed, 0xcc, 0xfc, 0xe9, 0x63, 0xc0, 0x79, 0x10, 0x51, 0xac, 0x0c, 0x5e, 0xea, 0x63, 0xc2, + 0xb6, 0xb9, 0xbb, 0x7f, 0xa7, 0xc3, 0x77, 0x53, 0x5f, 0xfe, 0x29, 0xa2, 0xaf, 0xb2, 0x64, 0x84, + 0xa0, 0xce, 0x48, 0x4c, 0x4d, 0xd0, 0x03, 0x83, 0xb6, 0xa3, 0xce, 0x88, 0xc3, 0xf7, 0x2c, 0x8d, + 0x3d, 0x2a, 0x9e, 0xf7, 0x61, 0xbe, 0xea, 0x81, 0xc1, 0xdb, 0xd1, 0x6f, 0xfb, 0xc5, 0x46, 0xec, + 0xa9, 0x0a, 0x28, 0xc3, 0xfe, 0x69, 0x4e, 0x97, 0xd5, 0xdc, 0x67, 0xc0, 0x44, 0x8a, 0x90, 0x05, + 0x15, 0xe0, 0xeb, 0xb3, 0x81, 0x17, 0x2a, 0xa0, 0x0a, 0x4c, 0x6a, 0xee, 0x91, 0x80, 0x1f, 0x3c, + 0xce, 0x23, 0x4a, 0x58, 0x85, 0xa8, 0x2b, 0xe2, 0xf8, 0x0c, 0xe2, 0x24, 0x4f, 0xa8, 0x20, 0x0d, + 0xaf, 0xae, 0x80, 0x22, 0x68, 0xf8, 0x11, 0x27, 0x95, 0xc7, 0x35, 0x1b, 0x8a, 0xf8, 0xeb, 0x0c, + 0xe2, 0xdf, 0xcc, 0x5f, 0xe1, 0x75, 0xfc, 0xea, 0x35, 0x1a, 0x41, 0x63, 0x11, 0xce, 0xe7, 0x94, + 0xb9, 0x92, 0xbb, 0x31, 0x11, 0x4b, 0x2a, 0x57, 0x11, 0x99, 0x51, 0xb3, 0xd9, 0x03, 0x83, 0x96, + 0xd3, 0xc9, 0x8b, 0x97, 0xfc, 0xff, 0xa9, 0x34, 0x79, 0x03, 0x1b, 0xaa, 0xa3, 0xfe, 0x37, 0xd8, + 0xad, 0x7b, 0x3f, 0xd4, 0x3d, 0x0a, 0xd4, 0xdf, 0xa2, 0x3b, 0x27, 0x75, 0xdd, 0xf0, 0xcb, 0xea, + 0x76, 0xa1, 0xfe, 0x0e, 0x8d, 0xda, 0xc1, 0x95, 0xe5, 0xad, 0x42, 0xfe, 0x15, 0x76, 0x6a, 0xbe, + 0xba, 0x2c, 0x06, 0x47, 0xf1, 0x64, 0x7a, 0xbf, 0xb7, 0xc0, 0x6e, 0x6f, 0x81, 0xc7, 0xbd, 0x05, + 0x6e, 0x0f, 0x96, 0xb6, 0x3b, 0x58, 0xda, 0xc3, 0xc1, 0xd2, 0xae, 0x7f, 0x06, 0xa1, 0x5c, 0xa4, + 0x9e, 0x3d, 0xe3, 0x31, 0x2e, 0xcd, 0x19, 0xe7, 0x73, 0xc6, 0x1b, 0x5c, 0x2c, 0xa1, 0xdc, 0xae, + 0x68, 0xa2, 0x56, 0xd1, 0x6b, 0xaa, 0xcd, 0xf9, 0xf1, 0x14, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x2c, + 0x4e, 0x5f, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_collection.pb.go b/x/nftmngr/types/v080/nft_collection.pb.go new file mode 100644 index 00000000..5621d1f6 --- /dev/null +++ b/x/nftmngr/types/v080/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_collection.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_3a42ca52407abed3, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v080.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v080/nft_collection.proto", fileDescriptor_3a42ca52407abed3) } + +var fileDescriptor_3a42ca52407abed3 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x75, 0x9d, 0x5e, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_data.pb.go b/x/nftmngr/types/v080/nft_data.pb.go new file mode 100644 index 00000000..bcdb8ad3 --- /dev/null +++ b/x/nftmngr/types/v080/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_data.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d44defc037968706, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v080.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_d44defc037968706, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v080.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v080.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v080/nft_data.proto", fileDescriptor_d44defc037968706) } + +var fileDescriptor_d44defc037968706 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x3d, 0x6f, 0xd3, 0x40, + 0x18, 0xc7, 0x63, 0x02, 0x4d, 0x73, 0x69, 0x8b, 0x7b, 0x62, 0x30, 0x54, 0x32, 0x29, 0x48, 0x55, + 0xc4, 0x60, 0x57, 0x6d, 0x07, 0x06, 0x16, 0x43, 0x2a, 0x64, 0x09, 0xb9, 0x92, 0x53, 0x18, 0x58, + 0x4e, 0x17, 0xfb, 0x6c, 0x9f, 0x8a, 0xef, 0xa2, 0xf3, 0xe3, 0xbe, 0x7c, 0x0b, 0x3e, 0x16, 0x63, + 0x47, 0x46, 0x94, 0x7c, 0x0e, 0x24, 0xe4, 0x3b, 0xc7, 0x40, 0x19, 0x40, 0x62, 0xb3, 0x7f, 0xcf, + 0xff, 0xff, 0xbc, 0xdd, 0x83, 0xf6, 0x44, 0x06, 0xa5, 0xc8, 0x95, 0x7f, 0x79, 0xf8, 0xf2, 0xd0, + 0x17, 0x19, 0x90, 0x94, 0x02, 0xf5, 0x16, 0x4a, 0x82, 0xc4, 0xfb, 0x50, 0xb0, 0x8a, 0x5f, 0x0b, + 0x06, 0x57, 0x52, 0x5d, 0x78, 0xcd, 0x67, 0x06, 0x5e, 0xeb, 0xf0, 0x1a, 0xc7, 0x93, 0x83, 0x3f, + 0xfc, 0x14, 0x40, 0xf1, 0x79, 0x0d, 0x8c, 0x5c, 0xd2, 0x4f, 0x35, 0x33, 0xa9, 0x9e, 0x7d, 0xef, + 0xa3, 0x41, 0x94, 0xc1, 0x94, 0x02, 0xc5, 0x07, 0xe8, 0x61, 0x23, 0xac, 0x92, 0x82, 0x95, 0x94, + 0x24, 0x32, 0x65, 0x8e, 0x35, 0xb6, 0x26, 0xc3, 0x78, 0x5b, 0x64, 0x30, 0xd3, 0xf4, 0x8d, 0x4c, + 0x19, 0x7e, 0x8c, 0x36, 0x41, 0x5e, 0x30, 0x41, 0x78, 0xea, 0xdc, 0xd3, 0x82, 0x81, 0xfe, 0x0f, + 0x53, 0xfc, 0x14, 0x8d, 0x4c, 0x48, 0x5e, 0x09, 0xa6, 0x9c, 0xbe, 0x8e, 0x22, 0x8d, 0xce, 0x1a, + 0x82, 0x29, 0xc2, 0x3a, 0x44, 0x68, 0x9a, 0x2a, 0x56, 0x55, 0x04, 0x6e, 0x16, 0xcc, 0xb9, 0x3f, + 0xb6, 0x26, 0x3b, 0x47, 0xc7, 0xde, 0x5f, 0xe7, 0xf2, 0x74, 0x96, 0xc0, 0x78, 0xcf, 0x6f, 0x16, + 0x2c, 0xb6, 0xe5, 0x1d, 0x82, 0xf7, 0xd1, 0x96, 0x54, 0x3c, 0xe7, 0x82, 0xf0, 0x92, 0xe6, 0xcc, + 0x79, 0xa0, 0x9b, 0x18, 0x19, 0x16, 0x36, 0x08, 0x3f, 0x47, 0xdb, 0x52, 0x24, 0x05, 0xed, 0x34, + 0x1b, 0x5a, 0xb3, 0xd5, 0x42, 0x23, 0xda, 0x43, 0x43, 0x33, 0x4b, 0xad, 0xb8, 0x33, 0xd0, 0x02, + 0x33, 0xf7, 0x7b, 0xc5, 0x31, 0x45, 0xbb, 0x6d, 0x91, 0x6e, 0xaf, 0x95, 0xb3, 0x39, 0xee, 0x4f, + 0x46, 0x47, 0x27, 0xff, 0x30, 0x46, 0x94, 0x41, 0xb0, 0xf6, 0x7d, 0x68, 0x9e, 0x23, 0xb6, 0x4d, + 0xba, 0x8e, 0x56, 0x38, 0x41, 0x78, 0xdd, 0xe4, 0x2f, 0x35, 0x86, 0xff, 0x51, 0x63, 0xb7, 0xcd, + 0xf7, 0xb3, 0xc8, 0x8b, 0x57, 0xc8, 0xbe, 0xbb, 0x52, 0x8c, 0xd1, 0xce, 0x59, 0x1c, 0xbe, 0x0d, + 0x23, 0x12, 0x4c, 0xa7, 0xf1, 0xe9, 0x6c, 0x66, 0xf7, 0xf0, 0x23, 0x64, 0x87, 0xd1, 0xf9, 0x69, + 0x1c, 0x05, 0xef, 0x3a, 0x6a, 0xbd, 0x8e, 0xbe, 0x2c, 0x5d, 0xeb, 0x76, 0xe9, 0x5a, 0xdf, 0x96, + 0xae, 0xf5, 0x79, 0xe5, 0xf6, 0x6e, 0x57, 0x6e, 0xef, 0xeb, 0xca, 0xed, 0x7d, 0x3c, 0xc9, 0x39, + 0x14, 0xf5, 0xdc, 0x4b, 0x64, 0xe9, 0xff, 0xd6, 0xaa, 0x6f, 0x5a, 0xf5, 0xaf, 0xfd, 0xf5, 0x85, + 0x36, 0x17, 0x50, 0xe9, 0x3b, 0x9d, 0x6f, 0xe8, 0xa3, 0x3c, 0xfe, 0x11, 0x00, 0x00, 0xff, 0xff, + 0x0d, 0x0d, 0x93, 0x86, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_fee_balance.pb.go b/x/nftmngr/types/v080/nft_fee_balance.pb.go new file mode 100644 index 00000000..997bbb11 --- /dev/null +++ b/x/nftmngr/types/v080/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_fee_balance.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_cf3f04f4908cb263, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v080.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v080/nft_fee_balance.proto", fileDescriptor_cf3f04f4908cb263) +} + +var fileDescriptor_cf3f04f4908cb263 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x70, 0x5f, + 0x43, 0x3f, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_fee_config.pb.go b/x/nftmngr/types/v080/nft_fee_config.pb.go new file mode 100644 index 00000000..a1bfb32b --- /dev/null +++ b/x/nftmngr/types/v080/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_fee_config.proto + +package v080 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_181e3be05bbfb5a0, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v080.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_181e3be05bbfb5a0, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_181e3be05bbfb5a0, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_181e3be05bbfb5a0, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v080.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v080.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v080.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v080.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v080/nft_fee_config.proto", fileDescriptor_181e3be05bbfb5a0) } + +var fileDescriptor_181e3be05bbfb5a0 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x57, 0x51, 0x1d, 0x06, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_schema.pb.go b/x/nftmngr/types/v080/nft_schema.pb.go new file mode 100644 index 00000000..02223bdc --- /dev/null +++ b/x/nftmngr/types/v080/nft_schema.pb.go @@ -0,0 +1,696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_schema.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_eab8a847090eb8a2, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v080.NFTSchema") +} + +func init() { proto.RegisterFile("nftmngr/v080/nft_schema.proto", fileDescriptor_eab8a847090eb8a2) } + +var fileDescriptor_eab8a847090eb8a2 = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x9b, 0xfe, 0xfb, 0x5a, 0xf7, 0x93, 0x00, 0x8b, 0xc1, 0xaa, 0x84, 0x15, 0x98, 0xc2, + 0x50, 0xa7, 0x02, 0x06, 0xd6, 0x02, 0x62, 0x2c, 0x22, 0x20, 0x06, 0x96, 0xc8, 0x4d, 0x9d, 0xc6, + 0x42, 0xb1, 0x2b, 0xc7, 0xa5, 0x2d, 0x4f, 0xc1, 0x63, 0x31, 0x76, 0x64, 0x44, 0xad, 0xc4, 0x73, + 0x20, 0x3b, 0x2d, 0x34, 0x13, 0x6c, 0xc7, 0xe7, 0xfa, 0xfc, 0x7c, 0xaf, 0x2f, 0x38, 0x10, 0xb1, + 0x4e, 0xc5, 0x48, 0xf9, 0xcf, 0xdd, 0xf3, 0xae, 0x2f, 0x62, 0x1d, 0x66, 0x51, 0xc2, 0x52, 0x4a, + 0xc6, 0x4a, 0x6a, 0x09, 0x0f, 0x75, 0xc2, 0x32, 0x3e, 0x13, 0x4c, 0x4f, 0xa5, 0x7a, 0x22, 0x46, + 0xc6, 0x9a, 0xac, 0x33, 0xc4, 0x64, 0xda, 0x6e, 0x81, 0x20, 0x45, 0x18, 0x25, 0x94, 0x8b, 0x70, + 0x48, 0xf5, 0x1a, 0xd2, 0xc6, 0xc5, 0x1b, 0x8a, 0x8f, 0x0a, 0xf5, 0xa3, 0xcf, 0x32, 0x68, 0xf6, + 0xaf, 0xef, 0xef, 0xec, 0xc3, 0x10, 0x82, 0x6a, 0x24, 0x87, 0x0c, 0x39, 0xae, 0xe3, 0x35, 0x03, + 0xab, 0x8d, 0x27, 0x68, 0xca, 0x50, 0x39, 0xf7, 0x8c, 0x86, 0xfb, 0xa0, 0x26, 0xa7, 0x82, 0x29, + 0x54, 0xb1, 0x66, 0x7e, 0x80, 0xc7, 0x60, 0x37, 0x9b, 0x67, 0x9a, 0xa5, 0x21, 0x8d, 0x34, 0x97, + 0x82, 0xa9, 0x0c, 0x55, 0xdd, 0x8a, 0xd7, 0x0c, 0x76, 0x72, 0xbf, 0xb7, 0xb1, 0x61, 0x1f, 0xb4, + 0xb6, 0x7a, 0x41, 0x35, 0xd7, 0xf1, 0x5a, 0x27, 0x1d, 0xf2, 0xeb, 0xc4, 0xe4, 0xc6, 0xa6, 0xae, + 0xa8, 0xa6, 0x01, 0x90, 0xdf, 0x1a, 0xde, 0x82, 0xff, 0x52, 0xfc, 0x0c, 0x8f, 0xea, 0x16, 0x48, + 0xfe, 0x02, 0x14, 0x97, 0x26, 0x66, 0x89, 0xad, 0x35, 0xc3, 0x22, 0x31, 0x00, 0x3c, 0x7b, 0x60, + 0x8a, 0xc7, 0x9c, 0x0d, 0xd1, 0x3f, 0xd7, 0xf1, 0x1a, 0xc1, 0x96, 0x03, 0x3b, 0x00, 0xa6, 0x5c, + 0xe8, 0x90, 0x4e, 0x74, 0x22, 0x15, 0x7f, 0xa1, 0x66, 0x36, 0xd4, 0xb0, 0x1f, 0xb2, 0x67, 0x2a, + 0xbd, 0xed, 0xc2, 0x45, 0xff, 0x6d, 0x89, 0x9d, 0xc5, 0x12, 0x3b, 0x1f, 0x4b, 0xec, 0xbc, 0xae, + 0x70, 0x69, 0xb1, 0xc2, 0xa5, 0xf7, 0x15, 0x2e, 0x3d, 0x9e, 0x8d, 0xb8, 0x4e, 0x26, 0x03, 0x12, + 0xc9, 0xd4, 0x2f, 0xf4, 0xeb, 0xe7, 0xfd, 0xfa, 0x33, 0x7f, 0xb3, 0x44, 0x3d, 0x1f, 0xb3, 0xcc, + 0xae, 0x72, 0x50, 0xb7, 0xfb, 0x3b, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x91, 0xe6, 0x25, 0x78, + 0x45, 0x02, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/nft_schema_by_contract.pb.go b/x/nftmngr/types/v080/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..bcc43ef2 --- /dev/null +++ b/x/nftmngr/types/v080/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/nft_schema_by_contract.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_eef9fad5da3f22bb, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v080.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v080/nft_schema_by_contract.proto", fileDescriptor_eef9fad5da3f22bb) +} + +var fileDescriptor_eef9fad5da3f22bb = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x3a, 0xf5, 0x94, 0xd1, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/on_chain_data.pb.go b/x/nftmngr/types/v080/on_chain_data.pb.go new file mode 100644 index 00000000..5f953bfd --- /dev/null +++ b/x/nftmngr/types/v080/on_chain_data.pb.go @@ -0,0 +1,895 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/on_chain_data.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_496ca2a48170422a, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,8,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_496ca2a48170422a, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainData) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainData) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v080.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v080.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v080/on_chain_data.proto", fileDescriptor_496ca2a48170422a) } + +var fileDescriptor_496ca2a48170422a = []byte{ + // 423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x41, 0xcf, 0xd2, 0x30, + 0x1c, 0xc6, 0x99, 0xef, 0x2b, 0x62, 0xe1, 0x7d, 0x31, 0x8d, 0x87, 0xc9, 0x61, 0x0e, 0x4c, 0x04, + 0x0f, 0x6e, 0x44, 0x89, 0xf1, 0xaa, 0xa0, 0x47, 0x34, 0x25, 0xf1, 0x60, 0x62, 0x96, 0x32, 0x3a, + 0x68, 0x60, 0x1d, 0xb6, 0xff, 0x21, 0x7e, 0x0b, 0xfd, 0x56, 0x1e, 0x39, 0x7a, 0x34, 0xf0, 0x45, + 0xcc, 0xda, 0x01, 0xdb, 0x49, 0x12, 0x6f, 0xcd, 0xd3, 0xff, 0xf3, 0x7b, 0xd2, 0xe7, 0x5f, 0xe4, + 0x8a, 0x08, 0x62, 0x31, 0x97, 0xfe, 0xa6, 0xff, 0xba, 0xef, 0x27, 0x22, 0x08, 0x17, 0x94, 0x8b, + 0x60, 0x46, 0x81, 0x7a, 0x6b, 0x99, 0x40, 0x82, 0xdb, 0xb0, 0x60, 0x8a, 0x6f, 0x05, 0x83, 0x6f, + 0x89, 0x5c, 0x7a, 0xd9, 0x31, 0x02, 0x2f, 0xb7, 0x79, 0x99, 0xad, 0xd5, 0x2d, 0x41, 0x28, 0x80, + 0xe4, 0xd3, 0x14, 0x58, 0x30, 0x63, 0x11, 0x17, 0x1c, 0x78, 0x22, 0x0c, 0xab, 0xf5, 0xa8, 0x3c, + 0x18, 0x16, 0xae, 0x9e, 0x96, 0xae, 0x44, 0x04, 0xc1, 0x99, 0xb3, 0xa1, 0xab, 0x94, 0x99, 0xb9, + 0xce, 0x47, 0x84, 0xde, 0xaf, 0xe8, 0x7c, 0x02, 0x14, 0x52, 0x85, 0x1f, 0xa3, 0xba, 0xd2, 0xa7, + 0x40, 0xd0, 0x98, 0xd9, 0x96, 0x6b, 0xf5, 0xee, 0x13, 0x64, 0xa4, 0x31, 0x8d, 0x19, 0x6e, 0xa3, + 0x46, 0x3e, 0xa0, 0x21, 0xf6, 0x1d, 0xd7, 0xea, 0xd5, 0x48, 0x6e, 0xfa, 0x94, 0x49, 0x9d, 0x9f, + 0xd7, 0xa8, 0xfe, 0x41, 0x0c, 0xb3, 0x77, 0x8f, 0x28, 0x50, 0xdc, 0x45, 0x4d, 0xc9, 0x36, 0x8c, + 0xae, 0x02, 0xc9, 0xbe, 0xa6, 0x5c, 0xb2, 0x99, 0xe6, 0xd6, 0xc8, 0xad, 0x91, 0x49, 0xae, 0xe2, + 0x27, 0xe8, 0x26, 0x1f, 0x54, 0x2c, 0x94, 0x0c, 0x34, 0xbc, 0x41, 0x1a, 0x46, 0x9c, 0x68, 0x0d, + 0x7f, 0x41, 0xb7, 0xa5, 0xc7, 0x28, 0xfb, 0xca, 0xbd, 0xea, 0xd5, 0x5f, 0xbc, 0xf2, 0xfe, 0xd9, + 0xab, 0xf7, 0xe6, 0x68, 0x1a, 0x9d, 0x8a, 0x24, 0x37, 0x22, 0x82, 0x93, 0xae, 0x30, 0x45, 0x0f, + 0x20, 0x59, 0x32, 0x51, 0x0c, 0xb8, 0xfe, 0xaf, 0x80, 0xa6, 0xe6, 0x15, 0x22, 0x86, 0xe8, 0x9e, + 0xd9, 0x94, 0xb2, 0xef, 0x6a, 0xf2, 0xb3, 0x4b, 0xc8, 0xda, 0x41, 0x8e, 0x4e, 0xfc, 0x0e, 0x55, + 0x4d, 0xe7, 0x76, 0x55, 0x33, 0x9e, 0x5f, 0xc0, 0x38, 0xef, 0x99, 0xe4, 0x66, 0x1c, 0xa1, 0x87, + 0xe5, 0x36, 0xf3, 0xb5, 0xd6, 0x34, 0x74, 0x70, 0x01, 0x74, 0x5c, 0xa8, 0x4f, 0xef, 0x9f, 0xe0, + 0x52, 0xa3, 0x5a, 0x7b, 0x3b, 0xfe, 0xb5, 0x77, 0xac, 0xdd, 0xde, 0xb1, 0xfe, 0xec, 0x1d, 0xeb, + 0xc7, 0xc1, 0xa9, 0xec, 0x0e, 0x4e, 0xe5, 0xf7, 0xc1, 0xa9, 0x7c, 0x1e, 0xcc, 0x39, 0x2c, 0xd2, + 0xa9, 0x17, 0x26, 0xb1, 0x5f, 0x4a, 0xf3, 0x4d, 0x9a, 0xbf, 0xf5, 0x8f, 0x3f, 0x19, 0xbe, 0xaf, + 0x99, 0xd2, 0xff, 0x79, 0x5a, 0xd5, 0x9f, 0xf7, 0xe5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, + 0x0b, 0x69, 0x74, 0x6f, 0x03, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/opensea_display_option.pb.go b/x/nftmngr/types/v080/opensea_display_option.pb.go new file mode 100644 index 00000000..03fb9e83 --- /dev/null +++ b/x/nftmngr/types/v080/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/opensea_display_option.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_00a6538d6235bc8f, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v080.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v080/opensea_display_option.proto", fileDescriptor_00a6538d6235bc8f) +} + +var fileDescriptor_00a6538d6235bc8f = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x33, 0xba, 0x59, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/organization.pb.go b/x/nftmngr/types/v080/organization.pb.go new file mode 100644 index 00000000..e3318722 --- /dev/null +++ b/x/nftmngr/types/v080/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/organization.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_6a7a6964ffbd09d0, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v080.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v080/organization.proto", fileDescriptor_6a7a6964ffbd09d0) } + +var fileDescriptor_6a7a6964ffbd09d0 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x30, 0xd0, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x7c, 0x54, 0x56, 0xc2, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v080/origin_data.pb.go b/x/nftmngr/types/v080/origin_data.pb.go new file mode 100644 index 00000000..e2dc4819 --- /dev/null +++ b/x/nftmngr/types/v080/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v080/origin_data.proto + +package v080 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4c2c6cc5802a2afd, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4c2c6cc5802a2afd, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v080.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v080.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_4c2c6cc5802a2afd, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v080.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v080.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v080.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v080/origin_data.proto", fileDescriptor_4c2c6cc5802a2afd) } + +var fileDescriptor_4c2c6cc5802a2afd = []byte{ + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x5d, 0xf1, 0x51, 0x71, 0x4d, 0xda, 0x02, 0x11, 0x22, 0x91, 0x0c, 0xbd, 0x70, 0xb1, 0x36, + 0xf1, 0xc6, 0x19, 0x81, 0x77, 0xab, 0xf1, 0x38, 0x94, 0x7f, 0xc1, 0xcf, 0xe2, 0xd8, 0x23, 0x47, + 0x94, 0xfc, 0x02, 0xfe, 0x01, 0xca, 0xda, 0x0e, 0x2a, 0x41, 0x02, 0x6e, 0xab, 0xb7, 0xef, 0xbd, + 0x79, 0x6f, 0x34, 0xe0, 0xe9, 0x31, 0xa7, 0x3a, 0xa1, 0x60, 0x7a, 0xf8, 0xfc, 0x30, 0x30, 0x84, + 0x09, 0xea, 0x28, 0x96, 0x2c, 0xfd, 0x73, 0x32, 0x6c, 0xc4, 0x1e, 0x4f, 0x54, 0x86, 0x17, 0x5a, + 0xf1, 0x27, 0x43, 0x1f, 0xfc, 0xc5, 0x73, 0xcc, 0x7e, 0x29, 0xf2, 0x17, 0xa2, 0x7b, 0xfb, 0x57, + 0x2c, 0x24, 0x33, 0xe1, 0x30, 0x67, 0x15, 0xc5, 0x6a, 0x8c, 0x1a, 0x19, 0x8d, 0x2e, 0xbc, 0xee, + 0xff, 0xa8, 0x03, 0x0c, 0xec, 0x84, 0x13, 0xc9, 0x52, 0xec, 0xc1, 0xcd, 0x72, 0xde, 0x68, 0x22, + 0x51, 0xbb, 0x4e, 0xcb, 0x69, 0x6f, 0x84, 0x9b, 0x05, 0x76, 0xbc, 0x80, 0xc4, 0x11, 0xdc, 0xad, + 0x28, 0x46, 0x33, 0xc9, 0x11, 0x47, 0x32, 0x8e, 0x49, 0x65, 0x99, 0x7b, 0xcd, 0xb2, 0xef, 0x94, + 0xec, 0xf2, 0xb7, 0x53, 0x7c, 0x8a, 0x07, 0xb0, 0x5d, 0xea, 0x86, 0x32, 0x53, 0x51, 0x4e, 0xe8, + 0xd6, 0x2d, 0xff, 0x56, 0x01, 0x77, 0x65, 0xa6, 0xce, 0x08, 0x05, 0xc2, 0xee, 0xaf, 0xbc, 0x66, + 0xaa, 0x88, 0x30, 0x46, 0x9d, 0xb8, 0x6b, 0x2d, 0xa7, 0xbd, 0xf5, 0xf8, 0xc8, 0xff, 0x6b, 0x79, + 0xbf, 0x53, 0xc9, 0x07, 0x4b, 0x75, 0xb8, 0x23, 0x57, 0x41, 0xb1, 0x0f, 0xdb, 0xa9, 0x62, 0xb9, + 0x58, 0x6d, 0x34, 0x36, 0x94, 0x4a, 0x76, 0xd7, 0x6d, 0xa4, 0xad, 0x0a, 0x7e, 0x61, 0x51, 0x31, + 0x82, 0xdb, 0x65, 0xf6, 0xa5, 0x4d, 0xe6, 0x36, 0x5a, 0xf5, 0xf6, 0xe6, 0xff, 0x05, 0x3a, 0x59, + 0xae, 0x3f, 0x6c, 0x16, 0x86, 0xcb, 0xaf, 0x4c, 0x24, 0xb0, 0x9b, 0x13, 0x46, 0xa4, 0x98, 0x50, + 0x4d, 0xe5, 0xc7, 0x28, 0x55, 0x3c, 0x31, 0xb1, 0x7b, 0xdd, 0x16, 0x7f, 0xf6, 0x0f, 0x73, 0xce, + 0xc2, 0x5e, 0x58, 0xa9, 0xdf, 0x58, 0x71, 0x28, 0x72, 0xc2, 0xdf, 0xb0, 0x83, 0x47, 0xb0, 0xf3, + 0x87, 0x15, 0x09, 0x80, 0xc6, 0x20, 0xec, 0xbd, 0xec, 0xf5, 0x9b, 0x35, 0xb1, 0x01, 0xeb, 0xc7, + 0xaf, 0x3a, 0xbd, 0x7e, 0xd3, 0x39, 0x78, 0x08, 0x62, 0xd5, 0x57, 0xdc, 0x80, 0xb5, 0x6e, 0xe7, + 0xed, 0x69, 0x41, 0x7d, 0x37, 0x78, 0x7d, 0xda, 0x6f, 0x3a, 0xdd, 0xfe, 0xd7, 0x99, 0xe7, 0x5c, + 0xce, 0x3c, 0xe7, 0xfb, 0xcc, 0x73, 0xbe, 0xcc, 0xbd, 0xda, 0xe5, 0xdc, 0xab, 0x7d, 0x9b, 0x7b, + 0xb5, 0xf7, 0x4f, 0x13, 0xe4, 0x49, 0x3e, 0xf4, 0x47, 0x26, 0x0d, 0xae, 0xf4, 0x08, 0x8a, 0x1e, + 0xc1, 0x45, 0x50, 0x5d, 0x2c, 0x7f, 0x3e, 0x57, 0x99, 0xbd, 0xdb, 0x61, 0xc3, 0xde, 0xe8, 0x93, + 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xae, 0xa4, 0x0d, 0x24, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/action.pb.go b/x/nftmngr/types/v090/action.pb.go new file mode 100644 index 00000000..0546e724 --- /dev/null +++ b/x/nftmngr/types/v090/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/action.proto + +package v090 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_531a14b8607bc409, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_531a14b8607bc409, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v090.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_531a14b8607bc409, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v090.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v090.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v090.Action") +} + +func init() { proto.RegisterFile("nftmngr/v090/action.proto", fileDescriptor_531a14b8607bc409) } + +var fileDescriptor_531a14b8607bc409 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x26, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x47, 0x81, 0x0b, 0x47, 0x17, 0x7c, 0x40, 0x32, 0x8e, 0xe4, 0x04, 0x50, 0xb9, 0x58, + 0x1b, 0x7b, 0xe3, 0x58, 0xd8, 0x5e, 0x63, 0xaf, 0x9b, 0xf6, 0x2d, 0xb8, 0xf0, 0x0c, 0xbc, 0x4a, + 0x8f, 0x3d, 0x72, 0x42, 0x28, 0x79, 0x11, 0xb4, 0xbb, 0x2e, 0x52, 0xe8, 0xa1, 0xb9, 0xfd, 0xfb, + 0xcd, 0x3f, 0xe3, 0x99, 0xf1, 0xc0, 0xc7, 0xf9, 0x92, 0x67, 0x79, 0x5c, 0x5a, 0x17, 0xe3, 0x37, + 0x63, 0x8b, 0x84, 0x3c, 0x61, 0xb9, 0x59, 0x94, 0x8c, 0x33, 0xf4, 0x9c, 0xaf, 0x68, 0x95, 0x5c, + 0xe6, 0x94, 0xaf, 0x59, 0xf9, 0xd5, 0x14, 0x72, 0xc9, 0xcd, 0xc6, 0x6f, 0x0a, 0xff, 0xe8, 0x24, + 0x66, 0x31, 0x93, 0x6e, 0x4b, 0x28, 0x95, 0x78, 0xfa, 0x03, 0xc0, 0x23, 0x55, 0x29, 0x28, 0x48, + 0x49, 0xb2, 0x0a, 0x21, 0xd8, 0xcd, 0x49, 0x46, 0x31, 0xd0, 0x81, 0x31, 0xf0, 0xa5, 0x16, 0x2c, + 0xa2, 0x55, 0x88, 0xdb, 0x8a, 0x09, 0x8d, 0x9e, 0xc0, 0x41, 0x44, 0x38, 0x09, 0xf8, 0x55, 0x41, + 0x71, 0x47, 0x06, 0xfa, 0x02, 0xcc, 0xaf, 0x0a, 0x8a, 0x46, 0xb0, 0x5f, 0xd2, 0x6f, 0x75, 0x52, + 0xd2, 0x08, 0x77, 0x75, 0x60, 0xf4, 0xfd, 0x7f, 0x6f, 0xf4, 0x02, 0x1e, 0x45, 0x74, 0x49, 0xea, + 0x94, 0x07, 0x17, 0x24, 0xad, 0x29, 0x3e, 0x90, 0xc9, 0x0f, 0x1b, 0xf8, 0x49, 0xb0, 0xd3, 0x9f, + 0x6d, 0xd8, 0xb3, 0x65, 0x5f, 0x7b, 0x37, 0x84, 0xe1, 0x61, 0x94, 0x54, 0x64, 0x91, 0xaa, 0x76, + 0xfa, 0xfe, 0xed, 0x53, 0xb8, 0xd7, 0x2b, 0x9a, 0xcb, 0x4e, 0x06, 0xbe, 0xd4, 0x82, 0x71, 0xc1, + 0x0e, 0xf4, 0x8e, 0x60, 0x42, 0xa3, 0x10, 0x0e, 0x49, 0x9a, 0xb2, 0x35, 0x8d, 0x02, 0xb5, 0x13, + 0x5a, 0xe2, 0x9e, 0x0e, 0x8c, 0x47, 0x93, 0x89, 0x79, 0xef, 0x82, 0x4d, 0x5b, 0xa5, 0xda, 0x4d, + 0xe6, 0x59, 0xf7, 0xfa, 0xf7, 0x33, 0xe0, 0x1f, 0x93, 0x5d, 0x8c, 0x3c, 0xd8, 0x53, 0x9b, 0xc6, + 0x87, 0x7a, 0xc7, 0x78, 0x30, 0x19, 0xef, 0x51, 0x7a, 0xe7, 0x0f, 0x35, 0x85, 0x9b, 0x2a, 0x2f, + 0x33, 0x78, 0xfc, 0xdf, 0x97, 0x11, 0x86, 0x27, 0xb6, 0xeb, 0x4e, 0x3f, 0x3b, 0xef, 0x02, 0xfb, + 0xed, 0xfc, 0xfd, 0xd4, 0x73, 0xfc, 0xc0, 0x76, 0xdd, 0x61, 0x0b, 0xe9, 0xf0, 0xe9, 0x9d, 0xc8, + 0xec, 0x7c, 0x36, 0x77, 0x3e, 0x04, 0x53, 0xcf, 0x3d, 0x1f, 0x02, 0xa4, 0xc1, 0xd1, 0x1d, 0xc7, + 0xc7, 0x99, 0xe3, 0xab, 0x78, 0xfb, 0xcc, 0xbb, 0xde, 0x68, 0xe0, 0x66, 0xa3, 0x81, 0x3f, 0x1b, + 0x0d, 0x7c, 0xdf, 0x6a, 0xad, 0x9b, 0xad, 0xd6, 0xfa, 0xb5, 0xd5, 0x5a, 0x5f, 0x5e, 0xc7, 0x09, + 0x5f, 0xd5, 0x0b, 0x33, 0x64, 0x99, 0xb5, 0x33, 0x92, 0xa5, 0x46, 0xb2, 0x2e, 0xad, 0xdb, 0x03, + 0x16, 0x37, 0x53, 0xc9, 0x33, 0x5e, 0xf4, 0xe4, 0x1d, 0xbe, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0x20, 0x5e, 0x3b, 0xb3, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/action_by_ref_id.pb.go b/x/nftmngr/types/v090/action_by_ref_id.pb.go new file mode 100644 index 00000000..c114a212 --- /dev/null +++ b/x/nftmngr/types/v090/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/action_by_ref_id.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_661a18d1a3973ec0, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v090.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v090/action_by_ref_id.proto", fileDescriptor_661a18d1a3973ec0) +} + +var fileDescriptor_661a18d1a3973ec0 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x5e, 0xde, 0x56, 0x3d, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/attribute_definition.pb.go b/x/nftmngr/types/v090/attribute_definition.pb.go new file mode 100644 index 00000000..711c840d --- /dev/null +++ b/x/nftmngr/types/v090/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/attribute_definition.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_4f86010096f4edfe, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_4f86010096f4edfe, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v090.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v090/attribute_definition.proto", fileDescriptor_4f86010096f4edfe) +} + +var fileDescriptor_4f86010096f4edfe = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x68, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x54, 0x1b, 0xe2, 0xc7, 0x91, 0xaa, 0x9a, 0xb8, 0x6c, 0x93, 0xc2, 0x04, 0x12, 0x97, 0xc8, + 0x99, 0x9d, 0xd6, 0x5a, 0x62, 0x07, 0xf7, 0xa5, 0xb4, 0xff, 0x05, 0xff, 0x11, 0x57, 0x8e, 0x3b, + 0x72, 0x03, 0xb5, 0xff, 0x08, 0x8a, 0xdd, 0x1f, 0xb4, 0xa9, 0xb4, 0xde, 0xec, 0xf7, 0xbd, 0xef, + 0xfb, 0xec, 0xe7, 0xf7, 0x8c, 0x5e, 0x89, 0x08, 0x12, 0xd1, 0x53, 0xde, 0xb0, 0xfd, 0xbe, 0xed, + 0x11, 0x00, 0xc5, 0xc3, 0x0c, 0x58, 0x40, 0x59, 0xc4, 0x05, 0x07, 0x2e, 0x85, 0x9b, 0x2a, 0x09, + 0x12, 0x1f, 0x43, 0x9f, 0x0d, 0xf8, 0x48, 0x30, 0xf8, 0x2e, 0xd5, 0x9d, 0x9b, 0x2f, 0x23, 0x70, + 0x67, 0x6c, 0x37, 0x67, 0xb7, 0x8e, 0x57, 0xb4, 0x28, 0x1f, 0xa4, 0x31, 0x19, 0x07, 0x32, 0x5d, + 0xaa, 0xb4, 0x5e, 0xae, 0xa4, 0x88, 0x08, 0x82, 0xa5, 0xe5, 0x90, 0xc4, 0x19, 0x33, 0x79, 0x27, + 0x7f, 0xca, 0xe8, 0xa0, 0xcb, 0x22, 0x92, 0xc5, 0x70, 0xc9, 0x05, 0x7c, 0xce, 0x21, 0x2c, 0xd1, + 0x53, 0x91, 0x25, 0x21, 0x53, 0xeb, 0x24, 0xdb, 0x3a, 0xb2, 0x4e, 0x1f, 0x9f, 0xbd, 0x75, 0x1f, + 0x3c, 0xa3, 0x7b, 0xa5, 0x05, 0x3e, 0xcc, 0xf9, 0x5a, 0xf8, 0x63, 0xc9, 0x3f, 0x14, 0x1b, 0xe2, + 0xb9, 0xe1, 0x00, 0x14, 0x17, 0xbd, 0x82, 0xe1, 0xa3, 0xad, 0x0d, 0x3f, 0x69, 0x81, 0xa2, 0xe1, + 0x60, 0x43, 0x1c, 0x2b, 0xf4, 0x2c, 0x94, 0x32, 0x66, 0x44, 0x14, 0x1c, 0xcb, 0xda, 0xf1, 0xdd, + 0x16, 0x8e, 0x1d, 0xa3, 0x50, 0xb0, 0x6c, 0x86, 0x9b, 0x00, 0x1c, 0xa3, 0x66, 0x14, 0x4b, 0x52, + 0x78, 0x09, 0xbb, 0xa2, 0x1d, 0xdf, 0x6c, 0xe1, 0x78, 0x91, 0xf3, 0x0b, 0x7e, 0x8d, 0xa8, 0x18, + 0xee, 0xec, 0xa2, 0xaa, 0x56, 0x3f, 0xf9, 0x59, 0x46, 0x8d, 0x05, 0xd6, 0x5d, 0x74, 0x1b, 0xc6, + 0xa8, 0x22, 0x48, 0x62, 0x9e, 0xb4, 0xee, 0xeb, 0x35, 0x7e, 0x8e, 0xea, 0x94, 0x00, 0x09, 0x60, + 0x9c, 0x9a, 0xd2, 0xd7, 0xfd, 0x5a, 0x1e, 0xb8, 0x19, 0xa7, 0x0c, 0xb7, 0x50, 0x4d, 0xb1, 0x6f, + 0x19, 0x57, 0x8c, 0xea, 0x22, 0xd5, 0xfc, 0xc5, 0x1e, 0xbb, 0xa8, 0x31, 0x6f, 0x43, 0xed, 0x1a, + 0x44, 0x9c, 0xc5, 0x54, 0xdf, 0xac, 0xee, 0x3f, 0x99, 0x41, 0xfa, 0x60, 0x17, 0x39, 0x80, 0xbf, + 0xa0, 0xfd, 0xd5, 0xb6, 0xb5, 0xab, 0xba, 0x08, 0xed, 0x2d, 0x8a, 0xd0, 0x35, 0xc4, 0x6b, 0xcd, + 0xf3, 0xf7, 0xe8, 0xff, 0x5b, 0x4c, 0x10, 0xa6, 0xa6, 0x9d, 0x83, 0x84, 0x0b, 0x98, 0x55, 0x78, + 0x47, 0x8b, 0x9f, 0x6f, 0x23, 0xbe, 0x36, 0x0b, 0xfe, 0x01, 0x5d, 0x9f, 0x8e, 0x17, 0x68, 0xbf, + 0xcf, 0x29, 0x65, 0x22, 0x90, 0x43, 0xa6, 0x38, 0x65, 0xf6, 0xae, 0xae, 0xc6, 0x9e, 0x89, 0x5e, + 0x9b, 0x20, 0x3e, 0x43, 0xcd, 0x59, 0x1a, 0xc8, 0x20, 0x21, 0xea, 0x8e, 0x41, 0x1a, 0x93, 0x5b, + 0x66, 0xd7, 0x74, 0x76, 0xc3, 0x80, 0x37, 0xf2, 0x72, 0x09, 0xe1, 0x43, 0x54, 0xe5, 0x82, 0xb2, + 0x91, 0x5d, 0x3f, 0xb2, 0x4e, 0x2b, 0xbe, 0xd9, 0x74, 0xae, 0x7e, 0x4d, 0x1c, 0xeb, 0x7e, 0xe2, + 0x58, 0x7f, 0x27, 0x8e, 0xf5, 0x63, 0xea, 0x94, 0xee, 0xa7, 0x4e, 0xe9, 0xf7, 0xd4, 0x29, 0x7d, + 0x7d, 0xdd, 0xe3, 0xd0, 0xcf, 0x42, 0xf7, 0x56, 0x26, 0xde, 0xca, 0xdd, 0x3c, 0x73, 0x37, 0x6f, + 0xe4, 0xcd, 0xff, 0x81, 0xfc, 0x49, 0x07, 0xfa, 0x37, 0x08, 0x77, 0xf4, 0xe8, 0x9f, 0xff, 0x0b, + 0x00, 0x00, 0xff, 0xff, 0x58, 0x72, 0xc7, 0x58, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/display_option.pb.go b/x/nftmngr/types/v090/display_option.pb.go new file mode 100644 index 00000000..bbc78969 --- /dev/null +++ b/x/nftmngr/types/v090/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/display_option.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_9e716cab6e0be869, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v090.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v090/display_option.proto", fileDescriptor_9e716cab6e0be869) } + +var fileDescriptor_9e716cab6e0be869 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x1a, 0x5b, 0xe1, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/metadata_creator.pb.go b/x/nftmngr/types/v090/metadata_creator.pb.go new file mode 100644 index 00000000..66d42210 --- /dev/null +++ b/x/nftmngr/types/v090/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/metadata_creator.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_e3cdfe80d9b9f2cf, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_e3cdfe80d9b9f2cf, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v090.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v090.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v090/metadata_creator.proto", fileDescriptor_e3cdfe80d9b9f2cf) +} + +var fileDescriptor_e3cdfe80d9b9f2cf = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xe2, 0xfa, 0x08, 0x4e, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_attribute_value.pb.go b/x/nftmngr/types/v090/nft_attribute_value.pb.go new file mode 100644 index 00000000..89985c9a --- /dev/null +++ b/x/nftmngr/types/v090/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_attribute_value.proto + +package v090 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_85809ba742864c2a, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_85809ba742864c2a, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_85809ba742864c2a, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_85809ba742864c2a, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_85809ba742864c2a, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v090.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v090/nft_attribute_value.proto", fileDescriptor_85809ba742864c2a) +} + +var fileDescriptor_85809ba742864c2a = []byte{ + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xda, 0x30, + 0x18, 0xc6, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0x8c, 0xd8, 0xb4, 0x3f, 0xc7, 0x71, 0x98, 0x7a, 0x29, 0x87, 0xb4, 0xea, 0xa1, 0x97, 0xc8, + 0x01, 0x27, 0x44, 0x24, 0x36, 0x72, 0x1c, 0x0a, 0xdf, 0xa2, 0x1f, 0xa3, 0x1f, 0xa5, 0x47, 0x8e, + 0x3d, 0x56, 0xf0, 0x45, 0xaa, 0x38, 0x44, 0x28, 0x4d, 0xa4, 0x72, 0xb3, 0xfc, 0x3e, 0xcf, 0xf3, + 0x7b, 0xf3, 0x3a, 0x2f, 0xfc, 0xc2, 0x7c, 0x19, 0xb3, 0x40, 0xe0, 0xd5, 0xf0, 0xef, 0x10, 0x33, + 0x5f, 0xba, 0x44, 0x4a, 0x11, 0x7a, 0xa9, 0xa4, 0xee, 0x8a, 0x44, 0x29, 0xb5, 0x97, 0x82, 0x4b, + 0x8e, 0x3e, 0xcb, 0x39, 0x4d, 0xc2, 0x35, 0xa3, 0xf2, 0x86, 0x8b, 0x85, 0x9d, 0x1d, 0x7d, 0x69, + 0x1f, 0xcc, 0x76, 0x66, 0xfe, 0xf4, 0x31, 0xe0, 0x3c, 0x88, 0x28, 0x56, 0x06, 0x2f, 0xf5, 0x31, + 0x61, 0x9b, 0xdc, 0xdd, 0xbf, 0xd3, 0xe1, 0xbb, 0x89, 0x2f, 0xff, 0x15, 0xd1, 0x57, 0x59, 0x32, + 0x42, 0x50, 0x67, 0x24, 0xa6, 0x26, 0xe8, 0x81, 0x41, 0xdb, 0x51, 0x67, 0xc4, 0xe1, 0x7b, 0x96, + 0xc6, 0x1e, 0x15, 0xcf, 0xfb, 0x30, 0x5f, 0xf5, 0xc0, 0xe0, 0xed, 0xe8, 0xb7, 0xfd, 0x62, 0x23, + 0xf6, 0x44, 0x05, 0x94, 0x61, 0x67, 0x9a, 0xd3, 0x65, 0x35, 0xf7, 0x19, 0x30, 0x91, 0x22, 0x64, + 0x41, 0x05, 0xf8, 0xfa, 0x64, 0xe0, 0x85, 0x0a, 0xa8, 0x02, 0x93, 0x9a, 0x7b, 0x24, 0xe0, 0x07, + 0x8f, 0xf3, 0x88, 0x12, 0x56, 0x21, 0xea, 0x8a, 0xf8, 0xe7, 0x04, 0xe2, 0x38, 0x4f, 0xa8, 0x20, + 0x0d, 0xaf, 0xae, 0x80, 0x22, 0x68, 0xf8, 0x11, 0x27, 0x95, 0xc7, 0x35, 0x1b, 0x8a, 0xf8, 0xeb, + 0x04, 0xe2, 0xff, 0xcc, 0x5f, 0xe1, 0x75, 0xfc, 0xea, 0x35, 0x1a, 0x41, 0x63, 0x1e, 0xce, 0x66, + 0x94, 0xb9, 0x92, 0xbb, 0x31, 0x11, 0x0b, 0x2a, 0x97, 0x11, 0x99, 0x52, 0xb3, 0xd9, 0x03, 0x83, + 0x96, 0xd3, 0xc9, 0x8b, 0x97, 0xfc, 0xfc, 0x58, 0x1a, 0xbf, 0x81, 0x0d, 0xd5, 0x51, 0xff, 0x1b, + 0xec, 0xd6, 0xbd, 0x1f, 0xea, 0x1e, 0x04, 0xea, 0x6f, 0xd1, 0x9d, 0xa3, 0xba, 0x6e, 0xf8, 0x65, + 0x75, 0xbb, 0x50, 0x7f, 0x87, 0x46, 0xed, 0xe0, 0xca, 0xf2, 0x56, 0x21, 0xff, 0x0a, 0x3b, 0x35, + 0x5f, 0x5d, 0x16, 0x83, 0x83, 0x78, 0x3c, 0xb9, 0xdf, 0x59, 0x60, 0xbb, 0xb3, 0xc0, 0xe3, 0xce, + 0x02, 0xb7, 0x7b, 0x4b, 0xdb, 0xee, 0x2d, 0xed, 0x61, 0x6f, 0x69, 0xd7, 0x3f, 0x83, 0x50, 0xce, + 0x53, 0xcf, 0x9e, 0xf2, 0x18, 0x97, 0xe6, 0x8c, 0xf3, 0x39, 0xe3, 0x35, 0x2e, 0x96, 0x50, 0x6e, + 0x96, 0x34, 0x51, 0xab, 0xe8, 0x35, 0xd5, 0xe6, 0xfc, 0x78, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x7b, + 0x35, 0xd6, 0xb9, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_collection.pb.go b/x/nftmngr/types/v090/nft_collection.pb.go new file mode 100644 index 00000000..640354a7 --- /dev/null +++ b/x/nftmngr/types/v090/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_collection.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_869ba761bf42344a, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v090.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v090/nft_collection.proto", fileDescriptor_869ba761bf42344a) } + +var fileDescriptor_869ba761bf42344a = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x69, 0x15, 0xe5, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_data.pb.go b/x/nftmngr/types/v090/nft_data.pb.go new file mode 100644 index 00000000..f60c686f --- /dev/null +++ b/x/nftmngr/types/v090/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_data.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24e4d687432a2df6, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v090.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_24e4d687432a2df6, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v090.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v090.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v090/nft_data.proto", fileDescriptor_24e4d687432a2df6) } + +var fileDescriptor_24e4d687432a2df6 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6b, 0xd4, 0x40, + 0x18, 0xc7, 0x37, 0xae, 0x76, 0xbb, 0xb3, 0x6d, 0x4d, 0x07, 0x0f, 0xd1, 0x42, 0xdc, 0x2a, 0x94, + 0xc5, 0x43, 0x52, 0xda, 0x5e, 0x04, 0x2f, 0xd1, 0x2d, 0x12, 0x90, 0x14, 0xb2, 0xd5, 0x83, 0x97, + 0x61, 0x36, 0x99, 0x24, 0x43, 0xcd, 0xcc, 0x32, 0x79, 0xd2, 0x97, 0x6f, 0xe1, 0xc7, 0xf2, 0xd8, + 0xa3, 0x47, 0xd9, 0xfd, 0x1c, 0x82, 0x64, 0x26, 0x1b, 0xb5, 0x1e, 0x14, 0xbc, 0x25, 0xbf, 0xe7, + 0xff, 0x7f, 0xde, 0xe6, 0x41, 0x7b, 0x22, 0x83, 0x52, 0xe4, 0xca, 0xbf, 0x3c, 0x7c, 0x79, 0xe8, + 0x8b, 0x0c, 0x48, 0x4a, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x7d, 0x28, 0x58, 0xc5, 0xaf, 0x05, + 0x83, 0x2b, 0xa9, 0x2e, 0xbc, 0xe6, 0x33, 0x03, 0xaf, 0x75, 0x78, 0x8d, 0xe3, 0xc9, 0xc1, 0x1f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x06, 0x46, 0x2e, 0xe9, 0xa7, 0x9a, 0x99, 0x54, 0xcf, 0xbe, 0xf7, + 0xd1, 0x20, 0xca, 0x60, 0x4a, 0x81, 0xe2, 0x03, 0xf4, 0xb0, 0x11, 0x56, 0x49, 0xc1, 0x4a, 0x4a, + 0x12, 0x99, 0x32, 0xc7, 0x1a, 0x5b, 0x93, 0x61, 0xbc, 0x2d, 0x32, 0x98, 0x69, 0xfa, 0x46, 0xa6, + 0x0c, 0x3f, 0x46, 0x9b, 0x20, 0x2f, 0x98, 0x20, 0x3c, 0x75, 0xee, 0x69, 0xc1, 0x40, 0xff, 0x87, + 0x29, 0x7e, 0x8a, 0x46, 0x26, 0x24, 0xaf, 0x04, 0x53, 0x4e, 0x5f, 0x47, 0x91, 0x46, 0x67, 0x0d, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x4d, 0x15, 0xab, 0x2a, 0x02, 0x37, 0x0b, 0xe6, 0xdc, 0x1f, + 0x5b, 0x93, 0x9d, 0xa3, 0x63, 0xef, 0xaf, 0x73, 0x79, 0x3a, 0x4b, 0x60, 0xbc, 0xe7, 0x37, 0x0b, + 0x16, 0xdb, 0xf2, 0x0e, 0xc1, 0xfb, 0x68, 0x4b, 0x2a, 0x9e, 0x73, 0x41, 0x78, 0x49, 0x73, 0xe6, + 0x3c, 0xd0, 0x4d, 0x8c, 0x0c, 0x0b, 0x1b, 0x84, 0x9f, 0xa3, 0x6d, 0x29, 0x92, 0x82, 0x76, 0x9a, + 0x0d, 0xad, 0xd9, 0x6a, 0xa1, 0x11, 0xed, 0xa1, 0xa1, 0x99, 0xa5, 0x56, 0xdc, 0x19, 0x68, 0x81, + 0x99, 0xfb, 0xbd, 0xe2, 0x98, 0xa2, 0xdd, 0xb6, 0x48, 0xb7, 0xd7, 0xca, 0xd9, 0x1c, 0xf7, 0x27, + 0xa3, 0xa3, 0x93, 0x7f, 0x18, 0x23, 0xca, 0x20, 0x58, 0xfb, 0x3e, 0x34, 0xcf, 0x11, 0xdb, 0x26, + 0x5d, 0x47, 0x2b, 0x9c, 0x20, 0xbc, 0x6e, 0xf2, 0x97, 0x1a, 0xc3, 0xff, 0xa8, 0xb1, 0xdb, 0xe6, + 0xfb, 0x59, 0xe4, 0xc5, 0x2b, 0x64, 0xdf, 0x5d, 0x29, 0xc6, 0x68, 0xe7, 0x2c, 0x0e, 0xdf, 0x86, + 0x11, 0x09, 0xa6, 0xd3, 0xf8, 0x74, 0x36, 0xb3, 0x7b, 0xf8, 0x11, 0xb2, 0xc3, 0xe8, 0xfc, 0x34, + 0x8e, 0x82, 0x77, 0x1d, 0xb5, 0x5e, 0x47, 0x5f, 0x96, 0xae, 0x75, 0xbb, 0x74, 0xad, 0x6f, 0x4b, + 0xd7, 0xfa, 0xbc, 0x72, 0x7b, 0xb7, 0x2b, 0xb7, 0xf7, 0x75, 0xe5, 0xf6, 0x3e, 0x9e, 0xe4, 0x1c, + 0x8a, 0x7a, 0xee, 0x25, 0xb2, 0xf4, 0x7f, 0x6b, 0xd5, 0x37, 0xad, 0xfa, 0xd7, 0xfe, 0xfa, 0x42, + 0x9b, 0x0b, 0xa8, 0xf4, 0x9d, 0xce, 0x37, 0xf4, 0x51, 0x1e, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, + 0x87, 0x96, 0xcf, 0xa1, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_fee_balance.pb.go b/x/nftmngr/types/v090/nft_fee_balance.pb.go new file mode 100644 index 00000000..a0fbe6d6 --- /dev/null +++ b/x/nftmngr/types/v090/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_fee_balance.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_3cf107a2f8019484, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v090.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v090/nft_fee_balance.proto", fileDescriptor_3cf107a2f8019484) +} + +var fileDescriptor_3cf107a2f8019484 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xdf, + 0x9e, 0xe1, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_fee_config.pb.go b/x/nftmngr/types/v090/nft_fee_config.pb.go new file mode 100644 index 00000000..15189b1a --- /dev/null +++ b/x/nftmngr/types/v090/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_fee_config.proto + +package v090 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_f522059561b01f33, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v090.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_f522059561b01f33, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f522059561b01f33, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_f522059561b01f33, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v090.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v090.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v090.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v090.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v090/nft_fee_config.proto", fileDescriptor_f522059561b01f33) } + +var fileDescriptor_f522059561b01f33 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x9c, 0x43, 0xc9, 0xbd, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_schema.pb.go b/x/nftmngr/types/v090/nft_schema.pb.go new file mode 100644 index 00000000..aba452f5 --- /dev/null +++ b/x/nftmngr/types/v090/nft_schema.pb.go @@ -0,0 +1,696 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_schema.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + SystemActioners []string `protobuf:"bytes,4,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_daa317a2be56e2fe, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v090.NFTSchema") +} + +func init() { proto.RegisterFile("nftmngr/v090/nft_schema.proto", fileDescriptor_daa317a2be56e2fe) } + +var fileDescriptor_daa317a2be56e2fe = []byte{ + // 356 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xf3, 0x30, + 0x14, 0xc5, 0x9b, 0xfe, 0xfb, 0x5a, 0xf7, 0x93, 0x00, 0x8b, 0xc1, 0xaa, 0x84, 0x15, 0x98, 0xc2, + 0x50, 0xa7, 0x02, 0x16, 0xc6, 0x02, 0x62, 0x2c, 0x22, 0x20, 0x06, 0x96, 0xc8, 0x4d, 0x9d, 0xc6, + 0x42, 0xb1, 0x2b, 0xc7, 0xa5, 0x2d, 0x4f, 0xc1, 0x63, 0x31, 0x76, 0x64, 0x44, 0xad, 0xc4, 0x73, + 0x20, 0x3b, 0x2d, 0x34, 0x13, 0x6c, 0xc7, 0xe7, 0xfa, 0xfc, 0x7c, 0xaf, 0x2f, 0x38, 0x10, 0xb1, + 0x4e, 0xc5, 0x48, 0xf9, 0xcf, 0xdd, 0xf3, 0xae, 0x2f, 0x62, 0x1d, 0x66, 0x51, 0xc2, 0x52, 0x4a, + 0xc6, 0x4a, 0x6a, 0x09, 0x0f, 0x75, 0xc2, 0x32, 0x3e, 0x13, 0x4c, 0x4f, 0xa5, 0x7a, 0x22, 0x46, + 0xc6, 0x9a, 0xac, 0x33, 0xc4, 0x64, 0xda, 0x6e, 0x81, 0x20, 0x45, 0x18, 0x25, 0x94, 0x8b, 0x70, + 0x48, 0xf5, 0x1a, 0xd2, 0xc6, 0xc5, 0x1b, 0x8a, 0x8f, 0x0a, 0xf5, 0xa3, 0xcf, 0x32, 0x68, 0xf6, + 0xaf, 0xef, 0xef, 0xec, 0xc3, 0x10, 0x82, 0x6a, 0x24, 0x87, 0x0c, 0x39, 0xae, 0xe3, 0x35, 0x03, + 0xab, 0x8d, 0x27, 0x68, 0xca, 0x50, 0x39, 0xf7, 0x8c, 0x86, 0xfb, 0xa0, 0x26, 0xa7, 0x82, 0x29, + 0x54, 0xb1, 0x66, 0x7e, 0x80, 0xc7, 0x60, 0x37, 0x9b, 0x67, 0x9a, 0xa5, 0x21, 0x8d, 0x34, 0x97, + 0x82, 0xa9, 0x0c, 0x55, 0xdd, 0x8a, 0xd7, 0x0c, 0x76, 0x72, 0xbf, 0xb7, 0xb1, 0x61, 0x1f, 0xb4, + 0xb6, 0x7a, 0x41, 0x35, 0xd7, 0xf1, 0x5a, 0x27, 0x1d, 0xf2, 0xeb, 0xc4, 0xe4, 0xc6, 0xa6, 0xae, + 0xa8, 0xa6, 0x01, 0x90, 0xdf, 0x1a, 0xde, 0x82, 0xff, 0x52, 0xfc, 0x0c, 0x8f, 0xea, 0x16, 0x48, + 0xfe, 0x02, 0x14, 0x97, 0x26, 0x66, 0x89, 0xad, 0x35, 0xc3, 0x22, 0x31, 0x00, 0x3c, 0x7b, 0x60, + 0x8a, 0xc7, 0x9c, 0x0d, 0xd1, 0x3f, 0xd7, 0xf1, 0x1a, 0xc1, 0x96, 0x03, 0x3b, 0x00, 0xa6, 0x5c, + 0xe8, 0x90, 0x4e, 0x74, 0x22, 0x15, 0x7f, 0xa1, 0x66, 0x36, 0xd4, 0xb0, 0x1f, 0xb2, 0x67, 0x2a, + 0xbd, 0xed, 0xc2, 0x45, 0xff, 0x6d, 0x89, 0x9d, 0xc5, 0x12, 0x3b, 0x1f, 0x4b, 0xec, 0xbc, 0xae, + 0x70, 0x69, 0xb1, 0xc2, 0xa5, 0xf7, 0x15, 0x2e, 0x3d, 0x9e, 0x8d, 0xb8, 0x4e, 0x26, 0x03, 0x12, + 0xc9, 0xd4, 0x2f, 0xf4, 0xeb, 0xe7, 0xfd, 0xfa, 0x33, 0x7f, 0xb3, 0x44, 0x3d, 0x1f, 0xb3, 0xcc, + 0xae, 0x72, 0x50, 0xb7, 0xfb, 0x3b, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x8d, 0x22, 0x19, + 0x45, 0x02, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/nft_schema_by_contract.pb.go b/x/nftmngr/types/v090/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..832ce2e4 --- /dev/null +++ b/x/nftmngr/types/v090/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/nft_schema_by_contract.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_67113ebcc38f839f, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v090.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v090/nft_schema_by_contract.proto", fileDescriptor_67113ebcc38f839f) +} + +var fileDescriptor_67113ebcc38f839f = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x3d, 0xa9, 0xd0, 0x08, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/on_chain_data.pb.go b/x/nftmngr/types/v090/on_chain_data.pb.go new file mode 100644 index 00000000..0486bbc0 --- /dev/null +++ b/x/nftmngr/types/v090/on_chain_data.pb.go @@ -0,0 +1,895 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/on_chain_data.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_31263b4ccc5cf708, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + NftAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` + NftAttributesValue []*NftAttributeValue `protobuf:"bytes,8,rep,name=nft_attributes_value,json=nftAttributesValue,proto3" json:"nft_attributes_value,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_31263b4ccc5cf708, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainData) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func (m *OnChainData) GetNftAttributesValue() []*NftAttributeValue { + if m != nil { + return m.NftAttributesValue + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v090.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v090.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v090/on_chain_data.proto", fileDescriptor_31263b4ccc5cf708) } + +var fileDescriptor_31263b4ccc5cf708 = []byte{ + // 423 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x41, 0xcf, 0xd2, 0x30, + 0x1c, 0xc6, 0x99, 0xef, 0x2b, 0x62, 0xe1, 0x7d, 0x31, 0x8d, 0x87, 0xc9, 0x61, 0x0e, 0x4c, 0x04, + 0x0f, 0x6e, 0x44, 0x89, 0x89, 0x47, 0x05, 0x3d, 0xa2, 0x29, 0x89, 0x07, 0x13, 0xb3, 0x94, 0xd1, + 0x41, 0x03, 0xeb, 0xb0, 0xfd, 0x0f, 0xf1, 0x5b, 0xe8, 0xb7, 0xf2, 0xc8, 0xd1, 0xa3, 0x81, 0x2f, + 0x62, 0xd6, 0x0e, 0xd8, 0x4e, 0x92, 0x78, 0x6b, 0x9e, 0xfe, 0x9f, 0xdf, 0x93, 0x3e, 0xff, 0x22, + 0x57, 0x44, 0x10, 0x8b, 0xb9, 0xf4, 0x37, 0xfd, 0xd7, 0x7d, 0x3f, 0x11, 0x41, 0xb8, 0xa0, 0x5c, + 0x04, 0x33, 0x0a, 0xd4, 0x5b, 0xcb, 0x04, 0x12, 0xdc, 0x86, 0x05, 0x53, 0x7c, 0x2b, 0x18, 0x7c, + 0x4b, 0xe4, 0xd2, 0xcb, 0x8e, 0x11, 0x78, 0xb9, 0xcd, 0xcb, 0x6c, 0xad, 0x6e, 0x09, 0x42, 0x01, + 0x24, 0x9f, 0xa6, 0xc0, 0x82, 0x19, 0x8b, 0xb8, 0xe0, 0xc0, 0x13, 0x61, 0x58, 0xad, 0x47, 0xe5, + 0xc1, 0xb0, 0x70, 0xf5, 0xb4, 0x74, 0x25, 0x22, 0x08, 0xce, 0x9c, 0x0d, 0x5d, 0xa5, 0xcc, 0xcc, + 0x75, 0x3e, 0x22, 0xf4, 0x7e, 0x45, 0xe7, 0x13, 0xa0, 0x90, 0x2a, 0xfc, 0x18, 0xd5, 0x95, 0x3e, + 0x05, 0x82, 0xc6, 0xcc, 0xb6, 0x5c, 0xab, 0x77, 0x9f, 0x20, 0x23, 0x8d, 0x69, 0xcc, 0x70, 0x1b, + 0x35, 0xf2, 0x01, 0x0d, 0xb1, 0xef, 0xb8, 0x56, 0xaf, 0x46, 0x72, 0xd3, 0xa7, 0x4c, 0xea, 0xfc, + 0xbc, 0x46, 0xf5, 0x0f, 0x62, 0x98, 0xbd, 0x7b, 0x44, 0x81, 0xe2, 0x2e, 0x6a, 0x4a, 0xb6, 0x61, + 0x74, 0x15, 0x48, 0xf6, 0x35, 0xe5, 0x92, 0xcd, 0x34, 0xb7, 0x46, 0x6e, 0x8d, 0x4c, 0x72, 0x15, + 0x3f, 0x41, 0x37, 0xf9, 0xa0, 0x62, 0xa1, 0x64, 0xa0, 0xe1, 0x0d, 0xd2, 0x30, 0xe2, 0x44, 0x6b, + 0xf8, 0x0b, 0xba, 0x2d, 0x3d, 0x46, 0xd9, 0x57, 0xee, 0x55, 0xaf, 0xfe, 0xe2, 0x95, 0xf7, 0xcf, + 0x5e, 0xbd, 0x37, 0x47, 0xd3, 0xe8, 0x54, 0x24, 0xb9, 0x11, 0x11, 0x9c, 0x74, 0x85, 0x29, 0x7a, + 0x00, 0xc9, 0x92, 0x89, 0x62, 0xc0, 0xf5, 0x7f, 0x05, 0x34, 0x35, 0xaf, 0x10, 0x31, 0x44, 0xf7, + 0xcc, 0xa6, 0x94, 0x7d, 0x57, 0x93, 0x9f, 0x5d, 0x42, 0xd6, 0x0e, 0x72, 0x74, 0xe2, 0x77, 0xa8, + 0x6a, 0x3a, 0xb7, 0xab, 0x9a, 0xf1, 0xfc, 0x02, 0xc6, 0x79, 0xcf, 0x24, 0x37, 0xe3, 0x08, 0x3d, + 0x2c, 0xb7, 0x99, 0xaf, 0xb5, 0xa6, 0xa1, 0x83, 0x0b, 0xa0, 0xe3, 0x42, 0x7d, 0x7a, 0xff, 0x04, + 0x97, 0x1a, 0xd5, 0xda, 0xdb, 0xf1, 0xaf, 0xbd, 0x63, 0xed, 0xf6, 0x8e, 0xf5, 0x67, 0xef, 0x58, + 0x3f, 0x0e, 0x4e, 0x65, 0x77, 0x70, 0x2a, 0xbf, 0x0f, 0x4e, 0xe5, 0xf3, 0x60, 0xce, 0x61, 0x91, + 0x4e, 0xbd, 0x30, 0x89, 0xfd, 0x52, 0x9a, 0x6f, 0xd2, 0xfc, 0xad, 0x7f, 0xfc, 0xc9, 0xf0, 0x7d, + 0xcd, 0x94, 0xfe, 0xcf, 0xd3, 0xaa, 0xfe, 0xbc, 0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x59, + 0xfa, 0x62, 0xc6, 0x6f, 0x03, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftAttributesValue) > 0 { + for iNdEx := len(m.NftAttributesValue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributesValue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.NftAttributesValue) > 0 { + for _, e := range m.NftAttributesValue { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributesValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributesValue = append(m.NftAttributesValue, &NftAttributeValue{}) + if err := m.NftAttributesValue[len(m.NftAttributesValue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/opensea_display_option.pb.go b/x/nftmngr/types/v090/opensea_display_option.pb.go new file mode 100644 index 00000000..e2445eca --- /dev/null +++ b/x/nftmngr/types/v090/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/opensea_display_option.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_66fa93945fea81e1, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v090.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v090/opensea_display_option.proto", fileDescriptor_66fa93945fea81e1) +} + +var fileDescriptor_66fa93945fea81e1 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x31, 0xb6, 0xa7, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/organization.pb.go b/x/nftmngr/types/v090/organization.pb.go new file mode 100644 index 00000000..c1dedae6 --- /dev/null +++ b/x/nftmngr/types/v090/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/organization.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_c2b33fed629a3e9f, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v090.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v090/organization.proto", fileDescriptor_c2b33fed629a3e9f) } + +var fileDescriptor_c2b33fed629a3e9f = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd0, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x6f, 0xc7, 0x92, 0xf0, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v090/origin_data.pb.go b/x/nftmngr/types/v090/origin_data.pb.go new file mode 100644 index 00000000..e715c47b --- /dev/null +++ b/x/nftmngr/types/v090/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v090/origin_data.proto + +package v090 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c636796f80f8344d, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c636796f80f8344d, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v090.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v090.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_c636796f80f8344d, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v090.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v090.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v090.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v090/origin_data.proto", fileDescriptor_c636796f80f8344d) } + +var fileDescriptor_c636796f80f8344d = []byte{ + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x5d, 0xf1, 0x51, 0x89, 0x63, 0xd2, 0x16, 0x88, 0x10, 0x89, 0x64, 0xe8, 0x85, 0x8b, 0xb5, + 0x89, 0x37, 0xce, 0x08, 0xbc, 0x5b, 0x8d, 0xc7, 0xa1, 0xfc, 0x0b, 0x7e, 0x16, 0xc7, 0x1e, 0x39, + 0xa2, 0xe4, 0x17, 0xf0, 0x0f, 0x50, 0xd6, 0x76, 0x50, 0x09, 0x12, 0x70, 0x5b, 0xbd, 0x7d, 0xef, + 0xcd, 0x7b, 0xa3, 0x01, 0x4f, 0x8f, 0x39, 0xd5, 0x09, 0x05, 0xd3, 0xc3, 0xe7, 0x87, 0x81, 0x21, + 0x4c, 0x50, 0x47, 0xb1, 0x64, 0xe9, 0x9f, 0x93, 0x61, 0x23, 0xf6, 0x78, 0xa2, 0x32, 0xbc, 0xd0, + 0x8a, 0x3f, 0x19, 0xfa, 0xe0, 0x2f, 0x9e, 0x63, 0xf6, 0x4b, 0x91, 0xbf, 0x10, 0xdd, 0xdb, 0xbf, + 0x62, 0x21, 0x99, 0x09, 0x87, 0x39, 0xab, 0x28, 0x56, 0x63, 0xd4, 0xc8, 0x68, 0x74, 0xe1, 0x75, + 0xff, 0x47, 0x1d, 0x60, 0x60, 0x27, 0x9c, 0x48, 0x96, 0x62, 0x0f, 0x6e, 0x96, 0xf3, 0x46, 0x13, + 0x89, 0xda, 0x75, 0x5a, 0x4e, 0x7b, 0x23, 0xdc, 0x2c, 0xb0, 0xe3, 0x05, 0x24, 0x8e, 0xe0, 0x6e, + 0x45, 0x31, 0x9a, 0x49, 0x8e, 0x38, 0x92, 0x71, 0x4c, 0x2a, 0xcb, 0xdc, 0x6b, 0x96, 0x7d, 0xa7, + 0x64, 0x97, 0xbf, 0x9d, 0xe2, 0x53, 0x3c, 0x80, 0xed, 0x52, 0x37, 0x94, 0x99, 0x8a, 0x72, 0x42, + 0xb7, 0x6e, 0xf9, 0xb7, 0x0a, 0xb8, 0x2b, 0x33, 0x75, 0x46, 0x28, 0x10, 0x76, 0x7f, 0xe5, 0x35, + 0x53, 0x45, 0x84, 0x31, 0xea, 0xc4, 0x5d, 0x6b, 0x39, 0xed, 0xad, 0xc7, 0x47, 0xfe, 0x5f, 0xcb, + 0xfb, 0x9d, 0x4a, 0x3e, 0x58, 0xaa, 0xc3, 0x1d, 0xb9, 0x0a, 0x8a, 0x7d, 0xd8, 0x4e, 0x15, 0xcb, + 0xc5, 0x6a, 0xa3, 0xb1, 0xa1, 0x54, 0xb2, 0xbb, 0x6e, 0x23, 0x6d, 0x55, 0xf0, 0x0b, 0x8b, 0x8a, + 0x11, 0xdc, 0x2e, 0xb3, 0x2f, 0x6d, 0x32, 0xb7, 0xd1, 0xaa, 0xb7, 0x37, 0xff, 0x2f, 0xd0, 0xc9, + 0x72, 0xfd, 0x61, 0xb3, 0x30, 0x5c, 0x7e, 0x65, 0x22, 0x81, 0xdd, 0x9c, 0x30, 0x22, 0xc5, 0x84, + 0x6a, 0x2a, 0x3f, 0x46, 0xa9, 0xe2, 0x89, 0x89, 0xdd, 0xeb, 0xb6, 0xf8, 0xb3, 0x7f, 0x98, 0x73, + 0x16, 0xf6, 0xc2, 0x4a, 0xfd, 0xc6, 0x8a, 0x43, 0x91, 0x13, 0xfe, 0x86, 0x1d, 0x3c, 0x82, 0x9d, + 0x3f, 0xac, 0x48, 0x00, 0x34, 0x06, 0x61, 0xef, 0x65, 0xaf, 0xdf, 0xac, 0x89, 0x0d, 0x58, 0x3f, + 0x7e, 0xd5, 0xe9, 0xf5, 0x9b, 0xce, 0xc1, 0x43, 0x10, 0xab, 0xbe, 0xe2, 0x06, 0xac, 0x75, 0x3b, + 0x6f, 0x4f, 0x0b, 0xea, 0xbb, 0xc1, 0xeb, 0xd3, 0x7e, 0xd3, 0xe9, 0xf6, 0xbf, 0xce, 0x3c, 0xe7, + 0x72, 0xe6, 0x39, 0xdf, 0x67, 0x9e, 0xf3, 0x65, 0xee, 0xd5, 0x2e, 0xe7, 0x5e, 0xed, 0xdb, 0xdc, + 0xab, 0xbd, 0x7f, 0x9a, 0x20, 0x4f, 0xf2, 0xa1, 0x3f, 0x32, 0x69, 0x70, 0xa5, 0x47, 0x50, 0xf4, + 0x08, 0x2e, 0x82, 0xea, 0x62, 0xf9, 0xf3, 0xb9, 0xca, 0xec, 0xdd, 0x0e, 0x1b, 0xf6, 0x46, 0x9f, + 0xfc, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x96, 0xc6, 0x70, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/action.pb.go b/x/nftmngr/types/v091/action.pb.go new file mode 100644 index 00000000..e525b936 --- /dev/null +++ b/x/nftmngr/types/v091/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/action.proto + +package v091 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5151b1c15f3441a7, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_5151b1c15f3441a7, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v091.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_5151b1c15f3441a7, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v091.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v091.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v091.Action") +} + +func init() { proto.RegisterFile("nftmngr/v091/action.proto", fileDescriptor_5151b1c15f3441a7) } + +var fileDescriptor_5151b1c15f3441a7 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x3a, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x97, 0xc0, 0x85, 0xa3, 0x0b, 0x3e, 0x20, 0x19, 0x47, 0x72, 0x02, 0xa8, 0x5c, 0xac, + 0x8d, 0xbd, 0x71, 0x2c, 0x6c, 0xaf, 0xb1, 0xd7, 0x4d, 0xfb, 0x16, 0x5c, 0x78, 0x06, 0x5e, 0xa5, + 0xc7, 0x1e, 0x39, 0x21, 0x94, 0xbc, 0x08, 0xda, 0x5d, 0x17, 0x29, 0xf4, 0x40, 0x6f, 0xff, 0x7e, + 0xf3, 0xcf, 0x78, 0x66, 0x3c, 0xf0, 0x61, 0xb1, 0xe4, 0x79, 0x91, 0x54, 0xf6, 0xf9, 0xc9, 0xeb, + 0x17, 0x36, 0x89, 0x78, 0xca, 0x0a, 0xab, 0xac, 0x18, 0x67, 0xe8, 0x29, 0x5f, 0xd1, 0x3a, 0xbd, + 0x28, 0x28, 0x5f, 0xb3, 0xea, 0x8b, 0x25, 0xe4, 0x92, 0x5b, 0xad, 0xdf, 0x12, 0xfe, 0xf1, 0x51, + 0xc2, 0x12, 0x26, 0xdd, 0xb6, 0x50, 0x2a, 0xf1, 0xf8, 0x3b, 0x80, 0x07, 0xaa, 0x52, 0x58, 0x92, + 0x8a, 0xe4, 0x35, 0x42, 0xb0, 0x5f, 0x90, 0x9c, 0x62, 0x60, 0x00, 0x73, 0x18, 0x48, 0x2d, 0x58, + 0x4c, 0xeb, 0x08, 0x77, 0x15, 0x13, 0x1a, 0x3d, 0x82, 0xc3, 0x98, 0x70, 0x12, 0xf2, 0xcb, 0x92, + 0xe2, 0x9e, 0x0c, 0x68, 0x02, 0xcc, 0x2f, 0x4b, 0x8a, 0xc6, 0x50, 0xab, 0xe8, 0xd7, 0x26, 0xad, + 0x68, 0x8c, 0xfb, 0x06, 0x30, 0xb5, 0xe0, 0xef, 0x1b, 0x3d, 0x83, 0x07, 0x31, 0x5d, 0x92, 0x26, + 0xe3, 0xe1, 0x39, 0xc9, 0x1a, 0x8a, 0xf7, 0x64, 0xf2, 0xfd, 0x16, 0x7e, 0x14, 0xec, 0xf8, 0x47, + 0x17, 0x0e, 0x1c, 0xd9, 0xd7, 0x9d, 0x1b, 0xc2, 0x70, 0x3f, 0x4e, 0x6b, 0xb2, 0xc8, 0x54, 0x3b, + 0x5a, 0x70, 0xf3, 0x14, 0xee, 0xf5, 0x8a, 0x16, 0xb2, 0x93, 0x61, 0x20, 0xb5, 0x60, 0x5c, 0xb0, + 0x3d, 0xa3, 0x27, 0x98, 0xd0, 0x28, 0x82, 0x23, 0x92, 0x65, 0x6c, 0x4d, 0xe3, 0x50, 0xed, 0x84, + 0x56, 0x78, 0x60, 0x00, 0xf3, 0xc1, 0x64, 0x62, 0xfd, 0x77, 0xc1, 0x96, 0xa3, 0x52, 0x9d, 0x36, + 0xf3, 0xb4, 0x7f, 0xf5, 0xeb, 0x09, 0x08, 0x0e, 0xc9, 0x2e, 0x46, 0x3e, 0x1c, 0xa8, 0x4d, 0xe3, + 0x7d, 0xa3, 0x67, 0xde, 0x9b, 0x9c, 0xdc, 0xa1, 0xf4, 0xce, 0x1f, 0x6a, 0x0b, 0xb7, 0x55, 0x9e, + 0xe7, 0xf0, 0xf0, 0x9f, 0x2f, 0x23, 0x0c, 0x8f, 0x1c, 0xcf, 0x9b, 0x7e, 0x72, 0xdf, 0x86, 0xce, + 0x9b, 0xf9, 0xbb, 0xa9, 0xef, 0x06, 0xa1, 0xe3, 0x79, 0xa3, 0x0e, 0x32, 0xe0, 0xe3, 0x5b, 0x91, + 0xd9, 0xd9, 0x6c, 0xee, 0xbe, 0x0f, 0xa7, 0xbe, 0x77, 0x36, 0x02, 0x48, 0x87, 0xe3, 0x5b, 0x8e, + 0x0f, 0x33, 0x37, 0x50, 0xf1, 0xee, 0xa9, 0x7f, 0xb5, 0xd1, 0xc1, 0xf5, 0x46, 0x07, 0xbf, 0x37, + 0x3a, 0xf8, 0xb6, 0xd5, 0x3b, 0xd7, 0x5b, 0xbd, 0xf3, 0x73, 0xab, 0x77, 0x3e, 0xbf, 0x4a, 0x52, + 0xbe, 0x6a, 0x16, 0x56, 0xc4, 0x72, 0x7b, 0x67, 0x24, 0x5b, 0x8d, 0x64, 0x5f, 0xd8, 0x37, 0x07, + 0x2c, 0x6e, 0xa6, 0x96, 0x67, 0xbc, 0x18, 0xc8, 0x3b, 0x7c, 0xf9, 0x27, 0x00, 0x00, 0xff, 0xff, + 0xc0, 0x67, 0x9c, 0x96, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/action_by_ref_id.pb.go b/x/nftmngr/types/v091/action_by_ref_id.pb.go new file mode 100644 index 00000000..d0e6bab6 --- /dev/null +++ b/x/nftmngr/types/v091/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/action_by_ref_id.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_5b201b1de9855fcb, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v091.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v091/action_by_ref_id.proto", fileDescriptor_5b201b1de9855fcb) +} + +var fileDescriptor_5b201b1de9855fcb = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xd0, 0x29, 0x03, 0x43, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/action_executor.pb.go b/x/nftmngr/types/v091/action_executor.pb.go new file mode 100644 index 00000000..9a4f8336 --- /dev/null +++ b/x/nftmngr/types/v091/action_executor.pb.go @@ -0,0 +1,648 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/action_executor.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionExecutor struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress string `protobuf:"bytes,2,opt,name=executorAddress,proto3" json:"executorAddress,omitempty"` + Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *ActionExecutor) Reset() { *m = ActionExecutor{} } +func (m *ActionExecutor) String() string { return proto.CompactTextString(m) } +func (*ActionExecutor) ProtoMessage() {} +func (*ActionExecutor) Descriptor() ([]byte, []int) { + return fileDescriptor_c3eef538ad390545, []int{0} +} +func (m *ActionExecutor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutor.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 *ActionExecutor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutor.Merge(m, src) +} +func (m *ActionExecutor) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutor) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutor.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutor proto.InternalMessageInfo + +func (m *ActionExecutor) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutor) GetExecutorAddress() string { + if m != nil { + return m.ExecutorAddress + } + return "" +} + +func (m *ActionExecutor) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type ActionExecutorBySchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ActionExecutorBySchema) Reset() { *m = ActionExecutorBySchema{} } +func (m *ActionExecutorBySchema) String() string { return proto.CompactTextString(m) } +func (*ActionExecutorBySchema) ProtoMessage() {} +func (*ActionExecutorBySchema) Descriptor() ([]byte, []int) { + return fileDescriptor_c3eef538ad390545, []int{1} +} +func (m *ActionExecutorBySchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutorBySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutorBySchema.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 *ActionExecutorBySchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutorBySchema.Merge(m, src) +} +func (m *ActionExecutorBySchema) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutorBySchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutorBySchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutorBySchema proto.InternalMessageInfo + +func (m *ActionExecutorBySchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutorBySchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ActionExecutor)(nil), "thesixnetwork.sixnft.nftmngr.v091.ActionExecutor") + proto.RegisterType((*ActionExecutorBySchema)(nil), "thesixnetwork.sixnft.nftmngr.v091.ActionExecutorBySchema") +} + +func init() { + proto.RegisterFile("nftmngr/v091/action_executor.proto", fileDescriptor_c3eef538ad390545) +} + +var fileDescriptor_c3eef538ad390545 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0x7a, 0x5d, + 0xa1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, + 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, + 0x61, 0x96, 0x39, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, + 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, + 0x4a, 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, + 0xe0, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, + 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xa1, 0xa5, 0x0f, 0x09, 0x2d, 0xfd, + 0x0a, 0x7d, 0x58, 0x40, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x83, 0x3b, 0x89, 0x0d, 0x1c, 0xbe, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x83, 0x04, 0x6e, 0xa1, 0x85, 0x01, 0x00, 0x00, +} + +func (m *ActionExecutor) 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 *ActionExecutor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x1a + } + if len(m.ExecutorAddress) > 0 { + i -= len(m.ExecutorAddress) + copy(dAtA[i:], m.ExecutorAddress) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ActionExecutorBySchema) 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 *ActionExecutorBySchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutorBySchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionExecutor(dAtA []byte, offset int, v uint64) int { + offset -= sovActionExecutor(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionExecutor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.ExecutorAddress) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + return n +} + +func (m *ActionExecutorBySchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovActionExecutor(uint64(l)) + } + } + return n +} + +func sovActionExecutor(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionExecutor(x uint64) (n int) { + return sovActionExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionExecutor) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActionExecutorBySchema) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutorBySchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutorBySchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionExecutor(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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrInvalidLengthActionExecutor + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionExecutor + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionExecutor + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionExecutor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionExecutor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionExecutor = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/action_of_schema.pb.go b/x/nftmngr/types/v091/action_of_schema.pb.go new file mode 100644 index 00000000..93e91ef9 --- /dev/null +++ b/x/nftmngr/types/v091/action_of_schema.pb.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/action_of_schema.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *ActionOfSchema) Reset() { *m = ActionOfSchema{} } +func (m *ActionOfSchema) String() string { return proto.CompactTextString(m) } +func (*ActionOfSchema) ProtoMessage() {} +func (*ActionOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_d23be301e76ac7c4, []int{0} +} +func (m *ActionOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionOfSchema.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 *ActionOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionOfSchema.Merge(m, src) +} +func (m *ActionOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ActionOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionOfSchema proto.InternalMessageInfo + +func (m *ActionOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionOfSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionOfSchema) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*ActionOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v091.ActionOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v091/action_of_schema.proto", fileDescriptor_d23be301e76ac7c4) +} + +var fileDescriptor_d23be301e76ac7c4 = []byte{ + // 216 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0x9a, + 0xfd, 0xd3, 0x82, 0xc1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, + 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, + 0xc4, 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, + 0x5a, 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0x04, 0xe1, 0x38, 0xf9, 0x9d, 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, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, + 0x7e, 0xae, 0x3e, 0x8a, 0x4b, 0xf5, 0x21, 0x2e, 0xd5, 0xaf, 0xd0, 0x87, 0xf9, 0xb2, 0xa4, 0xb2, + 0x20, 0xb5, 0x18, 0xec, 0xd7, 0x24, 0x36, 0xb0, 0xdf, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xea, 0xa0, 0x93, 0x8f, 0x02, 0x01, 0x00, 0x00, +} + +func (m *ActionOfSchema) 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 *ActionOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintActionOfSchema(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovActionOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovActionOfSchema(uint64(m.Index)) + } + return n +} + +func sovActionOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionOfSchema(x uint64) (n int) { + return sovActionOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionOfSchema) 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 ErrIntOverflowActionOfSchema + } + 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: ActionOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipActionOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionOfSchema(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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrInvalidLengthActionOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/attribute_definition.pb.go b/x/nftmngr/types/v091/attribute_definition.pb.go new file mode 100644 index 00000000..13b10739 --- /dev/null +++ b/x/nftmngr/types/v091/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/attribute_definition.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_9977345318f2ce7f, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_9977345318f2ce7f, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v091.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v091/attribute_definition.proto", fileDescriptor_9977345318f2ce7f) +} + +var fileDescriptor_9977345318f2ce7f = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x58, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x8c, 0x0d, 0xf1, 0xe3, 0x48, 0x55, 0x4d, 0x5c, 0xb6, 0x49, 0x61, 0x02, 0x89, 0x4b, 0xe4, + 0xcc, 0x4e, 0x6b, 0x2d, 0xb1, 0x83, 0xfb, 0x52, 0xda, 0xff, 0x82, 0xff, 0x88, 0x2b, 0xc7, 0x1d, + 0xb9, 0x81, 0xda, 0x7f, 0x04, 0xc5, 0xee, 0x0f, 0xda, 0x54, 0x22, 0x37, 0xfb, 0x7d, 0xef, 0xfb, + 0x3e, 0xfb, 0xf9, 0x3d, 0xa3, 0x17, 0x22, 0x82, 0x44, 0xf4, 0x94, 0x37, 0x3c, 0x7d, 0xf7, 0xd2, + 0x23, 0x00, 0x8a, 0x87, 0x19, 0xb0, 0x80, 0xb2, 0x88, 0x0b, 0x0e, 0x5c, 0x0a, 0x37, 0x55, 0x12, + 0x24, 0x3e, 0x82, 0x3e, 0x1b, 0xf0, 0x91, 0x60, 0xf0, 0x4d, 0xaa, 0x3b, 0x37, 0x5f, 0x46, 0xe0, + 0xce, 0xd8, 0x6e, 0xce, 0x6e, 0x1f, 0xad, 0x68, 0x51, 0x3e, 0x48, 0x63, 0x32, 0x0e, 0x64, 0xba, + 0x54, 0x69, 0x3f, 0x5f, 0x49, 0x11, 0x11, 0x04, 0x4b, 0xcb, 0x21, 0x89, 0x33, 0x66, 0xf2, 0x8e, + 0x7f, 0x6f, 0xa1, 0xfd, 0x2e, 0x8b, 0x48, 0x16, 0xc3, 0x25, 0x17, 0xf0, 0x29, 0x87, 0xb0, 0x44, + 0x8f, 0x45, 0x96, 0x84, 0x4c, 0xad, 0x93, 0x6c, 0xeb, 0xd0, 0x3a, 0x79, 0x78, 0xf6, 0xc6, 0xfd, + 0xef, 0x19, 0xdd, 0x2b, 0x2d, 0xf0, 0x7e, 0xce, 0xd7, 0xc2, 0x1f, 0x2a, 0xfe, 0x81, 0xd8, 0x10, + 0xcf, 0x0d, 0x07, 0xa0, 0xb8, 0xe8, 0x15, 0x0c, 0x1f, 0x94, 0x36, 0xfc, 0xa8, 0x05, 0x8a, 0x86, + 0x83, 0x0d, 0x71, 0xac, 0xd0, 0x93, 0x50, 0xca, 0x98, 0x11, 0x51, 0x70, 0xdc, 0xd2, 0x8e, 0x6f, + 0x4b, 0x38, 0x76, 0x8c, 0x42, 0xc1, 0xb2, 0x15, 0x6e, 0x02, 0x70, 0x8c, 0x5a, 0x51, 0x2c, 0x49, + 0xe1, 0x25, 0xec, 0xaa, 0x76, 0x7c, 0x5d, 0xc2, 0xf1, 0x22, 0xe7, 0x17, 0xfc, 0x9a, 0x51, 0x31, + 0xdc, 0xd9, 0x41, 0x35, 0xad, 0x7e, 0xfc, 0x63, 0x0b, 0x35, 0x17, 0x58, 0x77, 0xd1, 0x6d, 0x18, + 0xa3, 0xaa, 0x20, 0x89, 0x79, 0xd2, 0x86, 0xaf, 0xd7, 0xf8, 0x29, 0x6a, 0x50, 0x02, 0x24, 0x80, + 0x71, 0x6a, 0x4a, 0xdf, 0xf0, 0xeb, 0x79, 0xe0, 0x66, 0x9c, 0x32, 0xdc, 0x46, 0x75, 0xc5, 0xbe, + 0x66, 0x5c, 0x31, 0xaa, 0x8b, 0x54, 0xf7, 0x17, 0x7b, 0xec, 0xa2, 0xe6, 0xbc, 0x0d, 0xb5, 0x6b, + 0x10, 0x71, 0x16, 0x53, 0x7d, 0xb3, 0x86, 0xff, 0x68, 0x06, 0xe9, 0x83, 0x5d, 0xe4, 0x00, 0xfe, + 0x8c, 0xf6, 0x56, 0xdb, 0xd6, 0xae, 0xe9, 0x22, 0x9c, 0x96, 0x28, 0x42, 0xd7, 0x10, 0xaf, 0x35, + 0xcf, 0xdf, 0xa5, 0xff, 0x6e, 0x31, 0x41, 0x98, 0x9a, 0x76, 0x0e, 0x12, 0x2e, 0x60, 0x56, 0xe1, + 0x6d, 0x2d, 0x7e, 0x5e, 0x46, 0x7c, 0x6d, 0x16, 0xfc, 0x7d, 0xba, 0x3e, 0x1d, 0xcf, 0xd0, 0x5e, + 0x9f, 0x53, 0xca, 0x44, 0x20, 0x87, 0x4c, 0x71, 0xca, 0xec, 0x1d, 0x5d, 0x8d, 0x5d, 0x13, 0xbd, + 0x36, 0x41, 0x7c, 0x86, 0x5a, 0xb3, 0x34, 0x90, 0x41, 0x42, 0xd4, 0x1d, 0x83, 0x34, 0x26, 0xb7, + 0xcc, 0xae, 0xeb, 0xec, 0xa6, 0x01, 0x6f, 0xe4, 0xe5, 0x12, 0xc2, 0x07, 0xa8, 0xc6, 0x05, 0x65, + 0x23, 0xbb, 0x71, 0x68, 0x9d, 0x54, 0x7d, 0xb3, 0xe9, 0x5c, 0xfd, 0x9c, 0x38, 0xd6, 0xfd, 0xc4, + 0xb1, 0xfe, 0x4c, 0x1c, 0xeb, 0xfb, 0xd4, 0xa9, 0xdc, 0x4f, 0x9d, 0xca, 0xaf, 0xa9, 0x53, 0xf9, + 0xf2, 0xaa, 0xc7, 0xa1, 0x9f, 0x85, 0xee, 0xad, 0x4c, 0xbc, 0x95, 0xbb, 0x79, 0xe6, 0x6e, 0xde, + 0xc8, 0x9b, 0xff, 0x03, 0xf9, 0x93, 0x0e, 0xf4, 0x6f, 0x10, 0x6e, 0xeb, 0xd1, 0x3f, 0xff, 0x1b, + 0x00, 0x00, 0xff, 0xff, 0x34, 0x07, 0x8c, 0x78, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/display_option.pb.go b/x/nftmngr/types/v091/display_option.pb.go new file mode 100644 index 00000000..5f4fb5d2 --- /dev/null +++ b/x/nftmngr/types/v091/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/display_option.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_464b4fa863b325e9, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v091.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v091/display_option.proto", fileDescriptor_464b4fa863b325e9) } + +var fileDescriptor_464b4fa863b325e9 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x56, 0xb6, 0x8f, 0x05, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/metadata_creator.pb.go b/x/nftmngr/types/v091/metadata_creator.pb.go new file mode 100644 index 00000000..c4d04520 --- /dev/null +++ b/x/nftmngr/types/v091/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/metadata_creator.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_5350d61456ab8a91, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_5350d61456ab8a91, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v091.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v091.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v091/metadata_creator.proto", fileDescriptor_5350d61456ab8a91) +} + +var fileDescriptor_5350d61456ab8a91 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x63, 0xe1, 0x44, 0xda, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_attribute_value.pb.go b/x/nftmngr/types/v091/nft_attribute_value.pb.go new file mode 100644 index 00000000..7b5f9680 --- /dev/null +++ b/x/nftmngr/types/v091/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_attribute_value.proto + +package v091 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f0541b776567f98f, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f0541b776567f98f, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f0541b776567f98f, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f0541b776567f98f, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_f0541b776567f98f, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v091/nft_attribute_value.proto", fileDescriptor_f0541b776567f98f) +} + +var fileDescriptor_f0541b776567f98f = []byte{ + // 408 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xda, 0x30, + 0x18, 0xc6, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0xbc, 0xb1, 0x69, 0x7f, 0x8e, 0xe5, 0x50, 0xf5, 0x52, 0x0e, 0x69, 0xd5, 0x43, 0x2f, 0x91, + 0x03, 0x4e, 0x88, 0x48, 0x6c, 0xe4, 0x38, 0x14, 0xbe, 0x45, 0x3f, 0x46, 0x3f, 0x4a, 0x8f, 0x1c, + 0x7b, 0xac, 0xe0, 0x8b, 0x54, 0x71, 0x88, 0x50, 0x9a, 0x48, 0xe5, 0x66, 0xf9, 0x7d, 0x9e, 0xe7, + 0xf7, 0xe6, 0x75, 0x5e, 0xf8, 0x85, 0xf9, 0x32, 0x66, 0x81, 0xc0, 0xcb, 0x1f, 0xff, 0x7f, 0x62, + 0xe6, 0x4b, 0x97, 0x48, 0x29, 0x42, 0x2f, 0x95, 0xd4, 0x5d, 0x92, 0x28, 0xa5, 0xf6, 0x42, 0x70, + 0xc9, 0xd1, 0x67, 0x39, 0xa3, 0x49, 0xb8, 0x62, 0x54, 0xde, 0x70, 0x31, 0xb7, 0xb3, 0xa3, 0x2f, + 0xed, 0xbd, 0xd9, 0xce, 0xcc, 0x9f, 0x3e, 0x06, 0x9c, 0x07, 0x11, 0xc5, 0xca, 0xe0, 0xa5, 0x3e, + 0x26, 0x6c, 0x9d, 0xbb, 0xfb, 0x77, 0x3a, 0x7c, 0x37, 0xf6, 0xe5, 0x49, 0x11, 0x7d, 0x95, 0x25, + 0x23, 0x04, 0x75, 0x46, 0x62, 0x6a, 0x82, 0x1e, 0x18, 0xb4, 0x1d, 0x75, 0x46, 0x1c, 0xbe, 0x67, + 0x69, 0xec, 0x51, 0xf1, 0xbc, 0x0f, 0xf3, 0x55, 0x0f, 0x0c, 0xde, 0x0e, 0xff, 0xda, 0x2f, 0x36, + 0x62, 0x8f, 0x55, 0x40, 0x19, 0x76, 0xa6, 0x39, 0x5d, 0x56, 0x73, 0x9f, 0x01, 0x13, 0x29, 0x42, + 0x16, 0x54, 0x80, 0xaf, 0x8f, 0x06, 0x5e, 0xa8, 0x80, 0x2a, 0x30, 0xa9, 0xb9, 0x47, 0x02, 0x7e, + 0xf0, 0x38, 0x8f, 0x28, 0x61, 0x15, 0xa2, 0xae, 0x88, 0xff, 0x8e, 0x20, 0x8e, 0xf2, 0x84, 0x0a, + 0xd2, 0xf0, 0xea, 0x0a, 0x28, 0x82, 0x86, 0x1f, 0x71, 0x52, 0x79, 0x5c, 0xb3, 0xa1, 0x88, 0x7f, + 0x8e, 0x20, 0x9e, 0x66, 0xfe, 0x0a, 0xaf, 0xe3, 0x57, 0xaf, 0xd1, 0x10, 0x1a, 0xb3, 0x70, 0x3a, + 0xa5, 0xcc, 0x95, 0xdc, 0x8d, 0x89, 0x98, 0x53, 0xb9, 0x88, 0xc8, 0x84, 0x9a, 0xcd, 0x1e, 0x18, + 0xb4, 0x9c, 0x4e, 0x5e, 0xbc, 0xe4, 0xe7, 0x87, 0xd2, 0xe8, 0x0d, 0x6c, 0xa8, 0x8e, 0xfa, 0xdf, + 0x60, 0xb7, 0xee, 0xfd, 0x50, 0x77, 0x2f, 0x50, 0x7f, 0x8b, 0xee, 0x1c, 0xd4, 0x75, 0xc3, 0x2f, + 0xab, 0xdb, 0x85, 0xfa, 0x3b, 0x34, 0x6a, 0x07, 0x57, 0x96, 0xb7, 0x0a, 0xf9, 0x57, 0xd8, 0xa9, + 0xf9, 0xea, 0xb2, 0x18, 0xec, 0xc5, 0xa3, 0xf1, 0xfd, 0xd6, 0x02, 0x9b, 0xad, 0x05, 0x1e, 0xb7, + 0x16, 0xb8, 0xdd, 0x59, 0xda, 0x66, 0x67, 0x69, 0x0f, 0x3b, 0x4b, 0xbb, 0xfe, 0x1d, 0x84, 0x72, + 0x96, 0x7a, 0xf6, 0x84, 0xc7, 0xb8, 0x34, 0x67, 0x9c, 0xcf, 0x19, 0xaf, 0x70, 0xb1, 0x84, 0x72, + 0xbd, 0xa0, 0x89, 0x5a, 0x45, 0xaf, 0xa9, 0x36, 0xe7, 0xd7, 0x53, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x34, 0xbf, 0x93, 0x42, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_collection.pb.go b/x/nftmngr/types/v091/nft_collection.pb.go new file mode 100644 index 00000000..2b611116 --- /dev/null +++ b/x/nftmngr/types/v091/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_collection.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_1efa6f557cfa4228, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v091.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v091/nft_collection.proto", fileDescriptor_1efa6f557cfa4228) } + +var fileDescriptor_1efa6f557cfa4228 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xfe, 0x4e, 0x66, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_data.pb.go b/x/nftmngr/types/v091/nft_data.pb.go new file mode 100644 index 00000000..a9690f34 --- /dev/null +++ b/x/nftmngr/types/v091/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_data.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_37aea87e30eb8f9a, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v091.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_37aea87e30eb8f9a, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v091.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v091.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v091/nft_data.proto", fileDescriptor_37aea87e30eb8f9a) } + +var fileDescriptor_37aea87e30eb8f9a = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xc0, 0xb6, 0x0b, 0x12, 0x97, 0x40, 0x27, 0x14, 0x09, 0x65, 0x52, 0x3a, 0x38, 0x70, + 0xb1, 0xdc, 0xc4, 0x49, 0xac, 0x11, 0xbb, 0x72, 0x9e, 0xec, 0xe5, 0x5b, 0xf0, 0xb1, 0x38, 0xee, + 0xc8, 0x11, 0xb5, 0x9f, 0x03, 0x09, 0xc5, 0x4e, 0x03, 0x8c, 0x03, 0x48, 0xdc, 0x92, 0xdf, 0xf3, + 0xff, 0x3f, 0x6f, 0x7e, 0xd0, 0x9e, 0xc8, 0xa0, 0x14, 0xb9, 0xf2, 0x2f, 0x9e, 0xbf, 0x7c, 0xe1, + 0x8b, 0x0c, 0x48, 0x4a, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x7d, 0x28, 0x58, 0xc5, 0xaf, 0x04, + 0x83, 0x4b, 0xa9, 0xce, 0xbd, 0xe6, 0x33, 0x03, 0xaf, 0x75, 0x78, 0x8d, 0xe3, 0xd1, 0xc1, 0x1f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x06, 0x46, 0x2e, 0xe8, 0xa7, 0x9a, 0x99, 0x54, 0x4f, 0xbe, 0xf7, + 0xd1, 0x20, 0xca, 0x60, 0x4a, 0x81, 0xe2, 0x03, 0x74, 0xbf, 0x11, 0x56, 0x49, 0xc1, 0x4a, 0x4a, + 0x12, 0x99, 0x32, 0xc7, 0x1a, 0x5b, 0x93, 0x61, 0xbc, 0x2d, 0x32, 0x98, 0x69, 0xfa, 0x46, 0xa6, + 0x0c, 0x3f, 0x44, 0x9b, 0x20, 0xcf, 0x99, 0x20, 0x3c, 0x75, 0xee, 0x68, 0xc1, 0x40, 0xff, 0x87, + 0x29, 0x7e, 0x8c, 0x46, 0x26, 0x24, 0x2f, 0x05, 0x53, 0x4e, 0x5f, 0x47, 0x91, 0x46, 0xa7, 0x0d, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x4d, 0x15, 0xab, 0x2a, 0x02, 0xd7, 0x0b, 0xe6, 0xdc, 0x1d, + 0x5b, 0x93, 0x9d, 0xc3, 0x23, 0xef, 0xaf, 0x73, 0x79, 0x3a, 0x4b, 0x60, 0xbc, 0x67, 0xd7, 0x0b, + 0x16, 0xdb, 0xf2, 0x16, 0xc1, 0xfb, 0x68, 0x4b, 0x2a, 0x9e, 0x73, 0x41, 0x78, 0x49, 0x73, 0xe6, + 0xdc, 0xd3, 0x4d, 0x8c, 0x0c, 0x0b, 0x1b, 0x84, 0x9f, 0xa2, 0x6d, 0x29, 0x92, 0x82, 0x76, 0x9a, + 0x0d, 0xad, 0xd9, 0x6a, 0xa1, 0x11, 0xed, 0xa1, 0xa1, 0x99, 0xa5, 0x56, 0xdc, 0x19, 0x68, 0x81, + 0x99, 0xfb, 0xbd, 0xe2, 0x98, 0xa2, 0xdd, 0xb6, 0x48, 0xb7, 0xd7, 0xca, 0xd9, 0x1c, 0xf7, 0x27, + 0xa3, 0xc3, 0xe3, 0x7f, 0x18, 0x23, 0xca, 0x20, 0x58, 0xfb, 0x3e, 0x34, 0xcf, 0x11, 0xdb, 0x26, + 0x5d, 0x47, 0x2b, 0x9c, 0x20, 0xbc, 0x6e, 0xf2, 0x97, 0x1a, 0xc3, 0xff, 0xa8, 0xb1, 0xdb, 0xe6, + 0xfb, 0x59, 0xe4, 0xd9, 0x2b, 0x64, 0xdf, 0x5e, 0x29, 0xc6, 0x68, 0xe7, 0x34, 0x0e, 0xdf, 0x86, + 0x11, 0x09, 0xa6, 0xd3, 0xf8, 0x64, 0x36, 0xb3, 0x7b, 0xf8, 0x01, 0xb2, 0xc3, 0xe8, 0xec, 0x24, + 0x8e, 0x82, 0x77, 0x1d, 0xb5, 0x5e, 0x47, 0x5f, 0x96, 0xae, 0x75, 0xb3, 0x74, 0xad, 0x6f, 0x4b, + 0xd7, 0xfa, 0xbc, 0x72, 0x7b, 0x37, 0x2b, 0xb7, 0xf7, 0x75, 0xe5, 0xf6, 0x3e, 0x1e, 0xe7, 0x1c, + 0x8a, 0x7a, 0xee, 0x25, 0xb2, 0xf4, 0x7f, 0x6b, 0xd5, 0x37, 0xad, 0xfa, 0x57, 0xfe, 0xfa, 0x42, + 0x9b, 0x0b, 0xa8, 0xf4, 0x9d, 0xce, 0x37, 0xf4, 0x51, 0x1e, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff, + 0xf6, 0xb6, 0x15, 0xff, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_fee_balance.pb.go b/x/nftmngr/types/v091/nft_fee_balance.pb.go new file mode 100644 index 00000000..6382bb0c --- /dev/null +++ b/x/nftmngr/types/v091/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_fee_balance.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_e0f6aa339ef6ba70, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v091.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v091/nft_fee_balance.proto", fileDescriptor_e0f6aa339ef6ba70) +} + +var fileDescriptor_e0f6aa339ef6ba70 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x97, + 0x80, 0x87, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_fee_config.pb.go b/x/nftmngr/types/v091/nft_fee_config.pb.go new file mode 100644 index 00000000..21ecdc56 --- /dev/null +++ b/x/nftmngr/types/v091/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_fee_config.proto + +package v091 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ea8d0f46992e3b89, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v091.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_ea8d0f46992e3b89, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ea8d0f46992e3b89, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ea8d0f46992e3b89, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v091.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v091.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v091.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v091.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v091/nft_fee_config.proto", fileDescriptor_ea8d0f46992e3b89) } + +var fileDescriptor_ea8d0f46992e3b89 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x29, 0x8b, 0x9c, 0x62, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_schema.pb.go b/x/nftmngr/types/v091/nft_schema.pb.go new file mode 100644 index 00000000..85830d28 --- /dev/null +++ b/x/nftmngr/types/v091/nft_schema.pb.go @@ -0,0 +1,1286 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_schema.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_520b7beb8c1bd742, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaINPUT struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + SystemActioners []string `protobuf:"bytes,5,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,6,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainDataInput `protobuf:"bytes,7,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,8,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,9,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } +func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaINPUT) ProtoMessage() {} +func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { + return fileDescriptor_520b7beb8c1bd742, []int{1} +} +func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaINPUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaINPUT.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 *NFTSchemaINPUT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaINPUT.Merge(m, src) +} +func (m *NFTSchemaINPUT) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaINPUT) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaINPUT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaINPUT proto.InternalMessageInfo + +func (m *NFTSchemaINPUT) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaINPUT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaINPUT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaINPUT) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaINPUT) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaINPUT) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaINPUT) GetOnchainData() *OnChainDataInput { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaINPUT) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaINPUT) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v091.NFTSchema") + proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.v091.NFTSchemaINPUT") +} + +func init() { proto.RegisterFile("nftmngr/v091/nft_schema.proto", fileDescriptor_520b7beb8c1bd742) } + +var fileDescriptor_520b7beb8c1bd742 = []byte{ + // 425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x8e, 0xd3, 0x30, + 0x10, 0xc6, 0x9b, 0xed, 0xb6, 0xdb, 0x38, 0x88, 0x3f, 0x16, 0x07, 0x6b, 0x25, 0xac, 0xb0, 0xa7, + 0x70, 0x58, 0x07, 0x58, 0x2e, 0x1c, 0x17, 0x10, 0xd2, 0x5e, 0x02, 0x84, 0x65, 0x0f, 0x5c, 0x22, + 0x6f, 0xe2, 0x34, 0x16, 0x8a, 0x1d, 0xd9, 0x2e, 0xdb, 0xf2, 0x14, 0x88, 0xa7, 0xe2, 0xd8, 0x23, + 0x17, 0x24, 0xd4, 0xbe, 0x08, 0x8a, 0xd3, 0x96, 0xa4, 0x12, 0x50, 0x84, 0xf6, 0x36, 0xf9, 0x26, + 0xf3, 0xf3, 0xcc, 0x7c, 0x1a, 0x70, 0x4f, 0xe4, 0xa6, 0x14, 0x63, 0x15, 0x7e, 0x7c, 0xf8, 0xf4, + 0x51, 0x28, 0x72, 0x93, 0xe8, 0xb4, 0x60, 0x25, 0x25, 0x95, 0x92, 0x46, 0xc2, 0xfb, 0xa6, 0x60, + 0x9a, 0x4f, 0x05, 0x33, 0x57, 0x52, 0x7d, 0x20, 0x75, 0x98, 0x1b, 0xb2, 0xaa, 0x21, 0x75, 0xcd, + 0xa1, 0xdf, 0x21, 0x48, 0x91, 0xa4, 0x05, 0xe5, 0x22, 0xc9, 0xa8, 0x59, 0x41, 0x0e, 0x71, 0xf7, + 0x0f, 0xc5, 0xc7, 0x9d, 0xfc, 0xd1, 0xf7, 0x3d, 0xe0, 0x46, 0x2f, 0xcf, 0xdf, 0xda, 0x87, 0x21, + 0x04, 0xfb, 0xa9, 0xcc, 0x18, 0x72, 0x7c, 0x27, 0x70, 0x63, 0x1b, 0xd7, 0x9a, 0xa0, 0x25, 0x43, + 0x7b, 0x8d, 0x56, 0xc7, 0xf0, 0x2e, 0x18, 0xc8, 0x2b, 0xc1, 0x14, 0xea, 0x5b, 0xb1, 0xf9, 0x80, + 0x3e, 0xf0, 0x32, 0xa6, 0x53, 0xc5, 0x2b, 0xc3, 0xa5, 0x40, 0xfb, 0x36, 0xd7, 0x96, 0x60, 0x04, + 0xbc, 0x56, 0x0b, 0x68, 0xe0, 0x3b, 0x81, 0xf7, 0xf8, 0x98, 0xfc, 0x75, 0x50, 0xf2, 0xca, 0x56, + 0xbd, 0xa0, 0x86, 0xc6, 0x40, 0x6e, 0x62, 0xf8, 0x06, 0xdc, 0x90, 0xe2, 0xd7, 0xcc, 0x68, 0x68, + 0x81, 0x64, 0x17, 0xa0, 0x78, 0x5e, 0x97, 0x59, 0xa2, 0xb7, 0x62, 0x58, 0x24, 0x06, 0x80, 0xeb, + 0x0b, 0xa6, 0x78, 0xce, 0x59, 0x86, 0x0e, 0x7c, 0x27, 0x18, 0xc5, 0x2d, 0x05, 0x1e, 0x03, 0x58, + 0x72, 0x61, 0x12, 0x3a, 0x31, 0x85, 0x54, 0xfc, 0x13, 0xb5, 0xb3, 0x8e, 0xec, 0xac, 0x77, 0xea, + 0xcc, 0x69, 0x3b, 0x71, 0xf4, 0xa5, 0x0f, 0x6e, 0x6e, 0xf6, 0x7b, 0x16, 0xbd, 0x7e, 0x77, 0x7e, + 0xed, 0x4b, 0x7e, 0x00, 0x6e, 0xeb, 0x99, 0x36, 0xac, 0x4c, 0x68, 0x5a, 0x0b, 0x4c, 0x69, 0x34, + 0xf0, 0xfb, 0x81, 0x1b, 0xdf, 0x6a, 0xf4, 0xd3, 0xb5, 0xbc, 0xed, 0xc7, 0xf0, 0x7f, 0xfd, 0xb8, + 0xd8, 0xf2, 0xe3, 0xc0, 0x02, 0x4f, 0xfe, 0xcd, 0x8f, 0x33, 0x51, 0x4d, 0xcc, 0x9f, 0x4c, 0x19, + 0xed, 0x68, 0x8a, 0xfb, 0x1b, 0x53, 0x9e, 0x45, 0x5f, 0x17, 0xd8, 0x99, 0x2f, 0xb0, 0xf3, 0x63, + 0x81, 0x9d, 0xcf, 0x4b, 0xdc, 0x9b, 0x2f, 0x71, 0xef, 0xdb, 0x12, 0xf7, 0xde, 0x3f, 0x19, 0x73, + 0x53, 0x4c, 0x2e, 0x49, 0x2a, 0xcb, 0xb0, 0xd3, 0x74, 0xd8, 0x34, 0x1d, 0x4e, 0xc3, 0xf5, 0x41, + 0x99, 0x59, 0xc5, 0xb4, 0x3d, 0xab, 0xcb, 0xa1, 0xbd, 0xa5, 0x93, 0x9f, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x3b, 0x24, 0x20, 0x64, 0xd1, 0x03, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaINPUT) 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 *NFTSchemaINPUT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x4a + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaINPUT) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaINPUT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainDataInput{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/nft_schema_by_contract.pb.go b/x/nftmngr/types/v091/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..b38290c1 --- /dev/null +++ b/x/nftmngr/types/v091/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/nft_schema_by_contract.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_53fce908b185269c, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v091.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v091/nft_schema_by_contract.proto", fileDescriptor_53fce908b185269c) +} + +var fileDescriptor_53fce908b185269c = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xd4, 0x72, 0xd6, 0x9a, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/on_chain_data.pb.go b/x/nftmngr/types/v091/on_chain_data.pb.go new file mode 100644 index 00000000..75468a89 --- /dev/null +++ b/x/nftmngr/types/v091/on_chain_data.pb.go @@ -0,0 +1,1139 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/on_chain_data.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_1df91f6237020001, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + TokenAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,3,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_1df91f6237020001, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +type OnChainDataInput struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + SchemaAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=schema_attributes,json=schemaAttributes,proto3" json:"schema_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainDataInput) Reset() { *m = OnChainDataInput{} } +func (m *OnChainDataInput) String() string { return proto.CompactTextString(m) } +func (*OnChainDataInput) ProtoMessage() {} +func (*OnChainDataInput) Descriptor() ([]byte, []int) { + return fileDescriptor_1df91f6237020001, []int{2} +} +func (m *OnChainDataInput) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainDataInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainDataInput.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 *OnChainDataInput) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainDataInput.Merge(m, src) +} +func (m *OnChainDataInput) XXX_Size() int { + return m.Size() +} +func (m *OnChainDataInput) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainDataInput.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainDataInput proto.InternalMessageInfo + +func (m *OnChainDataInput) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainDataInput) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainDataInput) GetSchemaAttributes() []*AttributeDefinition { + if m != nil { + return m.SchemaAttributes + } + return nil +} + +func (m *OnChainDataInput) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainDataInput) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainDataInput) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v091.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v091.OnChainData") + proto.RegisterType((*OnChainDataInput)(nil), "thesixnetwork.sixnft.nftmngr.v091.OnChainDataInput") +} + +func init() { proto.RegisterFile("nftmngr/v091/on_chain_data.proto", fileDescriptor_1df91f6237020001) } + +var fileDescriptor_1df91f6237020001 = []byte{ + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xb3, 0x0d, 0x84, 0xb2, 0x09, 0x34, 0xec, 0xc9, 0xf4, 0x60, 0xd2, 0x20, 0xd1, 0x70, + 0xc0, 0xe6, 0x9f, 0x90, 0x38, 0x42, 0x0b, 0x12, 0x97, 0x82, 0xb6, 0x12, 0x07, 0x2e, 0xd6, 0xc6, + 0x19, 0xc7, 0xab, 0xc6, 0xeb, 0xb0, 0x3b, 0x0e, 0xe5, 0x2d, 0x78, 0x18, 0x1e, 0x82, 0x63, 0x8f, + 0x1c, 0x51, 0xf2, 0x1a, 0x1c, 0x90, 0x77, 0x9d, 0xc6, 0x96, 0x90, 0xa8, 0x54, 0x7a, 0x5b, 0x7d, + 0x33, 0xdf, 0x4f, 0x3b, 0xdf, 0x68, 0xe8, 0x40, 0x25, 0x98, 0xa9, 0xa9, 0x0e, 0x17, 0x8f, 0x5f, + 0x3e, 0x09, 0x73, 0x15, 0xc5, 0xa9, 0x90, 0x2a, 0x9a, 0x08, 0x14, 0xc1, 0x5c, 0xe7, 0x98, 0xb3, + 0x3d, 0x4c, 0xc1, 0xc8, 0x53, 0x05, 0xf8, 0x25, 0xd7, 0x27, 0x41, 0xf9, 0x4c, 0x30, 0xa8, 0x6c, + 0x41, 0x69, 0xdb, 0xdd, 0x6f, 0x40, 0x04, 0xa2, 0x96, 0xe3, 0x02, 0x21, 0x9a, 0x40, 0x22, 0x95, + 0x44, 0x99, 0x2b, 0xc7, 0xda, 0xbd, 0xdb, 0x6c, 0x8c, 0x6b, 0xa5, 0x07, 0x8d, 0x92, 0x4a, 0x30, + 0xda, 0x70, 0x16, 0x62, 0x56, 0x80, 0xeb, 0x1b, 0x7e, 0xa0, 0xf4, 0xed, 0x4c, 0x4c, 0x8f, 0x51, + 0x60, 0x61, 0xd8, 0x3d, 0xda, 0x35, 0xf6, 0x15, 0x29, 0x91, 0x81, 0x47, 0x06, 0x64, 0x74, 0x93, + 0x53, 0x27, 0x1d, 0x89, 0x0c, 0xd8, 0x1e, 0xed, 0x55, 0x0d, 0x16, 0xe2, 0x6d, 0x0d, 0xc8, 0x68, + 0x9b, 0x57, 0xa6, 0x8f, 0xa5, 0x34, 0xfc, 0x4d, 0x68, 0xf7, 0xbd, 0x3a, 0x28, 0xe7, 0x3e, 0x14, + 0x28, 0x98, 0xa0, 0x7d, 0xcc, 0x4f, 0x40, 0x6d, 0x3e, 0x60, 0x3c, 0x32, 0x68, 0x8f, 0xba, 0x4f, + 0x5f, 0x04, 0xff, 0xcc, 0x22, 0x78, 0xb5, 0x36, 0x1d, 0x9e, 0x0f, 0xcf, 0x77, 0x2c, 0xef, 0xbc, + 0x62, 0xd8, 0x01, 0xbd, 0xe1, 0x86, 0x37, 0xde, 0x96, 0x25, 0x3f, 0xbc, 0x08, 0xd9, 0x3a, 0xf8, + 0xda, 0xc9, 0xde, 0xd0, 0x8e, 0x1b, 0xc3, 0x6b, 0x5b, 0xc6, 0xa3, 0x0b, 0x30, 0x36, 0xd1, 0xf1, + 0xca, 0x3c, 0xfc, 0xde, 0xa6, 0xfd, 0xda, 0xf8, 0xef, 0xd4, 0xbc, 0x40, 0xb6, 0x4f, 0x77, 0x34, + 0x2c, 0x40, 0xcc, 0x22, 0x0d, 0x9f, 0x0b, 0xa9, 0x61, 0x62, 0xb3, 0xdd, 0xe6, 0xb7, 0x9d, 0xcc, + 0x2b, 0x95, 0xdd, 0xa7, 0xb7, 0xaa, 0x46, 0x03, 0xb1, 0x06, 0xb4, 0x01, 0xf7, 0x78, 0xcf, 0x89, + 0xc7, 0x56, 0x63, 0x31, 0xbd, 0x63, 0xe2, 0x14, 0x32, 0x51, 0x8f, 0xb4, 0x7d, 0xa9, 0x48, 0xfb, + 0x0e, 0x58, 0xcb, 0xf4, 0x6f, 0x6b, 0xbb, 0x76, 0x65, 0x6b, 0xbb, 0xfe, 0x1f, 0xd6, 0xd6, 0xb9, + 0xc4, 0xda, 0x5e, 0x1f, 0xfd, 0x58, 0xfa, 0xe4, 0x6c, 0xe9, 0x93, 0x5f, 0x4b, 0x9f, 0x7c, 0x5b, + 0xf9, 0xad, 0xb3, 0x95, 0xdf, 0xfa, 0xb9, 0xf2, 0x5b, 0x9f, 0x9e, 0x4f, 0x25, 0xa6, 0xc5, 0x38, + 0x88, 0xf3, 0x2c, 0x6c, 0xa0, 0x43, 0x87, 0x0e, 0x4f, 0xc3, 0xf5, 0xad, 0xe1, 0xd7, 0x39, 0x18, + 0x7b, 0x71, 0xe3, 0x8e, 0x3d, 0xaf, 0x67, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x04, 0x11, + 0xfa, 0x11, 0x04, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OnChainDataInput) 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 *OnChainDataInput) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainDataInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.SchemaAttributes) > 0 { + for iNdEx := len(m.SchemaAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SchemaAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func (m *OnChainDataInput) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.SchemaAttributes) > 0 { + for _, e := range m.SchemaAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainDataInput) 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 ErrIntOverflowOnChainData + } + 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: OnChainDataInput: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainDataInput: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaAttributes = append(m.SchemaAttributes, &AttributeDefinition{}) + if err := m.SchemaAttributes[len(m.SchemaAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/opensea_display_option.pb.go b/x/nftmngr/types/v091/opensea_display_option.pb.go new file mode 100644 index 00000000..ba6a0167 --- /dev/null +++ b/x/nftmngr/types/v091/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/opensea_display_option.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_bdd5976c36b6b638, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v091.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v091/opensea_display_option.proto", fileDescriptor_bdd5976c36b6b638) +} + +var fileDescriptor_bdd5976c36b6b638 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x10, 0xaf, 0x7f, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/organization.pb.go b/x/nftmngr/types/v091/organization.pb.go new file mode 100644 index 00000000..85b80c63 --- /dev/null +++ b/x/nftmngr/types/v091/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/organization.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_a4d7ccac94efe849, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v091.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v091/organization.proto", fileDescriptor_a4d7ccac94efe849) } + +var fileDescriptor_a4d7ccac94efe849 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd4, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x43, 0x37, 0x6d, 0xec, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/origin_data.pb.go b/x/nftmngr/types/v091/origin_data.pb.go new file mode 100644 index 00000000..24b0dfe1 --- /dev/null +++ b/x/nftmngr/types/v091/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/origin_data.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5f7718825d0b1149, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_5f7718825d0b1149, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v091.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v091.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_5f7718825d0b1149, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v091.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v091.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v091.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v091/origin_data.proto", fileDescriptor_5f7718825d0b1149) } + +var fileDescriptor_5f7718825d0b1149 = []byte{ + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0xcd, 0x67, 0x25, 0x8e, 0x49, 0x5b, 0x20, 0x42, 0x24, 0x92, 0xa1, 0x17, 0x2e, 0xd6, 0x26, + 0xde, 0x38, 0x23, 0xf0, 0x6e, 0x35, 0x1e, 0x87, 0xf2, 0x2f, 0xf8, 0x59, 0x1c, 0x7b, 0xe4, 0x88, + 0x92, 0x5f, 0xc0, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0x25, 0x48, 0xc0, 0x6d, 0xf5, 0xf6, 0xbd, 0x37, + 0xef, 0x8d, 0x06, 0x3c, 0x3d, 0xe6, 0x54, 0x27, 0x14, 0x4c, 0x1f, 0x3e, 0x7f, 0x14, 0x18, 0xc2, + 0x04, 0x75, 0x14, 0x4b, 0x96, 0xfe, 0x19, 0x19, 0x36, 0x62, 0x8f, 0x27, 0x2a, 0xc3, 0x73, 0xad, + 0xf8, 0x93, 0xa1, 0x0f, 0xfe, 0xe2, 0x39, 0x66, 0xbf, 0x14, 0xf9, 0x0b, 0xd1, 0x9d, 0xfd, 0x4b, + 0x16, 0x92, 0x99, 0x70, 0x98, 0xb3, 0x8a, 0x62, 0x35, 0x46, 0x8d, 0x8c, 0x46, 0x17, 0x5e, 0x77, + 0x7f, 0xd4, 0x01, 0x06, 0x76, 0xc2, 0xb1, 0x64, 0x29, 0xf6, 0xe0, 0x7a, 0x39, 0x6f, 0x34, 0x91, + 0xa8, 0x5d, 0xa7, 0xe5, 0xb4, 0x37, 0xc2, 0xcd, 0x02, 0x3b, 0x5a, 0x40, 0xe2, 0x10, 0x6e, 0x57, + 0x14, 0xa3, 0x99, 0xe4, 0x88, 0x23, 0x19, 0xc7, 0xa4, 0xb2, 0xcc, 0xbd, 0x62, 0xd9, 0xb7, 0x4a, + 0x76, 0xf9, 0xdb, 0x29, 0x3e, 0xc5, 0x3d, 0xd8, 0x2e, 0x75, 0x43, 0x99, 0xa9, 0x28, 0x27, 0x74, + 0xeb, 0x96, 0x7f, 0xa3, 0x80, 0xbb, 0x32, 0x53, 0xa7, 0x84, 0x02, 0x61, 0xf7, 0x57, 0x5e, 0x33, + 0x55, 0x44, 0x18, 0xa3, 0x4e, 0xdc, 0xb5, 0x96, 0xd3, 0xde, 0x7a, 0x7c, 0xe8, 0xff, 0xb5, 0xbc, + 0xdf, 0xa9, 0xe4, 0x83, 0xa5, 0x3a, 0xdc, 0x91, 0xab, 0xa0, 0xd8, 0x87, 0xed, 0x54, 0xb1, 0x5c, + 0xac, 0x36, 0x1a, 0x1b, 0x4a, 0x25, 0xbb, 0xeb, 0x36, 0xd2, 0x56, 0x05, 0xbf, 0xb0, 0xa8, 0x18, + 0xc1, 0xcd, 0x32, 0xfb, 0xd2, 0x26, 0x73, 0x1b, 0xad, 0x7a, 0x7b, 0xf3, 0xff, 0x02, 0x1d, 0x2f, + 0xd7, 0x1f, 0x36, 0x0b, 0xc3, 0xe5, 0x57, 0x26, 0x12, 0xd8, 0xcd, 0x09, 0x23, 0x52, 0x4c, 0xa8, + 0xa6, 0xf2, 0x63, 0x94, 0x2a, 0x9e, 0x98, 0xd8, 0xbd, 0x6a, 0x8b, 0x3f, 0xfb, 0x87, 0x39, 0xa7, + 0x61, 0x2f, 0xac, 0xd4, 0x6f, 0xac, 0x38, 0x14, 0x39, 0xe1, 0x6f, 0xd8, 0xc1, 0x03, 0xd8, 0xf9, + 0xc3, 0x8a, 0x04, 0x40, 0x63, 0x10, 0xf6, 0x5e, 0xf6, 0xfa, 0xcd, 0x9a, 0xd8, 0x80, 0xf5, 0xa3, + 0x57, 0x9d, 0x5e, 0xbf, 0xe9, 0x1c, 0xdc, 0x07, 0xb1, 0xea, 0x2b, 0xae, 0xc1, 0x5a, 0xb7, 0xf3, + 0xf6, 0xa4, 0xa0, 0xbe, 0x1b, 0xbc, 0x3e, 0xe9, 0x37, 0x9d, 0x6e, 0xff, 0xeb, 0xcc, 0x73, 0x2e, + 0x66, 0x9e, 0xf3, 0x7d, 0xe6, 0x39, 0x5f, 0xe6, 0x5e, 0xed, 0x62, 0xee, 0xd5, 0xbe, 0xcd, 0xbd, + 0xda, 0xfb, 0xa7, 0x09, 0xf2, 0x24, 0x1f, 0xfa, 0x23, 0x93, 0x06, 0x97, 0x7a, 0x04, 0x45, 0x8f, + 0xe0, 0x3c, 0xa8, 0x2e, 0x96, 0x3f, 0x9f, 0xa9, 0xcc, 0xde, 0xed, 0xb0, 0x61, 0x6f, 0xf4, 0xc9, + 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x2b, 0xa3, 0x65, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v091/schema_attribute.pb.go b/x/nftmngr/types/v091/schema_attribute.pb.go new file mode 100644 index 00000000..fb15cd97 --- /dev/null +++ b/x/nftmngr/types/v091/schema_attribute.pb.go @@ -0,0 +1,1266 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v091/schema_attribute.proto + +package v091 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type SchemaAttribute struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,5,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,6,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + HiddenOveride bool `protobuf:"varint,8,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,9,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } +func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } +func (*SchemaAttribute) ProtoMessage() {} +func (*SchemaAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_d58b6b03960fcf8e, []int{0} +} +func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttribute.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 *SchemaAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttribute.Merge(m, src) +} +func (m *SchemaAttribute) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttribute proto.InternalMessageInfo + +func (m *SchemaAttribute) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttribute) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttribute) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttribute) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *SchemaAttribute) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *SchemaAttribute) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *SchemaAttribute) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttribute) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *SchemaAttribute) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *SchemaAttribute) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeValue struct { + // Types that are valid to be assigned to Value: + // *SchemaAttributeValue_NumberAttributeValue + // *SchemaAttributeValue_StringAttributeValue + // *SchemaAttributeValue_BooleanAttributeValue + // *SchemaAttributeValue_FloatAttributeValue + Value isSchemaAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } +func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeValue) ProtoMessage() {} +func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d58b6b03960fcf8e, []int{1} +} +func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeValue.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 *SchemaAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeValue.Merge(m, src) +} +func (m *SchemaAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeValue proto.InternalMessageInfo + +type isSchemaAttributeValue_Value interface { + isSchemaAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type SchemaAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type SchemaAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type SchemaAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type SchemaAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*SchemaAttributeValue_NumberAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_StringAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_BooleanAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_FloatAttributeValue) isSchemaAttributeValue_Value() {} + +func (m *SchemaAttributeValue) GetValue() isSchemaAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SchemaAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SchemaAttributeValue_NumberAttributeValue)(nil), + (*SchemaAttributeValue_StringAttributeValue)(nil), + (*SchemaAttributeValue_BooleanAttributeValue)(nil), + (*SchemaAttributeValue_FloatAttributeValue)(nil), + } +} + +func init() { + proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.v091.SchemaAttribute") + proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v091.SchemaAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v091/schema_attribute.proto", fileDescriptor_d58b6b03960fcf8e) +} + +var fileDescriptor_d58b6b03960fcf8e = []byte{ + // 543 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x9b, 0xb6, 0x49, 0xb6, 0xa4, 0x88, 0x4d, 0x03, 0xab, 0x20, 0x59, 0x69, 0xf9, 0xca, + 0xc9, 0x2e, 0x01, 0xf1, 0x71, 0x24, 0xa0, 0x8a, 0x0b, 0xad, 0x14, 0x2a, 0x90, 0x10, 0x92, 0xb5, + 0x8e, 0xd7, 0xc9, 0xaa, 0xf6, 0xae, 0x59, 0xaf, 0x43, 0xf3, 0x2f, 0xf8, 0x59, 0x1c, 0x7b, 0xe4, + 0x58, 0x25, 0x7f, 0x04, 0x79, 0x9c, 0x10, 0x5c, 0x47, 0xaa, 0x6f, 0x9e, 0xf7, 0x66, 0xde, 0x9b, + 0x1d, 0xef, 0x0e, 0x7a, 0x24, 0x7c, 0x1d, 0x8a, 0xb1, 0xb2, 0xa7, 0xc7, 0x6f, 0x9f, 0xdb, 0xf1, + 0x68, 0xc2, 0x42, 0xea, 0x50, 0xad, 0x15, 0x77, 0x13, 0xcd, 0xac, 0x48, 0x49, 0x2d, 0xf1, 0xa1, + 0x9e, 0xb0, 0x98, 0x5f, 0x0a, 0xa6, 0x7f, 0x4a, 0x75, 0x61, 0xa5, 0x9f, 0xbe, 0xb6, 0x96, 0x95, + 0x56, 0x5a, 0xd9, 0x39, 0xcc, 0xe9, 0x78, 0x3c, 0x8e, 0x02, 0x3a, 0x73, 0x64, 0xa4, 0xb9, 0x14, + 0x99, 0x4a, 0xe7, 0x69, 0x2e, 0x45, 0xf8, 0x7a, 0xed, 0xe3, 0x4c, 0x69, 0x90, 0x2c, 0xdd, 0x3a, + 0xcf, 0x72, 0x79, 0xeb, 0x1c, 0x8f, 0xf9, 0x5c, 0xf0, 0xb5, 0xe0, 0xd1, 0x75, 0x15, 0xdd, 0xfd, + 0x0c, 0x1d, 0xbf, 0x5b, 0x25, 0xe1, 0xc7, 0xa8, 0x29, 0x7c, 0x9d, 0xa1, 0xef, 0xa5, 0xc7, 0x88, + 0xd1, 0x35, 0x7a, 0x8d, 0x61, 0x1e, 0xc4, 0x18, 0x6d, 0x0b, 0x1a, 0x32, 0xb2, 0x05, 0x24, 0x7c, + 0xe3, 0x87, 0xa8, 0xe1, 0x51, 0x4d, 0x1d, 0x3d, 0x8b, 0x18, 0xa9, 0x02, 0x51, 0x4f, 0x81, 0xf3, + 0x59, 0xc4, 0x70, 0x07, 0xd5, 0x15, 0xfb, 0x91, 0x70, 0xc5, 0x3c, 0xb2, 0xdd, 0x35, 0x7a, 0xf5, + 0xe1, 0xbf, 0x18, 0x5b, 0xa8, 0xb5, 0x3a, 0x2f, 0x1c, 0xc3, 0xf1, 0x39, 0x0b, 0x3c, 0xb2, 0x03, + 0x12, 0xf7, 0x96, 0xd4, 0x97, 0x94, 0x39, 0x49, 0x09, 0xfc, 0x15, 0xed, 0xe7, 0xe7, 0x43, 0x76, + 0xbb, 0x46, 0x6f, 0xaf, 0x7f, 0x6c, 0xdd, 0x3a, 0x66, 0xeb, 0x43, 0x56, 0x78, 0x06, 0x75, 0xc3, + 0xa6, 0xf7, 0x7f, 0x88, 0xbf, 0xa3, 0xe6, 0x28, 0x51, 0x8a, 0x09, 0x9d, 0x35, 0x42, 0x6a, 0xa0, + 0xfb, 0xba, 0x84, 0xee, 0x8d, 0x31, 0x42, 0xb7, 0xc3, 0x3b, 0x4b, 0x35, 0x88, 0xf0, 0x13, 0xb4, + 0x3f, 0xe1, 0x9e, 0xc7, 0x84, 0x23, 0xa7, 0x4c, 0x71, 0x8f, 0x91, 0x3a, 0x0c, 0xa2, 0x99, 0xa1, + 0x67, 0x19, 0x88, 0xfb, 0xa8, 0xbd, 0x4c, 0xd3, 0xd2, 0x09, 0xa9, 0xba, 0x60, 0x3a, 0x0a, 0xe8, + 0x88, 0x91, 0x06, 0x64, 0xb7, 0x32, 0xf2, 0x5c, 0x7e, 0x5a, 0x53, 0x98, 0xa0, 0xda, 0x48, 0x31, + 0xaa, 0xa5, 0x22, 0x08, 0xa6, 0xb6, 0x0a, 0x8f, 0x16, 0x55, 0x74, 0xb0, 0xa9, 0x37, 0x2c, 0xd1, + 0x7d, 0x91, 0x84, 0x2e, 0x53, 0x37, 0x2f, 0x11, 0xfc, 0xf0, 0x72, 0x87, 0x3e, 0x05, 0x81, 0xbc, + 0xf0, 0xc7, 0xca, 0xf0, 0x40, 0x6c, 0xc0, 0x53, 0xc3, 0x58, 0x2b, 0x2e, 0xc6, 0x05, 0xc3, 0xad, + 0xf2, 0x53, 0x06, 0x81, 0xa2, 0x61, 0xbc, 0x01, 0xc7, 0x0a, 0x3d, 0x70, 0xa5, 0x0c, 0x18, 0x15, + 0x05, 0xc7, 0x2a, 0x38, 0xbe, 0x29, 0xe1, 0x38, 0xc8, 0x14, 0x0a, 0x96, 0x6d, 0x77, 0x13, 0x81, + 0x03, 0xd4, 0xf6, 0x03, 0x49, 0x0b, 0x2f, 0x13, 0xee, 0xfc, 0x5e, 0xff, 0x55, 0x09, 0xc7, 0x93, + 0xb4, 0xbe, 0xe0, 0xd7, 0xf2, 0x8b, 0xf0, 0xa0, 0x86, 0x76, 0x40, 0x7d, 0x70, 0xfa, 0x7b, 0x6e, + 0x1a, 0x57, 0x73, 0xd3, 0xb8, 0x9e, 0x9b, 0xc6, 0xaf, 0x85, 0x59, 0xb9, 0x5a, 0x98, 0x95, 0x3f, + 0x0b, 0xb3, 0xf2, 0xed, 0xe5, 0x98, 0xeb, 0x49, 0xe2, 0x5a, 0x23, 0x19, 0xda, 0x39, 0x6f, 0x3b, + 0xf3, 0xb6, 0x2f, 0xed, 0xd5, 0xb6, 0x48, 0xdf, 0x6d, 0x0c, 0x3b, 0xc3, 0xdd, 0x85, 0xfd, 0xf0, + 0xe2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x77, 0x24, 0x7d, 0xdd, 0x04, 0x00, 0x00, +} + +func (m *SchemaAttribute) 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 *SchemaAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x52 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue) 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 *SchemaAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func encodeVarintSchemaAttribute(dAtA []byte, offset int, v uint64) int { + offset -= sovSchemaAttribute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SchemaAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *SchemaAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func sovSchemaAttribute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSchemaAttribute(x uint64) (n int) { + return sovSchemaAttribute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SchemaAttribute) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeValue) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSchemaAttribute(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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrInvalidLengthSchemaAttribute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchemaAttribute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchemaAttribute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSchemaAttribute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchemaAttribute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchemaAttribute = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/action.pb.go b/x/nftmngr/types/v092/action.pb.go new file mode 100644 index 00000000..017bc550 --- /dev/null +++ b/x/nftmngr/types/v092/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/action.proto + +package v092 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3def40d856f8ce60, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_3def40d856f8ce60, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v092.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_3def40d856f8ce60, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v092.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v092.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v092.Action") +} + +func init() { proto.RegisterFile("nftmngr/v092/action.proto", fileDescriptor_3def40d856f8ce60) } + +var fileDescriptor_3def40d856f8ce60 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x26, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x57, 0x86, 0x0b, 0x47, 0x17, 0x7c, 0x40, 0x32, 0x8e, 0xe4, 0x04, 0x50, 0xb9, 0x58, + 0x1b, 0x7b, 0xe3, 0x58, 0xd8, 0x5e, 0x63, 0xaf, 0x9b, 0xf6, 0x2d, 0xb8, 0xf0, 0x0c, 0xbc, 0x4a, + 0x8f, 0x3d, 0x72, 0x42, 0x28, 0x79, 0x11, 0xb4, 0xbb, 0x2e, 0x52, 0xe8, 0xa1, 0xbd, 0xfd, 0xfb, + 0xcd, 0x3f, 0xe3, 0x99, 0xf1, 0xc0, 0xc7, 0xc5, 0x92, 0xe7, 0x45, 0x52, 0x59, 0xe7, 0x27, 0x6f, + 0x6c, 0x8b, 0x44, 0x3c, 0x65, 0x85, 0x59, 0x56, 0x8c, 0x33, 0xf4, 0x9c, 0xaf, 0x68, 0x9d, 0x5e, + 0x14, 0x94, 0xaf, 0x59, 0xf5, 0xd5, 0x14, 0x72, 0xc9, 0xcd, 0xd6, 0x6f, 0x0a, 0xff, 0xe4, 0x28, + 0x61, 0x09, 0x93, 0x6e, 0x4b, 0x28, 0x95, 0x78, 0xfc, 0x03, 0xc0, 0x03, 0x55, 0x29, 0x2c, 0x49, + 0x45, 0xf2, 0x1a, 0x21, 0xd8, 0x2f, 0x48, 0x4e, 0x31, 0xd0, 0x81, 0x31, 0x0a, 0xa4, 0x16, 0x2c, + 0xa6, 0x75, 0x84, 0xbb, 0x8a, 0x09, 0x8d, 0x9e, 0xc0, 0x51, 0x4c, 0x38, 0x09, 0xf9, 0x65, 0x49, + 0x71, 0x4f, 0x06, 0x86, 0x02, 0xcc, 0x2f, 0x4b, 0x8a, 0x26, 0x70, 0x58, 0xd1, 0x6f, 0x4d, 0x5a, + 0xd1, 0x18, 0xf7, 0x75, 0x60, 0x0c, 0x83, 0x7f, 0x6f, 0xf4, 0x02, 0x1e, 0xc4, 0x74, 0x49, 0x9a, + 0x8c, 0x87, 0xe7, 0x24, 0x6b, 0x28, 0xde, 0x93, 0xc9, 0x0f, 0x5b, 0xf8, 0x49, 0xb0, 0xe3, 0x9f, + 0x5d, 0x38, 0x70, 0x64, 0x5f, 0xf7, 0x6e, 0x08, 0xc3, 0xfd, 0x38, 0xad, 0xc9, 0x22, 0x53, 0xed, + 0x0c, 0x83, 0x9b, 0xa7, 0x70, 0xaf, 0x57, 0xb4, 0x90, 0x9d, 0x8c, 0x02, 0xa9, 0x05, 0xe3, 0x82, + 0xed, 0xe9, 0x3d, 0xc1, 0x84, 0x46, 0x11, 0x1c, 0x93, 0x2c, 0x63, 0x6b, 0x1a, 0x87, 0x6a, 0x27, + 0xb4, 0xc2, 0x03, 0x1d, 0x18, 0x8f, 0x6c, 0xdb, 0xbc, 0x73, 0xc1, 0xa6, 0xa3, 0x52, 0x9d, 0x36, + 0xf3, 0xb4, 0x7f, 0xf5, 0xfb, 0x19, 0x08, 0x0e, 0xc9, 0x2e, 0x46, 0x3e, 0x1c, 0xa8, 0x4d, 0xe3, + 0x7d, 0xbd, 0x67, 0x3c, 0xb0, 0x4f, 0xee, 0x51, 0x7a, 0xe7, 0x0f, 0xb5, 0x85, 0xdb, 0x2a, 0x2f, + 0x73, 0x78, 0xf8, 0xdf, 0x97, 0x11, 0x86, 0x47, 0x8e, 0xe7, 0x4d, 0x3f, 0xbb, 0xef, 0x42, 0xe7, + 0xed, 0xfc, 0xfd, 0xd4, 0x77, 0x83, 0xd0, 0xf1, 0xbc, 0x71, 0x07, 0xe9, 0xf0, 0xe9, 0xad, 0xc8, + 0xec, 0x6c, 0x36, 0x77, 0x3f, 0x84, 0x53, 0xdf, 0x3b, 0x1b, 0x03, 0xa4, 0xc1, 0xc9, 0x2d, 0xc7, + 0xc7, 0x99, 0x1b, 0xa8, 0x78, 0xf7, 0xd4, 0xbf, 0xda, 0x68, 0xe0, 0x7a, 0xa3, 0x81, 0x3f, 0x1b, + 0x0d, 0x7c, 0xdf, 0x6a, 0x9d, 0xeb, 0xad, 0xd6, 0xf9, 0xb5, 0xd5, 0x3a, 0x5f, 0x5e, 0x27, 0x29, + 0x5f, 0x35, 0x0b, 0x33, 0x62, 0xb9, 0xb5, 0x33, 0x92, 0xa5, 0x46, 0xb2, 0x2e, 0xac, 0x9b, 0x03, + 0x16, 0x37, 0x53, 0xcb, 0x33, 0x5e, 0x0c, 0xe4, 0x1d, 0xbe, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0xe0, 0x2d, 0x75, 0xf8, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/action_by_ref_id.pb.go b/x/nftmngr/types/v092/action_by_ref_id.pb.go new file mode 100644 index 00000000..79a1a706 --- /dev/null +++ b/x/nftmngr/types/v092/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/action_by_ref_id.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_9a63656d95a60b49, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v092.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v092/action_by_ref_id.proto", fileDescriptor_9a63656d95a60b49) +} + +var fileDescriptor_9a63656d95a60b49 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x42, 0x31, 0xfd, 0xc1, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/action_executor.pb.go b/x/nftmngr/types/v092/action_executor.pb.go new file mode 100644 index 00000000..aa84aaaa --- /dev/null +++ b/x/nftmngr/types/v092/action_executor.pb.go @@ -0,0 +1,648 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/action_executor.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionExecutor struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress string `protobuf:"bytes,2,opt,name=executorAddress,proto3" json:"executorAddress,omitempty"` + Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *ActionExecutor) Reset() { *m = ActionExecutor{} } +func (m *ActionExecutor) String() string { return proto.CompactTextString(m) } +func (*ActionExecutor) ProtoMessage() {} +func (*ActionExecutor) Descriptor() ([]byte, []int) { + return fileDescriptor_6c96deb21f8aeb24, []int{0} +} +func (m *ActionExecutor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutor.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 *ActionExecutor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutor.Merge(m, src) +} +func (m *ActionExecutor) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutor) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutor.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutor proto.InternalMessageInfo + +func (m *ActionExecutor) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutor) GetExecutorAddress() string { + if m != nil { + return m.ExecutorAddress + } + return "" +} + +func (m *ActionExecutor) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type ActionExecutorBySchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ActionExecutorBySchema) Reset() { *m = ActionExecutorBySchema{} } +func (m *ActionExecutorBySchema) String() string { return proto.CompactTextString(m) } +func (*ActionExecutorBySchema) ProtoMessage() {} +func (*ActionExecutorBySchema) Descriptor() ([]byte, []int) { + return fileDescriptor_6c96deb21f8aeb24, []int{1} +} +func (m *ActionExecutorBySchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutorBySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutorBySchema.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 *ActionExecutorBySchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutorBySchema.Merge(m, src) +} +func (m *ActionExecutorBySchema) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutorBySchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutorBySchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutorBySchema proto.InternalMessageInfo + +func (m *ActionExecutorBySchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutorBySchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ActionExecutor)(nil), "thesixnetwork.sixnft.nftmngr.v092.ActionExecutor") + proto.RegisterType((*ActionExecutorBySchema)(nil), "thesixnetwork.sixnft.nftmngr.v092.ActionExecutorBySchema") +} + +func init() { + proto.RegisterFile("nftmngr/v092/action_executor.proto", fileDescriptor_6c96deb21f8aeb24) +} + +var fileDescriptor_6c96deb21f8aeb24 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0x7a, 0x5d, + 0xa1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, + 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, + 0x61, 0x96, 0x39, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, + 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, + 0x4a, 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, + 0xe0, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, + 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xa1, 0xa5, 0x0f, 0x09, 0x2d, 0xfd, + 0x0a, 0x7d, 0x58, 0x40, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x83, 0x3b, 0x89, 0x0d, 0x1c, 0xbe, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x21, 0xf8, 0x41, 0xf6, 0x85, 0x01, 0x00, 0x00, +} + +func (m *ActionExecutor) 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 *ActionExecutor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x1a + } + if len(m.ExecutorAddress) > 0 { + i -= len(m.ExecutorAddress) + copy(dAtA[i:], m.ExecutorAddress) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ActionExecutorBySchema) 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 *ActionExecutorBySchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutorBySchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionExecutor(dAtA []byte, offset int, v uint64) int { + offset -= sovActionExecutor(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionExecutor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.ExecutorAddress) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + return n +} + +func (m *ActionExecutorBySchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovActionExecutor(uint64(l)) + } + } + return n +} + +func sovActionExecutor(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionExecutor(x uint64) (n int) { + return sovActionExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionExecutor) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActionExecutorBySchema) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutorBySchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutorBySchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionExecutor(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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrInvalidLengthActionExecutor + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionExecutor + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionExecutor + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionExecutor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionExecutor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionExecutor = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/action_of_schema.pb.go b/x/nftmngr/types/v092/action_of_schema.pb.go new file mode 100644 index 00000000..e4ff7d3f --- /dev/null +++ b/x/nftmngr/types/v092/action_of_schema.pb.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/action_of_schema.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *ActionOfSchema) Reset() { *m = ActionOfSchema{} } +func (m *ActionOfSchema) String() string { return proto.CompactTextString(m) } +func (*ActionOfSchema) ProtoMessage() {} +func (*ActionOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_95a6c4c8630ed7e5, []int{0} +} +func (m *ActionOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionOfSchema.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 *ActionOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionOfSchema.Merge(m, src) +} +func (m *ActionOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ActionOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionOfSchema proto.InternalMessageInfo + +func (m *ActionOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionOfSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionOfSchema) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*ActionOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v092.ActionOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v092/action_of_schema.proto", fileDescriptor_95a6c4c8630ed7e5) +} + +var fileDescriptor_95a6c4c8630ed7e5 = []byte{ + // 216 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0x9a, + 0xfd, 0xd3, 0x82, 0xc1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, + 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, + 0xc4, 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, + 0x5a, 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0x04, 0xe1, 0x38, 0xf9, 0x9d, 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, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, + 0x7e, 0xae, 0x3e, 0x8a, 0x4b, 0xf5, 0x21, 0x2e, 0xd5, 0xaf, 0xd0, 0x87, 0xf9, 0xb2, 0xa4, 0xb2, + 0x20, 0xb5, 0x18, 0xec, 0xd7, 0x24, 0x36, 0xb0, 0xdf, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xe3, 0x16, 0x47, 0x64, 0x02, 0x01, 0x00, 0x00, +} + +func (m *ActionOfSchema) 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 *ActionOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintActionOfSchema(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovActionOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovActionOfSchema(uint64(m.Index)) + } + return n +} + +func sovActionOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionOfSchema(x uint64) (n int) { + return sovActionOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionOfSchema) 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 ErrIntOverflowActionOfSchema + } + 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: ActionOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipActionOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionOfSchema(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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrInvalidLengthActionOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/attribute_definition.pb.go b/x/nftmngr/types/v092/attribute_definition.pb.go new file mode 100644 index 00000000..79c51af8 --- /dev/null +++ b/x/nftmngr/types/v092/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/attribute_definition.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_0c7d61b2f2214b46, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_0c7d61b2f2214b46, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v092.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v092/attribute_definition.proto", fileDescriptor_0c7d61b2f2214b46) +} + +var fileDescriptor_0c7d61b2f2214b46 = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x68, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x4c, 0x1d, 0xe2, 0xc7, 0x91, 0xaa, 0x9a, 0xb8, 0x6c, 0x93, 0xc2, 0x04, 0x12, 0x97, 0xc8, + 0x99, 0x9d, 0xd6, 0x5a, 0x62, 0x07, 0xf7, 0xa5, 0xb4, 0xff, 0x05, 0xff, 0x11, 0x57, 0x8e, 0x3b, + 0x72, 0x03, 0xb5, 0xff, 0x08, 0x8a, 0xdd, 0x1f, 0xb4, 0xa9, 0xb4, 0xde, 0xec, 0xf7, 0xbd, 0xef, + 0xfb, 0xec, 0xe7, 0xf7, 0x8c, 0x5e, 0x89, 0x08, 0x12, 0xd1, 0x53, 0xde, 0xf0, 0xec, 0x7d, 0xdb, + 0x23, 0x00, 0x8a, 0x87, 0x19, 0xb0, 0x80, 0xb2, 0x88, 0x0b, 0x0e, 0x5c, 0x0a, 0x37, 0x55, 0x12, + 0x24, 0x3e, 0x86, 0x3e, 0x1b, 0xf0, 0x91, 0x60, 0xf0, 0x5d, 0xaa, 0x3b, 0x37, 0x5f, 0x46, 0xe0, + 0xce, 0xd8, 0x6e, 0xce, 0x6e, 0x1d, 0xaf, 0x68, 0x51, 0x3e, 0x48, 0x63, 0x32, 0x0e, 0x64, 0xba, + 0x54, 0x69, 0xbd, 0x5c, 0x49, 0x11, 0x11, 0x04, 0x4b, 0xcb, 0x21, 0x89, 0x33, 0x66, 0xf2, 0x4e, + 0xfe, 0x94, 0xd1, 0x41, 0x97, 0x45, 0x24, 0x8b, 0xe1, 0x92, 0x0b, 0xf8, 0x9c, 0x43, 0x58, 0xa2, + 0xa7, 0x22, 0x4b, 0x42, 0xa6, 0xd6, 0x49, 0xb6, 0x75, 0x64, 0x9d, 0x3e, 0x6e, 0xbf, 0x75, 0x1f, + 0x3c, 0xa3, 0x7b, 0xa5, 0x05, 0x3e, 0xcc, 0xf9, 0x5a, 0xf8, 0x63, 0xc9, 0x3f, 0x14, 0x1b, 0xe2, + 0xb9, 0xe1, 0x00, 0x14, 0x17, 0xbd, 0x82, 0xe1, 0xa3, 0xad, 0x0d, 0x3f, 0x69, 0x81, 0xa2, 0xe1, + 0x60, 0x43, 0x1c, 0x2b, 0xf4, 0x2c, 0x94, 0x32, 0x66, 0x44, 0x14, 0x1c, 0xcb, 0xda, 0xf1, 0xdd, + 0x16, 0x8e, 0x1d, 0xa3, 0x50, 0xb0, 0x6c, 0x86, 0x9b, 0x00, 0x1c, 0xa3, 0x66, 0x14, 0x4b, 0x52, + 0x78, 0x09, 0xbb, 0xa2, 0x1d, 0xdf, 0x6c, 0xe1, 0x78, 0x91, 0xf3, 0x0b, 0x7e, 0x8d, 0xa8, 0x18, + 0xee, 0xec, 0xa2, 0xaa, 0x56, 0x3f, 0xf9, 0x59, 0x46, 0x8d, 0x05, 0xd6, 0x5d, 0x74, 0x1b, 0xc6, + 0xa8, 0x22, 0x48, 0x62, 0x9e, 0xb4, 0xee, 0xeb, 0x35, 0x7e, 0x8e, 0xea, 0x94, 0x00, 0x09, 0x60, + 0x9c, 0x9a, 0xd2, 0xd7, 0xfd, 0x5a, 0x1e, 0xb8, 0x19, 0xa7, 0x0c, 0xb7, 0x50, 0x4d, 0xb1, 0x6f, + 0x19, 0x57, 0x8c, 0xea, 0x22, 0xd5, 0xfc, 0xc5, 0x1e, 0xbb, 0xa8, 0x31, 0x6f, 0x43, 0xed, 0x1a, + 0x44, 0x9c, 0xc5, 0x54, 0xdf, 0xac, 0xee, 0x3f, 0x99, 0x41, 0xfa, 0x60, 0x17, 0x39, 0x80, 0xbf, + 0xa0, 0xfd, 0xd5, 0xb6, 0xb5, 0xab, 0xba, 0x08, 0x67, 0x5b, 0x14, 0xa1, 0x6b, 0x88, 0xd7, 0x9a, + 0xe7, 0xef, 0xd1, 0xff, 0xb7, 0x98, 0x20, 0x4c, 0x4d, 0x3b, 0x07, 0x09, 0x17, 0x30, 0xab, 0xf0, + 0x8e, 0x16, 0x3f, 0xdf, 0x46, 0x7c, 0x6d, 0x16, 0xfc, 0x03, 0xba, 0x3e, 0x1d, 0x2f, 0xd0, 0x7e, + 0x9f, 0x53, 0xca, 0x44, 0x20, 0x87, 0x4c, 0x71, 0xca, 0xec, 0x5d, 0x5d, 0x8d, 0x3d, 0x13, 0xbd, + 0x36, 0x41, 0xdc, 0x46, 0xcd, 0x59, 0x1a, 0xc8, 0x20, 0x21, 0xea, 0x8e, 0x41, 0x1a, 0x93, 0x5b, + 0x66, 0xd7, 0x74, 0x76, 0xc3, 0x80, 0x37, 0xf2, 0x72, 0x09, 0xe1, 0x43, 0x54, 0xe5, 0x82, 0xb2, + 0x91, 0x5d, 0x3f, 0xb2, 0x4e, 0x2b, 0xbe, 0xd9, 0x74, 0xae, 0x7e, 0x4d, 0x1c, 0xeb, 0x7e, 0xe2, + 0x58, 0x7f, 0x27, 0x8e, 0xf5, 0x63, 0xea, 0x94, 0xee, 0xa7, 0x4e, 0xe9, 0xf7, 0xd4, 0x29, 0x7d, + 0x7d, 0xdd, 0xe3, 0xd0, 0xcf, 0x42, 0xf7, 0x56, 0x26, 0xde, 0xca, 0xdd, 0x3c, 0x73, 0x37, 0x6f, + 0xe4, 0xcd, 0xff, 0x81, 0xfc, 0x49, 0x07, 0xfa, 0x37, 0x08, 0x77, 0xf4, 0xe8, 0x9f, 0xff, 0x0b, + 0x00, 0x00, 0xff, 0xff, 0x80, 0x98, 0x51, 0x18, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/attribute_of_schema.pb.go b/x/nftmngr/types/v092/attribute_of_schema.pb.go new file mode 100644 index 00000000..e5ac1ed5 --- /dev/null +++ b/x/nftmngr/types/v092/attribute_of_schema.pb.go @@ -0,0 +1,383 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/attribute_of_schema.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + SchemaAttributes []*SchemaAttribute `protobuf:"bytes,2,rep,name=schemaAttributes,proto3" json:"schemaAttributes,omitempty"` +} + +func (m *AttributeOfSchema) Reset() { *m = AttributeOfSchema{} } +func (m *AttributeOfSchema) String() string { return proto.CompactTextString(m) } +func (*AttributeOfSchema) ProtoMessage() {} +func (*AttributeOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_212011ff84e5d1d9, []int{0} +} +func (m *AttributeOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeOfSchema.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 *AttributeOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeOfSchema.Merge(m, src) +} +func (m *AttributeOfSchema) XXX_Size() int { + return m.Size() +} +func (m *AttributeOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeOfSchema proto.InternalMessageInfo + +func (m *AttributeOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *AttributeOfSchema) GetSchemaAttributes() []*SchemaAttribute { + if m != nil { + return m.SchemaAttributes + } + return nil +} + +func init() { + proto.RegisterType((*AttributeOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v092.AttributeOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v092/attribute_of_schema.proto", fileDescriptor_212011ff84e5d1d9) +} + +var fileDescriptor_212011ff84e5d1d9 = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0x2c, 0x29, 0x29, 0xca, 0x4c, 0x2a, + 0x2d, 0x49, 0x8d, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, + 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x9a, 0xf5, 0x40, 0x9a, 0xa5, 0x94, 0x51, 0x8c, + 0x82, 0xe8, 0x8e, 0x87, 0x9b, 0x08, 0x31, 0x47, 0x69, 0x26, 0x23, 0x97, 0xa0, 0x23, 0x4c, 0xcc, + 0x3f, 0x2d, 0x18, 0xac, 0x4a, 0x48, 0x85, 0x8b, 0x37, 0x2f, 0xad, 0x04, 0xc2, 0x71, 0xce, 0x4f, + 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x15, 0x14, 0x8a, 0xe3, 0x12, 0x80, 0x98, + 0x0a, 0x37, 0xa0, 0x58, 0x82, 0x49, 0x81, 0x59, 0x83, 0xdb, 0xc8, 0x48, 0x8f, 0xa0, 0xf3, 0xf4, + 0x82, 0x51, 0xb5, 0x06, 0x61, 0x98, 0xe5, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, + 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, + 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, + 0x36, 0xe9, 0x43, 0x6c, 0xd2, 0xaf, 0xd0, 0x87, 0x79, 0xbe, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, + 0x04, 0x49, 0x6c, 0x60, 0x2f, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x4a, 0x89, 0xdc, + 0x64, 0x01, 0x00, 0x00, +} + +func (m *AttributeOfSchema) 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 *AttributeOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaAttributes) > 0 { + for iNdEx := len(m.SchemaAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SchemaAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeOfSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintAttributeOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AttributeOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovAttributeOfSchema(uint64(l)) + } + if len(m.SchemaAttributes) > 0 { + for _, e := range m.SchemaAttributes { + l = e.Size() + n += 1 + l + sovAttributeOfSchema(uint64(l)) + } + } + return n +} + +func sovAttributeOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeOfSchema(x uint64) (n int) { + return sovAttributeOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AttributeOfSchema) 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 ErrIntOverflowAttributeOfSchema + } + 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: AttributeOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeOfSchema + } + 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 ErrInvalidLengthAttributeOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeOfSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaAttributes = append(m.SchemaAttributes, &SchemaAttribute{}) + if err := m.SchemaAttributes[len(m.SchemaAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeOfSchema(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, ErrIntOverflowAttributeOfSchema + } + 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, ErrIntOverflowAttributeOfSchema + } + 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, ErrIntOverflowAttributeOfSchema + } + 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, ErrInvalidLengthAttributeOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/display_option.pb.go b/x/nftmngr/types/v092/display_option.pb.go new file mode 100644 index 00000000..9abd3188 --- /dev/null +++ b/x/nftmngr/types/v092/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/display_option.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_7cabf9662dd5c6c6, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v092.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v092/display_option.proto", fileDescriptor_7cabf9662dd5c6c6) } + +var fileDescriptor_7cabf9662dd5c6c6 = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x60, 0x44, 0x83, 0xf3, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/executor_of_schema.pb.go b/x/nftmngr/types/v092/executor_of_schema.pb.go new file mode 100644 index 00000000..bfefa042 --- /dev/null +++ b/x/nftmngr/types/v092/executor_of_schema.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/executor_of_schema.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ExecutorOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ExecutorOfSchema) Reset() { *m = ExecutorOfSchema{} } +func (m *ExecutorOfSchema) String() string { return proto.CompactTextString(m) } +func (*ExecutorOfSchema) ProtoMessage() {} +func (*ExecutorOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_77914da1f92d701b, []int{0} +} +func (m *ExecutorOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutorOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecutorOfSchema.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 *ExecutorOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutorOfSchema.Merge(m, src) +} +func (m *ExecutorOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ExecutorOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutorOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutorOfSchema proto.InternalMessageInfo + +func (m *ExecutorOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ExecutorOfSchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ExecutorOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v092.ExecutorOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v092/executor_of_schema.proto", fileDescriptor_77914da1f92d701b) +} + +var fileDescriptor_77914da1f92d701b = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, + 0x2f, 0x8a, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0xf5, 0x40, 0x7a, 0x95, 0x92, 0xb8, 0x04, 0x5c, + 0xa1, 0xda, 0xfd, 0xd3, 0x82, 0xc1, 0x9a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, + 0xe7, 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x0d, 0x2e, + 0x7e, 0x98, 0xc5, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, + 0x41, 0xe8, 0xc2, 0x4e, 0x7e, 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, 0x65, + 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x56, 0x7d, 0x88, + 0x5b, 0xf5, 0x2b, 0xf4, 0x61, 0x3e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x06, 0xfb, 0x37, 0x89, 0x0d, + 0xec, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xad, 0x38, 0x67, 0xe3, 0x06, 0x01, 0x00, + 0x00, +} + +func (m *ExecutorOfSchema) 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 *ExecutorOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintExecutorOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovExecutorOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ExecutorOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + } + return n +} + +func sovExecutorOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozExecutorOfSchema(x uint64) (n int) { + return sovExecutorOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ExecutorOfSchema) 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 ErrIntOverflowExecutorOfSchema + } + 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: ExecutorOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecutorOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipExecutorOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipExecutorOfSchema(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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrInvalidLengthExecutorOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExecutorOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthExecutorOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthExecutorOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExecutorOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExecutorOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/metadata_creator.pb.go b/x/nftmngr/types/v092/metadata_creator.pb.go new file mode 100644 index 00000000..2887e15b --- /dev/null +++ b/x/nftmngr/types/v092/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/metadata_creator.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_3f9ed29c750b3ce1, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_3f9ed29c750b3ce1, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v092.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v092.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v092/metadata_creator.proto", fileDescriptor_3f9ed29c750b3ce1) +} + +var fileDescriptor_3f9ed29c750b3ce1 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0xa1, 0xcb, 0xe1, 0xbd, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_attribute_value.pb.go b/x/nftmngr/types/v092/nft_attribute_value.pb.go new file mode 100644 index 00000000..73a24436 --- /dev/null +++ b/x/nftmngr/types/v092/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_attribute_value.proto + +package v092 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf84576b7cbe17a, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf84576b7cbe17a, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf84576b7cbe17a, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf84576b7cbe17a, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_ecf84576b7cbe17a, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v092/nft_attribute_value.proto", fileDescriptor_ecf84576b7cbe17a) +} + +var fileDescriptor_ecf84576b7cbe17a = []byte{ + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6e, 0xda, 0x30, + 0x18, 0xc7, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0x3c, 0xb1, 0x69, 0x5b, 0x8f, 0xe5, 0x50, 0xf5, 0x52, 0x0e, 0x69, 0xd5, 0x43, 0x2f, 0x91, + 0x03, 0x4e, 0x88, 0x48, 0x6c, 0xe4, 0x38, 0x14, 0xde, 0xa2, 0x8f, 0xd1, 0x47, 0xe9, 0x91, 0x63, + 0x8f, 0x15, 0xbc, 0x48, 0x15, 0x87, 0x08, 0xa5, 0x89, 0x54, 0x6e, 0x96, 0xbf, 0xff, 0xff, 0xff, + 0xfb, 0xf2, 0x39, 0x1f, 0xfc, 0xc6, 0x7c, 0x19, 0xb3, 0x40, 0xe0, 0xe5, 0xaf, 0x93, 0x21, 0x66, + 0xbe, 0x74, 0x89, 0x94, 0x22, 0xf4, 0x52, 0x49, 0xdd, 0x25, 0x89, 0x52, 0x6a, 0x2f, 0x04, 0x97, + 0x1c, 0x7d, 0x95, 0x33, 0x9a, 0x84, 0x2b, 0x46, 0xe5, 0x2d, 0x17, 0x73, 0x3b, 0x3b, 0xfa, 0xd2, + 0xde, 0x9b, 0xed, 0xcc, 0xfc, 0xe5, 0x73, 0xc0, 0x79, 0x10, 0x51, 0xac, 0x0c, 0x5e, 0xea, 0x63, + 0xc2, 0xd6, 0xb9, 0xbb, 0x7f, 0xaf, 0xc3, 0x0f, 0x63, 0x5f, 0x9e, 0x16, 0xd1, 0xd7, 0x59, 0x32, + 0x42, 0x50, 0x67, 0x24, 0xa6, 0x26, 0xe8, 0x81, 0x41, 0xdb, 0x51, 0x67, 0xc4, 0xe1, 0x47, 0x96, + 0xc6, 0x1e, 0x15, 0x2f, 0xfb, 0x30, 0xdf, 0xf4, 0xc0, 0xe0, 0xfd, 0xf0, 0x9f, 0xfd, 0x6a, 0x23, + 0xf6, 0x58, 0x05, 0x94, 0x61, 0xe7, 0x9a, 0xd3, 0x65, 0x35, 0xf7, 0x19, 0x30, 0x91, 0x22, 0x64, + 0x41, 0x05, 0xf8, 0xf6, 0x68, 0xe0, 0xa5, 0x0a, 0xa8, 0x02, 0x93, 0x9a, 0x7b, 0x24, 0xe0, 0x27, + 0x8f, 0xf3, 0x88, 0x12, 0x56, 0x21, 0xea, 0x8a, 0xf8, 0xff, 0x08, 0xe2, 0x28, 0x4f, 0xa8, 0x20, + 0x0d, 0xaf, 0xae, 0x80, 0x22, 0x68, 0xf8, 0x11, 0x27, 0x95, 0xc7, 0x35, 0x1b, 0x8a, 0xf8, 0xf7, + 0x08, 0xe2, 0x59, 0xe6, 0xaf, 0xf0, 0x3a, 0x7e, 0xf5, 0x1a, 0x0d, 0xa1, 0x31, 0x0b, 0xa7, 0x53, + 0xca, 0x5c, 0xc9, 0xdd, 0x98, 0x88, 0x39, 0x95, 0x8b, 0x88, 0x4c, 0xa8, 0xd9, 0xec, 0x81, 0x41, + 0xcb, 0xe9, 0xe4, 0xc5, 0x2b, 0x7e, 0x71, 0x28, 0x8d, 0xde, 0xc1, 0x86, 0xea, 0xa8, 0xff, 0x03, + 0x76, 0xeb, 0xde, 0x0f, 0x75, 0xf7, 0x02, 0xf5, 0xb7, 0xe8, 0xce, 0x41, 0x5d, 0x37, 0xfc, 0xb2, + 0xba, 0x5d, 0xa8, 0x7f, 0x42, 0xa3, 0x76, 0x70, 0x65, 0x79, 0xab, 0x90, 0x7f, 0x87, 0x9d, 0x9a, + 0xaf, 0x2e, 0x8b, 0xc1, 0x5e, 0x3c, 0x1a, 0x3f, 0x6c, 0x2d, 0xb0, 0xd9, 0x5a, 0xe0, 0x69, 0x6b, + 0x81, 0xbb, 0x9d, 0xa5, 0x6d, 0x76, 0x96, 0xf6, 0xb8, 0xb3, 0xb4, 0x9b, 0x3f, 0x41, 0x28, 0x67, + 0xa9, 0x67, 0x4f, 0x78, 0x8c, 0x4b, 0x73, 0xc6, 0xf9, 0x9c, 0xf1, 0x0a, 0x17, 0x4b, 0x28, 0xd7, + 0x0b, 0x9a, 0xa8, 0x55, 0xf4, 0x9a, 0x6a, 0x73, 0x7e, 0x3f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xa4, + 0x27, 0x2c, 0x94, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_collection.pb.go b/x/nftmngr/types/v092/nft_collection.pb.go new file mode 100644 index 00000000..f48626b4 --- /dev/null +++ b/x/nftmngr/types/v092/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_collection.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_e0b073897f971674, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v092.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v092/nft_collection.proto", fileDescriptor_e0b073897f971674) } + +var fileDescriptor_e0b073897f971674 = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x81, 0x40, 0xd3, 0x38, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_data.pb.go b/x/nftmngr/types/v092/nft_data.pb.go new file mode 100644 index 00000000..d7cb3fa8 --- /dev/null +++ b/x/nftmngr/types/v092/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_data.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_194d7f991209bf8d, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v092.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_194d7f991209bf8d, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v092.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v092.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v092/nft_data.proto", fileDescriptor_194d7f991209bf8d) } + +var fileDescriptor_194d7f991209bf8d = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0x6e, 0x17, 0x24, 0x2e, 0x85, 0x4e, 0x28, 0x12, 0xca, 0xa4, 0x74, 0x70, 0xe0, + 0x62, 0xb9, 0x89, 0x93, 0x58, 0x23, 0x76, 0xe5, 0x3c, 0xd9, 0xcb, 0xb7, 0xe0, 0x63, 0x71, 0xdc, + 0x91, 0x23, 0x6a, 0x3f, 0x07, 0x12, 0x8a, 0x9d, 0x06, 0x28, 0x07, 0x90, 0x76, 0x4b, 0x7e, 0xcf, + 0xff, 0xff, 0xbc, 0xf9, 0x41, 0x07, 0x22, 0x85, 0x42, 0x64, 0xca, 0xbf, 0x7c, 0xf9, 0x6a, 0xec, + 0x8b, 0x14, 0x48, 0x42, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x43, 0xc8, 0x59, 0xc9, 0xaf, 0x05, + 0x83, 0x2b, 0xa9, 0x2e, 0xbc, 0xfa, 0x33, 0x05, 0xaf, 0x71, 0x78, 0xb5, 0xe3, 0xc9, 0xd1, 0x5f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x02, 0x46, 0x2e, 0xe9, 0xe7, 0x8a, 0x99, 0x54, 0xcf, 0x7e, 0x74, + 0x51, 0x2f, 0x4c, 0x61, 0x4a, 0x81, 0xe2, 0x23, 0xf4, 0xb0, 0x16, 0x96, 0x71, 0xce, 0x0a, 0x4a, + 0x62, 0x99, 0x30, 0xc7, 0x1a, 0x5a, 0xa3, 0x7e, 0xb4, 0x2b, 0x52, 0x98, 0x69, 0xfa, 0x56, 0x26, + 0x0c, 0x3f, 0x46, 0xdb, 0x20, 0x2f, 0x98, 0x20, 0x3c, 0x71, 0xee, 0x69, 0x41, 0x4f, 0xff, 0x07, + 0x09, 0x7e, 0x8a, 0x06, 0x26, 0x24, 0xaf, 0x04, 0x53, 0x4e, 0x57, 0x47, 0x91, 0x46, 0x67, 0x35, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x49, 0x14, 0x2b, 0x4b, 0x02, 0x37, 0x0b, 0xe6, 0xdc, 0x1f, + 0x5a, 0xa3, 0xbd, 0xf1, 0xb1, 0xf7, 0xcf, 0xb9, 0x3c, 0x9d, 0x65, 0x62, 0xbc, 0xe7, 0x37, 0x0b, + 0x16, 0xd9, 0x72, 0x83, 0xe0, 0x43, 0xb4, 0x23, 0x15, 0xcf, 0xb8, 0x20, 0xbc, 0xa0, 0x19, 0x73, + 0x1e, 0xe8, 0x26, 0x06, 0x86, 0x05, 0x35, 0xc2, 0xcf, 0xd1, 0xae, 0x14, 0x71, 0x4e, 0x5b, 0xcd, + 0x96, 0xd6, 0xec, 0x34, 0xd0, 0x88, 0x0e, 0x50, 0xdf, 0xcc, 0x52, 0x29, 0xee, 0xf4, 0xb4, 0xc0, + 0xcc, 0xfd, 0x41, 0x71, 0x4c, 0xd1, 0x7e, 0x53, 0xa4, 0xdd, 0x6b, 0xe9, 0x6c, 0x0f, 0xbb, 0xa3, + 0xc1, 0xf8, 0xe4, 0x3f, 0xc6, 0x08, 0x53, 0x98, 0xac, 0x7d, 0x1f, 0xeb, 0xe7, 0x88, 0x6c, 0x93, + 0xae, 0xa5, 0x25, 0x8e, 0x11, 0x5e, 0x37, 0xf9, 0x5b, 0x8d, 0xfe, 0x1d, 0x6a, 0xec, 0x37, 0xf9, + 0x7e, 0x15, 0x79, 0xf1, 0x1a, 0xd9, 0x9b, 0x2b, 0xc5, 0x18, 0xed, 0x9d, 0x45, 0xc1, 0xbb, 0x20, + 0x24, 0x93, 0xe9, 0x34, 0x3a, 0x9d, 0xcd, 0xec, 0x0e, 0x7e, 0x84, 0xec, 0x20, 0x3c, 0x3f, 0x8d, + 0xc2, 0xc9, 0xfb, 0x96, 0x5a, 0x6f, 0xc2, 0xaf, 0x4b, 0xd7, 0xba, 0x5d, 0xba, 0xd6, 0xf7, 0xa5, + 0x6b, 0x7d, 0x59, 0xb9, 0x9d, 0xdb, 0x95, 0xdb, 0xf9, 0xb6, 0x72, 0x3b, 0x9f, 0x4e, 0x32, 0x0e, + 0x79, 0x35, 0xf7, 0x62, 0x59, 0xf8, 0x7f, 0xb4, 0xea, 0x9b, 0x56, 0xfd, 0x6b, 0x7f, 0x7d, 0xa1, + 0xf5, 0x05, 0x94, 0xfa, 0x4e, 0xe7, 0x5b, 0xfa, 0x28, 0x8f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x65, 0xd6, 0x7b, 0x1c, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_fee_balance.pb.go b/x/nftmngr/types/v092/nft_fee_balance.pb.go new file mode 100644 index 00000000..23094e27 --- /dev/null +++ b/x/nftmngr/types/v092/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_fee_balance.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_e566cec103691a15, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v092.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v092/nft_fee_balance.proto", fileDescriptor_e566cec103691a15) +} + +var fileDescriptor_e566cec103691a15 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x27, 0x4e, + 0xa2, 0x2d, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_fee_config.pb.go b/x/nftmngr/types/v092/nft_fee_config.pb.go new file mode 100644 index 00000000..465888cb --- /dev/null +++ b/x/nftmngr/types/v092/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_fee_config.proto + +package v092 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ac2853d979bbe8f8, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v092.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_ac2853d979bbe8f8, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ac2853d979bbe8f8, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ac2853d979bbe8f8, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v092.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v092.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v092.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v092.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v092/nft_fee_config.proto", fileDescriptor_ac2853d979bbe8f8) } + +var fileDescriptor_ac2853d979bbe8f8 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0xb7, 0xd4, 0x13, 0xd8, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_schema.pb.go b/x/nftmngr/types/v092/nft_schema.pb.go new file mode 100644 index 00000000..4c41d9f9 --- /dev/null +++ b/x/nftmngr/types/v092/nft_schema.pb.go @@ -0,0 +1,1286 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_schema.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_cbdeec4487545c37, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaINPUT struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + SystemActioners []string `protobuf:"bytes,5,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,6,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainDataInput `protobuf:"bytes,7,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,8,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,9,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } +func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaINPUT) ProtoMessage() {} +func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { + return fileDescriptor_cbdeec4487545c37, []int{1} +} +func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaINPUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaINPUT.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 *NFTSchemaINPUT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaINPUT.Merge(m, src) +} +func (m *NFTSchemaINPUT) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaINPUT) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaINPUT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaINPUT proto.InternalMessageInfo + +func (m *NFTSchemaINPUT) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaINPUT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaINPUT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaINPUT) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaINPUT) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaINPUT) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaINPUT) GetOnchainData() *OnChainDataInput { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaINPUT) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaINPUT) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v092.NFTSchema") + proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.v092.NFTSchemaINPUT") +} + +func init() { proto.RegisterFile("nftmngr/v092/nft_schema.proto", fileDescriptor_cbdeec4487545c37) } + +var fileDescriptor_cbdeec4487545c37 = []byte{ + // 425 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0xc7, 0x9b, 0x75, 0xed, 0x1a, 0x07, 0xf1, 0xc3, 0xe2, 0x60, 0x4d, 0xc2, 0x0a, 0x3b, 0x85, + 0xc3, 0x1c, 0xb4, 0x71, 0xe1, 0x38, 0x40, 0x48, 0xbb, 0x04, 0x08, 0x63, 0x07, 0x2e, 0x91, 0x97, + 0x38, 0x8d, 0x85, 0x62, 0x47, 0xb6, 0xcb, 0x5a, 0xfe, 0x0a, 0xc4, 0x5f, 0xc5, 0xb1, 0x47, 0x2e, + 0x48, 0xa8, 0xfd, 0x47, 0x50, 0x9c, 0xb6, 0x24, 0x95, 0x80, 0x22, 0xb4, 0xdb, 0xcb, 0xf7, 0xe5, + 0x7d, 0xfc, 0xde, 0xfb, 0xea, 0x81, 0x07, 0x22, 0x37, 0xa5, 0x18, 0xab, 0xf0, 0xe3, 0xe3, 0xa7, + 0x27, 0xa1, 0xc8, 0x4d, 0xa2, 0xd3, 0x82, 0x95, 0x94, 0x54, 0x4a, 0x1a, 0x09, 0x1f, 0x9a, 0x82, + 0x69, 0x3e, 0x15, 0xcc, 0x5c, 0x4b, 0xf5, 0x81, 0xd4, 0x61, 0x6e, 0xc8, 0xaa, 0x86, 0xd4, 0x35, + 0x87, 0x7e, 0x87, 0x20, 0x45, 0x92, 0x16, 0x94, 0x8b, 0x24, 0xa3, 0x66, 0x05, 0x39, 0xc4, 0xdd, + 0x3f, 0x14, 0x1f, 0x77, 0xf2, 0x47, 0xdf, 0xf7, 0x80, 0x1b, 0xbd, 0xbc, 0x78, 0x6b, 0x1f, 0x86, + 0x10, 0xec, 0xa7, 0x32, 0x63, 0xc8, 0xf1, 0x9d, 0xc0, 0x8d, 0x6d, 0x5c, 0x6b, 0x82, 0x96, 0x0c, + 0xed, 0x35, 0x5a, 0x1d, 0xc3, 0xfb, 0x60, 0x20, 0xaf, 0x05, 0x53, 0xa8, 0x6f, 0xc5, 0xe6, 0x03, + 0xfa, 0xc0, 0xcb, 0x98, 0x4e, 0x15, 0xaf, 0x0c, 0x97, 0x02, 0xed, 0xdb, 0x5c, 0x5b, 0x82, 0x11, + 0xf0, 0x5a, 0x2d, 0xa0, 0x81, 0xef, 0x04, 0xde, 0xc9, 0x31, 0xf9, 0xeb, 0xa0, 0xe4, 0x95, 0xad, + 0x7a, 0x41, 0x0d, 0x8d, 0x81, 0xdc, 0xc4, 0xf0, 0x0d, 0xb8, 0x25, 0xc5, 0xaf, 0x99, 0xd1, 0xd0, + 0x02, 0xc9, 0x2e, 0x40, 0xf1, 0xbc, 0x2e, 0xb3, 0x44, 0x6f, 0xc5, 0xb0, 0x48, 0x0c, 0x00, 0xd7, + 0x97, 0x4c, 0xf1, 0x9c, 0xb3, 0x0c, 0x1d, 0xf8, 0x4e, 0x30, 0x8a, 0x5b, 0x0a, 0x3c, 0x06, 0xb0, + 0xe4, 0xc2, 0x24, 0x74, 0x62, 0x0a, 0xa9, 0xf8, 0x27, 0x6a, 0x67, 0x1d, 0xd9, 0x59, 0xef, 0xd5, + 0x99, 0xb3, 0x76, 0xe2, 0xe8, 0x4b, 0x1f, 0xdc, 0xde, 0xec, 0xf7, 0x3c, 0x7a, 0xfd, 0xee, 0xe2, + 0xc6, 0x97, 0xfc, 0x08, 0xdc, 0xd5, 0x33, 0x6d, 0x58, 0x99, 0xd0, 0xb4, 0x16, 0x98, 0xd2, 0x68, + 0xe0, 0xf7, 0x03, 0x37, 0xbe, 0xd3, 0xe8, 0x67, 0x6b, 0x79, 0xdb, 0x8f, 0xe1, 0xff, 0xfa, 0x71, + 0xb9, 0xe5, 0xc7, 0x81, 0x05, 0x9e, 0xfe, 0x9b, 0x1f, 0xe7, 0xa2, 0x9a, 0x98, 0x3f, 0x99, 0x32, + 0xda, 0xd1, 0x14, 0xf7, 0x37, 0xa6, 0x3c, 0x8b, 0xbe, 0x2e, 0xb0, 0x33, 0x5f, 0x60, 0xe7, 0xc7, + 0x02, 0x3b, 0x9f, 0x97, 0xb8, 0x37, 0x5f, 0xe2, 0xde, 0xb7, 0x25, 0xee, 0xbd, 0x7f, 0x32, 0xe6, + 0xa6, 0x98, 0x5c, 0x91, 0x54, 0x96, 0x61, 0xa7, 0xe9, 0xb0, 0x69, 0x3a, 0x9c, 0x86, 0xeb, 0x83, + 0x32, 0xb3, 0x8a, 0x69, 0x7b, 0x56, 0x57, 0x43, 0x7b, 0x4b, 0xa7, 0x3f, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xc2, 0x3a, 0x7a, 0x8f, 0xd1, 0x03, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaINPUT) 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 *NFTSchemaINPUT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x4a + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaINPUT) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaINPUT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainDataInput{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/nft_schema_by_contract.pb.go b/x/nftmngr/types/v092/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..2037437b --- /dev/null +++ b/x/nftmngr/types/v092/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/nft_schema_by_contract.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_98c917e631c26126, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v092.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v092/nft_schema_by_contract.proto", fileDescriptor_98c917e631c26126) +} + +var fileDescriptor_98c917e631c26126 = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0xae, 0x18, 0xac, 0xf7, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/on_chain_data.pb.go b/x/nftmngr/types/v092/on_chain_data.pb.go new file mode 100644 index 00000000..1c9631c8 --- /dev/null +++ b/x/nftmngr/types/v092/on_chain_data.pb.go @@ -0,0 +1,1139 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/on_chain_data.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_461983e0a4b60835, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + TokenAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,3,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_461983e0a4b60835, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +type OnChainDataInput struct { + RevealRequired bool `protobuf:"varint,1,opt,name=reveal_required,json=revealRequired,proto3" json:"reveal_required,omitempty"` + RevealSecret []byte `protobuf:"bytes,2,opt,name=reveal_secret,json=revealSecret,proto3" json:"reveal_secret,omitempty"` + SchemaAttributes []*AttributeDefinition `protobuf:"bytes,3,rep,name=schema_attributes,json=schemaAttributes,proto3" json:"schema_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,4,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,6,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainDataInput) Reset() { *m = OnChainDataInput{} } +func (m *OnChainDataInput) String() string { return proto.CompactTextString(m) } +func (*OnChainDataInput) ProtoMessage() {} +func (*OnChainDataInput) Descriptor() ([]byte, []int) { + return fileDescriptor_461983e0a4b60835, []int{2} +} +func (m *OnChainDataInput) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainDataInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainDataInput.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 *OnChainDataInput) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainDataInput.Merge(m, src) +} +func (m *OnChainDataInput) XXX_Size() int { + return m.Size() +} +func (m *OnChainDataInput) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainDataInput.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainDataInput proto.InternalMessageInfo + +func (m *OnChainDataInput) GetRevealRequired() bool { + if m != nil { + return m.RevealRequired + } + return false +} + +func (m *OnChainDataInput) GetRevealSecret() []byte { + if m != nil { + return m.RevealSecret + } + return nil +} + +func (m *OnChainDataInput) GetSchemaAttributes() []*AttributeDefinition { + if m != nil { + return m.SchemaAttributes + } + return nil +} + +func (m *OnChainDataInput) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainDataInput) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainDataInput) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v092.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v092.OnChainData") + proto.RegisterType((*OnChainDataInput)(nil), "thesixnetwork.sixnft.nftmngr.v092.OnChainDataInput") +} + +func init() { proto.RegisterFile("nftmngr/v092/on_chain_data.proto", fileDescriptor_461983e0a4b60835) } + +var fileDescriptor_461983e0a4b60835 = []byte{ + // 437 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x0d, 0x84, 0xb2, 0x09, 0x34, 0xec, 0xc9, 0xf4, 0x60, 0xd2, 0x20, 0xd1, 0x70, + 0xc0, 0x46, 0x05, 0x21, 0x71, 0x84, 0x16, 0x24, 0x2e, 0x05, 0x6d, 0x25, 0x0e, 0x5c, 0xac, 0x8d, + 0x33, 0x8e, 0x57, 0x8d, 0xd7, 0x61, 0x77, 0x1c, 0xca, 0x5b, 0xf0, 0x30, 0x3c, 0x04, 0xc7, 0x1e, + 0x39, 0xa2, 0xe4, 0x35, 0x38, 0x20, 0xef, 0x3a, 0x8d, 0x2d, 0x21, 0x51, 0xa9, 0xf4, 0xb6, 0xfa, + 0x67, 0xfe, 0x4f, 0x3b, 0xff, 0x68, 0xe8, 0x40, 0x25, 0x98, 0xa9, 0xa9, 0x0e, 0x17, 0x4f, 0x5f, + 0x1e, 0x84, 0xb9, 0x8a, 0xe2, 0x54, 0x48, 0x15, 0x4d, 0x04, 0x8a, 0x60, 0xae, 0x73, 0xcc, 0xd9, + 0x1e, 0xa6, 0x60, 0xe4, 0x99, 0x02, 0xfc, 0x92, 0xeb, 0xd3, 0xa0, 0x7c, 0x26, 0x18, 0x54, 0xb6, + 0xa0, 0xb4, 0xed, 0xee, 0x37, 0x20, 0x02, 0x51, 0xcb, 0x71, 0x81, 0x10, 0x4d, 0x20, 0x91, 0x4a, + 0xa2, 0xcc, 0x95, 0x63, 0xed, 0xde, 0x6f, 0x36, 0xc6, 0xb5, 0xd2, 0xa3, 0x46, 0x49, 0x25, 0x18, + 0x6d, 0x38, 0x0b, 0x31, 0x2b, 0xc0, 0xf5, 0x0d, 0x3f, 0x50, 0xfa, 0x76, 0x26, 0xa6, 0x27, 0x28, + 0xb0, 0x30, 0xec, 0x01, 0xed, 0x1a, 0xfb, 0x8a, 0x94, 0xc8, 0xc0, 0x23, 0x03, 0x32, 0xba, 0xcd, + 0xa9, 0x93, 0x8e, 0x45, 0x06, 0x6c, 0x8f, 0xf6, 0xaa, 0x06, 0x0b, 0xf1, 0xb6, 0x06, 0x64, 0xb4, + 0xcd, 0x2b, 0xd3, 0xc7, 0x52, 0x1a, 0xfe, 0x26, 0xb4, 0xfb, 0x5e, 0x1d, 0x96, 0x73, 0x1f, 0x09, + 0x14, 0x4c, 0xd0, 0x3e, 0xe6, 0xa7, 0xa0, 0x36, 0x1f, 0x30, 0x1e, 0x19, 0xb4, 0x47, 0xdd, 0x83, + 0x17, 0xc1, 0x3f, 0xb3, 0x08, 0x5e, 0xad, 0x4d, 0x47, 0x17, 0xc3, 0xf3, 0x1d, 0xcb, 0xbb, 0xa8, + 0x18, 0x76, 0x48, 0x6f, 0xb9, 0xe1, 0x8d, 0xb7, 0x65, 0xc9, 0x8f, 0x2f, 0x43, 0xb6, 0x0e, 0xbe, + 0x76, 0xb2, 0x37, 0xb4, 0xe3, 0xc6, 0xf0, 0xda, 0x96, 0xf1, 0xe4, 0x12, 0x8c, 0x4d, 0x74, 0xbc, + 0x32, 0x0f, 0xbf, 0xb7, 0x69, 0xbf, 0x36, 0xfe, 0x3b, 0x35, 0x2f, 0x90, 0xed, 0xd3, 0x1d, 0x0d, + 0x0b, 0x10, 0xb3, 0x48, 0xc3, 0xe7, 0x42, 0x6a, 0x98, 0xd8, 0x6c, 0xb7, 0xf9, 0x5d, 0x27, 0xf3, + 0x4a, 0x65, 0x0f, 0xe9, 0x9d, 0xaa, 0xd1, 0x40, 0xac, 0x01, 0x6d, 0xc0, 0x3d, 0xde, 0x73, 0xe2, + 0x89, 0xd5, 0x58, 0x4c, 0xef, 0x99, 0x38, 0x85, 0x4c, 0xd4, 0x23, 0x6d, 0x5f, 0x29, 0xd2, 0xbe, + 0x03, 0xd6, 0x32, 0xfd, 0xdb, 0xda, 0x6e, 0x5c, 0xdb, 0xda, 0x6e, 0xfe, 0x87, 0xb5, 0x75, 0xae, + 0xb0, 0xb6, 0xd7, 0xc7, 0x3f, 0x96, 0x3e, 0x39, 0x5f, 0xfa, 0xe4, 0xd7, 0xd2, 0x27, 0xdf, 0x56, + 0x7e, 0xeb, 0x7c, 0xe5, 0xb7, 0x7e, 0xae, 0xfc, 0xd6, 0xa7, 0xe7, 0x53, 0x89, 0x69, 0x31, 0x0e, + 0xe2, 0x3c, 0x0b, 0x1b, 0xe8, 0xd0, 0xa1, 0xc3, 0xb3, 0x70, 0x7d, 0x6b, 0xf8, 0x75, 0x0e, 0xc6, + 0x5e, 0xdc, 0xb8, 0x63, 0xcf, 0xeb, 0xd9, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdd, 0x0d, 0x69, + 0x8c, 0x11, 0x04, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OnChainDataInput) 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 *OnChainDataInput) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainDataInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.SchemaAttributes) > 0 { + for iNdEx := len(m.SchemaAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SchemaAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.RevealSecret) > 0 { + i -= len(m.RevealSecret) + copy(dAtA[i:], m.RevealSecret) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.RevealSecret))) + i-- + dAtA[i] = 0x12 + } + if m.RevealRequired { + i-- + if m.RevealRequired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func (m *OnChainDataInput) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RevealRequired { + n += 2 + } + l = len(m.RevealSecret) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if len(m.SchemaAttributes) > 0 { + for _, e := range m.SchemaAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainDataInput) 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 ErrIntOverflowOnChainData + } + 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: OnChainDataInput: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainDataInput: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealRequired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RevealRequired = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RevealSecret", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RevealSecret = append(m.RevealSecret[:0], dAtA[iNdEx:postIndex]...) + if m.RevealSecret == nil { + m.RevealSecret = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaAttributes = append(m.SchemaAttributes, &AttributeDefinition{}) + if err := m.SchemaAttributes[len(m.SchemaAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/opensea_display_option.pb.go b/x/nftmngr/types/v092/opensea_display_option.pb.go new file mode 100644 index 00000000..83337a7d --- /dev/null +++ b/x/nftmngr/types/v092/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/opensea_display_option.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_115ebd8db92fc168, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v092.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v092/opensea_display_option.proto", fileDescriptor_115ebd8db92fc168) +} + +var fileDescriptor_115ebd8db92fc168 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x74, 0xf5, 0xcc, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/organization.pb.go b/x/nftmngr/types/v092/organization.pb.go new file mode 100644 index 00000000..24eb73b0 --- /dev/null +++ b/x/nftmngr/types/v092/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/organization.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_bb4c5fa6b4220ef9, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v092.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v092/organization.proto", fileDescriptor_bb4c5fa6b4220ef9) } + +var fileDescriptor_bb4c5fa6b4220ef9 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd2, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x37, 0x27, 0x6d, 0xc9, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/origin_data.pb.go b/x/nftmngr/types/v092/origin_data.pb.go new file mode 100644 index 00000000..79472deb --- /dev/null +++ b/x/nftmngr/types/v092/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/origin_data.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_df25e234bb8821c8, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_df25e234bb8821c8, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v092.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v092.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_df25e234bb8821c8, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v092.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v092.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v092.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v092/origin_data.proto", fileDescriptor_df25e234bb8821c8) } + +var fileDescriptor_df25e234bb8821c8 = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0x0a, 0x54, 0xe2, 0x98, 0xb4, 0x05, 0x22, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x62, 0x6d, + 0xe2, 0x8d, 0x33, 0x02, 0xef, 0x56, 0xe3, 0x71, 0x28, 0x7f, 0xc1, 0x67, 0x71, 0xec, 0x91, 0x23, + 0x4a, 0xbe, 0x80, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0x25, 0x48, 0xc0, 0x6d, 0xf5, 0xf6, 0xbd, 0x37, + 0xef, 0x8d, 0x06, 0x3c, 0x3d, 0xe6, 0x54, 0x27, 0x14, 0x4c, 0x1f, 0x3f, 0x3f, 0x0c, 0x0c, 0x61, + 0x82, 0x3a, 0x8a, 0x25, 0x4b, 0xff, 0x9c, 0x0c, 0x1b, 0xb1, 0xc7, 0x13, 0x95, 0xe1, 0x85, 0x56, + 0xfc, 0xc9, 0xd0, 0x07, 0x7f, 0xf1, 0x1c, 0xb3, 0x5f, 0x8a, 0xfc, 0x85, 0xe8, 0xde, 0xfe, 0x15, + 0x0b, 0xc9, 0x4c, 0x38, 0xcc, 0x59, 0x45, 0xb1, 0x1a, 0xa3, 0x46, 0x46, 0xa3, 0x0b, 0xaf, 0xfb, + 0x3f, 0xea, 0x00, 0x03, 0x3b, 0xe1, 0x44, 0xb2, 0x14, 0x7b, 0x70, 0xb3, 0x9c, 0x37, 0x9a, 0x48, + 0xd4, 0xae, 0xd3, 0x72, 0xda, 0x1b, 0xe1, 0x66, 0x81, 0x1d, 0x2f, 0x20, 0x71, 0x04, 0x77, 0x2b, + 0x8a, 0xd1, 0x4c, 0x72, 0xc4, 0x91, 0x8c, 0x63, 0x52, 0x59, 0xe6, 0x5e, 0xb3, 0xec, 0x3b, 0x25, + 0xbb, 0xfc, 0xed, 0x14, 0x9f, 0xe2, 0x01, 0x6c, 0x97, 0xba, 0xa1, 0xcc, 0x54, 0x94, 0x13, 0xba, + 0x75, 0xcb, 0xbf, 0x55, 0xc0, 0x5d, 0x99, 0xa9, 0x33, 0x42, 0x81, 0xb0, 0xfb, 0x2b, 0xaf, 0x99, + 0x2a, 0x22, 0x8c, 0x51, 0x27, 0xee, 0x5a, 0xcb, 0x69, 0x6f, 0x1d, 0x1e, 0xf9, 0x7f, 0x2d, 0xef, + 0x77, 0x2a, 0xf9, 0x60, 0xa9, 0x0e, 0x77, 0xe4, 0x2a, 0x28, 0xf6, 0x61, 0x3b, 0x55, 0x2c, 0x17, + 0xab, 0x8d, 0xc6, 0x86, 0x52, 0xc9, 0xee, 0xba, 0x8d, 0xb4, 0x55, 0xc1, 0x2f, 0x2c, 0x2a, 0x46, + 0x70, 0xbb, 0xcc, 0xbe, 0xb4, 0xc9, 0xdc, 0x46, 0xab, 0xde, 0xde, 0xfc, 0xbf, 0x40, 0x27, 0xcb, + 0xf5, 0x87, 0xcd, 0xc2, 0x70, 0xf9, 0x95, 0x89, 0x04, 0x76, 0x73, 0xc2, 0x88, 0x14, 0x13, 0xaa, + 0xa9, 0xfc, 0x18, 0xa5, 0x8a, 0x27, 0x26, 0x76, 0xaf, 0xdb, 0xe2, 0xcf, 0xfe, 0x61, 0xce, 0x59, + 0xd8, 0x0b, 0x2b, 0xf5, 0x1b, 0x2b, 0x0e, 0x45, 0x4e, 0xf8, 0x1b, 0x76, 0xf0, 0x08, 0x76, 0xfe, + 0xb0, 0x22, 0x01, 0xd0, 0x18, 0x84, 0xbd, 0x97, 0xbd, 0x7e, 0xb3, 0x26, 0x36, 0x60, 0xfd, 0xf8, + 0x55, 0xa7, 0xd7, 0x6f, 0x3a, 0x07, 0x0f, 0x41, 0xac, 0xfa, 0x8a, 0x1b, 0xb0, 0xd6, 0xed, 0xbc, + 0x3d, 0x2d, 0xa8, 0xef, 0x06, 0xaf, 0x4f, 0xfb, 0x4d, 0xa7, 0xdb, 0xff, 0x3a, 0xf3, 0x9c, 0xcb, + 0x99, 0xe7, 0x7c, 0x9f, 0x79, 0xce, 0x97, 0xb9, 0x57, 0xbb, 0x9c, 0x7b, 0xb5, 0x6f, 0x73, 0xaf, + 0xf6, 0xfe, 0x69, 0x82, 0x3c, 0xc9, 0x87, 0xfe, 0xc8, 0xa4, 0xc1, 0x95, 0x1e, 0x41, 0xd1, 0x23, + 0xb8, 0x08, 0xaa, 0x8b, 0xe5, 0xcf, 0xe7, 0x2a, 0xb3, 0x77, 0x3b, 0x6c, 0xd8, 0x1b, 0x7d, 0xf2, + 0x33, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xed, 0x0d, 0x5a, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v092/schema_attribute.pb.go b/x/nftmngr/types/v092/schema_attribute.pb.go new file mode 100644 index 00000000..2b5a3811 --- /dev/null +++ b/x/nftmngr/types/v092/schema_attribute.pb.go @@ -0,0 +1,1266 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v092/schema_attribute.proto + +package v092 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type SchemaAttribute struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,5,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,6,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,7,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + HiddenOveride bool `protobuf:"varint,8,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,9,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } +func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } +func (*SchemaAttribute) ProtoMessage() {} +func (*SchemaAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_e64980f1a8b0e7d7, []int{0} +} +func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttribute.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 *SchemaAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttribute.Merge(m, src) +} +func (m *SchemaAttribute) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttribute proto.InternalMessageInfo + +func (m *SchemaAttribute) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttribute) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttribute) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttribute) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *SchemaAttribute) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *SchemaAttribute) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *SchemaAttribute) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttribute) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *SchemaAttribute) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *SchemaAttribute) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeValue struct { + // Types that are valid to be assigned to Value: + // *SchemaAttributeValue_NumberAttributeValue + // *SchemaAttributeValue_StringAttributeValue + // *SchemaAttributeValue_BooleanAttributeValue + // *SchemaAttributeValue_FloatAttributeValue + Value isSchemaAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } +func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeValue) ProtoMessage() {} +func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_e64980f1a8b0e7d7, []int{1} +} +func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeValue.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 *SchemaAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeValue.Merge(m, src) +} +func (m *SchemaAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeValue proto.InternalMessageInfo + +type isSchemaAttributeValue_Value interface { + isSchemaAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type SchemaAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type SchemaAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type SchemaAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type SchemaAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*SchemaAttributeValue_NumberAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_StringAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_BooleanAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_FloatAttributeValue) isSchemaAttributeValue_Value() {} + +func (m *SchemaAttributeValue) GetValue() isSchemaAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SchemaAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SchemaAttributeValue_NumberAttributeValue)(nil), + (*SchemaAttributeValue_StringAttributeValue)(nil), + (*SchemaAttributeValue_BooleanAttributeValue)(nil), + (*SchemaAttributeValue_FloatAttributeValue)(nil), + } +} + +func init() { + proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.v092.SchemaAttribute") + proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v092.SchemaAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v092/schema_attribute.proto", fileDescriptor_e64980f1a8b0e7d7) +} + +var fileDescriptor_e64980f1a8b0e7d7 = []byte{ + // 542 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x9b, 0x7e, 0x24, 0x5b, 0x52, 0xc4, 0xa6, 0x01, 0x2b, 0x48, 0x56, 0x5a, 0xbe, 0x72, + 0xb2, 0xab, 0x80, 0xf8, 0x38, 0x12, 0x50, 0xc5, 0x85, 0x56, 0x0a, 0x15, 0x48, 0x08, 0xc9, 0x5a, + 0xc7, 0xe3, 0x64, 0x55, 0x7b, 0xd7, 0xac, 0xd7, 0xa1, 0xf9, 0x17, 0xfc, 0x2c, 0x8e, 0x3d, 0x72, + 0xac, 0x92, 0x3f, 0x82, 0x3c, 0x4e, 0x08, 0xae, 0x23, 0x91, 0x9b, 0xe7, 0xbd, 0x99, 0xf7, 0x66, + 0xc7, 0xbb, 0x43, 0x1e, 0x89, 0x40, 0x47, 0x62, 0xa4, 0x9c, 0xc9, 0xc9, 0x9b, 0x9e, 0x93, 0x0c, + 0xc7, 0x10, 0x31, 0x97, 0x69, 0xad, 0xb8, 0x97, 0x6a, 0xb0, 0x63, 0x25, 0xb5, 0xa4, 0x47, 0x7a, + 0x0c, 0x09, 0xbf, 0x12, 0xa0, 0x7f, 0x48, 0x75, 0x69, 0x67, 0x9f, 0x81, 0xb6, 0x17, 0x95, 0x76, + 0x56, 0xd9, 0x3e, 0x2a, 0xe8, 0xf8, 0x3c, 0x89, 0x43, 0x36, 0x75, 0x65, 0xac, 0xb9, 0x14, 0xb9, + 0x4a, 0xfb, 0x69, 0x21, 0x45, 0x04, 0x7a, 0xe5, 0xe3, 0x4e, 0x58, 0x98, 0x2e, 0xdc, 0xda, 0xcf, + 0x0a, 0x79, 0xab, 0x1c, 0x1f, 0x02, 0x2e, 0xf8, 0x4a, 0xf0, 0xf8, 0xa6, 0x4a, 0xee, 0x7e, 0xc2, + 0x8e, 0xdf, 0x2e, 0x93, 0xe8, 0x63, 0xd2, 0x10, 0x81, 0xce, 0xd1, 0x77, 0xd2, 0x07, 0xd3, 0xe8, + 0x18, 0xdd, 0xfa, 0xa0, 0x08, 0x52, 0x4a, 0xb6, 0x05, 0x8b, 0xc0, 0xdc, 0x42, 0x12, 0xbf, 0xe9, + 0x43, 0x52, 0xf7, 0x99, 0x66, 0xae, 0x9e, 0xc6, 0x60, 0x56, 0x91, 0xa8, 0x65, 0xc0, 0xc5, 0x34, + 0x06, 0xda, 0x26, 0x35, 0x05, 0xdf, 0x53, 0xae, 0xc0, 0x37, 0xb7, 0x3b, 0x46, 0xb7, 0x36, 0xf8, + 0x1b, 0x53, 0x9b, 0x34, 0x97, 0xe7, 0xc5, 0x63, 0xb8, 0x01, 0x87, 0xd0, 0x37, 0x77, 0x50, 0xe2, + 0xde, 0x82, 0xfa, 0x9c, 0x31, 0xa7, 0x19, 0x41, 0xbf, 0x90, 0x83, 0xe2, 0x7c, 0xcc, 0xdd, 0x8e, + 0xd1, 0xdd, 0xef, 0x9d, 0xd8, 0xff, 0x1d, 0xb3, 0xfd, 0x3e, 0x2f, 0x3c, 0xc7, 0xba, 0x41, 0xc3, + 0xff, 0x37, 0xa4, 0xdf, 0x48, 0x63, 0x98, 0x2a, 0x05, 0x42, 0xe7, 0x8d, 0x98, 0x7b, 0xa8, 0xfb, + 0x6a, 0x03, 0xdd, 0x5b, 0x63, 0xc4, 0x6e, 0x07, 0x77, 0x16, 0x6a, 0x18, 0xd1, 0x27, 0xe4, 0x60, + 0xcc, 0x7d, 0x1f, 0x84, 0x2b, 0x27, 0xa0, 0xb8, 0x0f, 0x66, 0x0d, 0x07, 0xd1, 0xc8, 0xd1, 0xf3, + 0x1c, 0xa4, 0x3d, 0xd2, 0x5a, 0xa4, 0x69, 0xe9, 0x46, 0x4c, 0x5d, 0x82, 0x8e, 0x43, 0x36, 0x04, + 0xb3, 0x8e, 0xd9, 0xcd, 0x9c, 0xbc, 0x90, 0x1f, 0x57, 0x14, 0x35, 0xc9, 0xde, 0x50, 0x01, 0xd3, + 0x52, 0x99, 0x04, 0xa7, 0xb6, 0x0c, 0x8f, 0xe7, 0x55, 0x72, 0xb8, 0xae, 0x37, 0x2a, 0xc9, 0x7d, + 0x91, 0x46, 0x1e, 0xa8, 0xdb, 0x97, 0x08, 0x7f, 0xf8, 0x66, 0x87, 0x3e, 0x43, 0x81, 0xa2, 0xf0, + 0x87, 0xca, 0xe0, 0x50, 0xac, 0xc1, 0x33, 0xc3, 0x44, 0x2b, 0x2e, 0x46, 0x25, 0xc3, 0xad, 0xcd, + 0xa7, 0x8c, 0x02, 0x65, 0xc3, 0x64, 0x0d, 0x4e, 0x15, 0x79, 0xe0, 0x49, 0x19, 0x02, 0x13, 0x25, + 0xc7, 0x2a, 0x3a, 0xbe, 0xde, 0xc0, 0xb1, 0x9f, 0x2b, 0x94, 0x2c, 0x5b, 0xde, 0x3a, 0x82, 0x86, + 0xa4, 0x15, 0x84, 0x92, 0x95, 0x5e, 0x26, 0xde, 0xf9, 0xfd, 0xde, 0xcb, 0x0d, 0x1c, 0x4f, 0xb3, + 0xfa, 0x92, 0x5f, 0x33, 0x28, 0xc3, 0xfd, 0x3d, 0xb2, 0x83, 0xea, 0xfd, 0xb3, 0x5f, 0x33, 0xcb, + 0xb8, 0x9e, 0x59, 0xc6, 0xcd, 0xcc, 0x32, 0x7e, 0xce, 0xad, 0xca, 0xf5, 0xdc, 0xaa, 0xfc, 0x9e, + 0x5b, 0x95, 0xaf, 0x2f, 0x46, 0x5c, 0x8f, 0x53, 0xcf, 0x1e, 0xca, 0xc8, 0x29, 0x78, 0x3b, 0xb9, + 0xb7, 0x73, 0xe5, 0x2c, 0xb7, 0x45, 0xf6, 0x6e, 0x13, 0xdc, 0x19, 0xde, 0x2e, 0xee, 0x87, 0xe7, + 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x70, 0x99, 0x58, 0xbc, 0xdd, 0x04, 0x00, 0x00, +} + +func (m *SchemaAttribute) 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 *SchemaAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x52 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue) 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 *SchemaAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func encodeVarintSchemaAttribute(dAtA []byte, offset int, v uint64) int { + offset -= sovSchemaAttribute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SchemaAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *SchemaAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func sovSchemaAttribute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSchemaAttribute(x uint64) (n int) { + return sovSchemaAttribute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SchemaAttribute) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeValue) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSchemaAttribute(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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrInvalidLengthSchemaAttribute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchemaAttribute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchemaAttribute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSchemaAttribute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchemaAttribute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchemaAttribute = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/action.pb.go b/x/nftmngr/types/v093/action.pb.go new file mode 100644 index 00000000..db75e5e4 --- /dev/null +++ b/x/nftmngr/types/v093/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/action.proto + +package v093 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_7d94398ccb103eaf, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_7d94398ccb103eaf, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v093.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_7d94398ccb103eaf, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v093.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v093.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v093.Action") +} + +func init() { proto.RegisterFile("nftmngr/v093/action.proto", fileDescriptor_7d94398ccb103eaf) } + +var fileDescriptor_7d94398ccb103eaf = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x3a, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x57, 0x29, 0x17, 0x8e, 0x2e, 0xf8, 0x80, 0x64, 0x1c, 0xc9, 0x09, 0xa0, 0x72, 0xb1, + 0x36, 0xf6, 0xc6, 0xb1, 0xb0, 0xbd, 0xc6, 0x5e, 0x37, 0xed, 0x5b, 0x70, 0xe1, 0x19, 0x78, 0x95, + 0x1e, 0x7b, 0xe4, 0x84, 0x50, 0xf2, 0x22, 0x68, 0x77, 0x5d, 0xa4, 0xd0, 0x03, 0xbd, 0xfd, 0xfb, + 0xcd, 0x3f, 0xe3, 0x99, 0xf1, 0xc0, 0xc7, 0xc5, 0x92, 0xe7, 0x45, 0x52, 0xd9, 0x17, 0x27, 0xaf, + 0x4f, 0x6d, 0x12, 0xf1, 0x94, 0x15, 0x56, 0x59, 0x31, 0xce, 0xd0, 0x73, 0xbe, 0xa2, 0x75, 0x7a, + 0x59, 0x50, 0xbe, 0x66, 0xd5, 0x17, 0x4b, 0xc8, 0x25, 0xb7, 0x5a, 0xbf, 0x25, 0xfc, 0xe3, 0xa3, + 0x84, 0x25, 0x4c, 0xba, 0x6d, 0xa1, 0x54, 0xe2, 0xf1, 0x77, 0x00, 0x0f, 0x54, 0xa5, 0xb0, 0x24, + 0x15, 0xc9, 0x6b, 0x84, 0x60, 0xbf, 0x20, 0x39, 0xc5, 0xc0, 0x00, 0xe6, 0x30, 0x90, 0x5a, 0xb0, + 0x98, 0xd6, 0x11, 0xee, 0x2a, 0x26, 0x34, 0x7a, 0x02, 0x87, 0x31, 0xe1, 0x24, 0xe4, 0x57, 0x25, + 0xc5, 0x3d, 0x19, 0xd0, 0x04, 0x98, 0x5f, 0x95, 0x14, 0x8d, 0xa1, 0x56, 0xd1, 0xaf, 0x4d, 0x5a, + 0xd1, 0x18, 0xf7, 0x0d, 0x60, 0x6a, 0xc1, 0xdf, 0x37, 0x7a, 0x01, 0x0f, 0x62, 0xba, 0x24, 0x4d, + 0xc6, 0xc3, 0x0b, 0x92, 0x35, 0x14, 0xef, 0xc9, 0xe4, 0x87, 0x2d, 0xfc, 0x28, 0xd8, 0xf1, 0x8f, + 0x2e, 0x1c, 0x38, 0xb2, 0xaf, 0x7b, 0x37, 0x84, 0xe1, 0x7e, 0x9c, 0xd6, 0x64, 0x91, 0xa9, 0x76, + 0xb4, 0xe0, 0xf6, 0x29, 0xdc, 0xeb, 0x15, 0x2d, 0x64, 0x27, 0xc3, 0x40, 0x6a, 0xc1, 0xb8, 0x60, + 0x7b, 0x46, 0x4f, 0x30, 0xa1, 0x51, 0x04, 0x47, 0x24, 0xcb, 0xd8, 0x9a, 0xc6, 0xa1, 0xda, 0x09, + 0xad, 0xf0, 0xc0, 0x00, 0xe6, 0xa3, 0xc9, 0xc4, 0xfa, 0xef, 0x82, 0x2d, 0x47, 0xa5, 0x3a, 0x6d, + 0xe6, 0x59, 0xff, 0xfa, 0xd7, 0x33, 0x10, 0x1c, 0x92, 0x5d, 0x8c, 0x7c, 0x38, 0x50, 0x9b, 0xc6, + 0xfb, 0x46, 0xcf, 0x7c, 0x30, 0x39, 0xb9, 0x47, 0xe9, 0x9d, 0x3f, 0xd4, 0x16, 0x6e, 0xab, 0xbc, + 0xcc, 0xe1, 0xe1, 0x3f, 0x5f, 0x46, 0x18, 0x1e, 0x39, 0x9e, 0x37, 0xfd, 0xe4, 0xbe, 0x0d, 0x9d, + 0x37, 0xf3, 0x77, 0x53, 0xdf, 0x0d, 0x42, 0xc7, 0xf3, 0x46, 0x1d, 0x64, 0xc0, 0xa7, 0x77, 0x22, + 0xb3, 0xf3, 0xd9, 0xdc, 0x7d, 0x1f, 0x4e, 0x7d, 0xef, 0x7c, 0x04, 0x90, 0x0e, 0xc7, 0x77, 0x1c, + 0x1f, 0x66, 0x6e, 0xa0, 0xe2, 0xdd, 0x33, 0xff, 0x7a, 0xa3, 0x83, 0x9b, 0x8d, 0x0e, 0x7e, 0x6f, + 0x74, 0xf0, 0x6d, 0xab, 0x77, 0x6e, 0xb6, 0x7a, 0xe7, 0xe7, 0x56, 0xef, 0x7c, 0x7e, 0x95, 0xa4, + 0x7c, 0xd5, 0x2c, 0xac, 0x88, 0xe5, 0xf6, 0xce, 0x48, 0xb6, 0x1a, 0xc9, 0xbe, 0xb4, 0x6f, 0x0f, + 0x58, 0xdc, 0x4c, 0x2d, 0xcf, 0x78, 0x31, 0x90, 0x77, 0x78, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, + 0x00, 0x14, 0xd2, 0xdd, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/action_by_ref_id.pb.go b/x/nftmngr/types/v093/action_by_ref_id.pb.go new file mode 100644 index 00000000..115e2fcc --- /dev/null +++ b/x/nftmngr/types/v093/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/action_by_ref_id.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_c87b2b7af58fb606, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v093.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v093/action_by_ref_id.proto", fileDescriptor_c87b2b7af58fb606) +} + +var fileDescriptor_c87b2b7af58fb606 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xcc, 0xc6, 0xa8, 0xbf, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/action_executor.pb.go b/x/nftmngr/types/v093/action_executor.pb.go new file mode 100644 index 00000000..42d9fcf6 --- /dev/null +++ b/x/nftmngr/types/v093/action_executor.pb.go @@ -0,0 +1,648 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/action_executor.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionExecutor struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress string `protobuf:"bytes,2,opt,name=executorAddress,proto3" json:"executorAddress,omitempty"` + Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *ActionExecutor) Reset() { *m = ActionExecutor{} } +func (m *ActionExecutor) String() string { return proto.CompactTextString(m) } +func (*ActionExecutor) ProtoMessage() {} +func (*ActionExecutor) Descriptor() ([]byte, []int) { + return fileDescriptor_dba8c57790c2eb37, []int{0} +} +func (m *ActionExecutor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutor.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 *ActionExecutor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutor.Merge(m, src) +} +func (m *ActionExecutor) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutor) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutor.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutor proto.InternalMessageInfo + +func (m *ActionExecutor) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutor) GetExecutorAddress() string { + if m != nil { + return m.ExecutorAddress + } + return "" +} + +func (m *ActionExecutor) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type ActionExecutorBySchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ActionExecutorBySchema) Reset() { *m = ActionExecutorBySchema{} } +func (m *ActionExecutorBySchema) String() string { return proto.CompactTextString(m) } +func (*ActionExecutorBySchema) ProtoMessage() {} +func (*ActionExecutorBySchema) Descriptor() ([]byte, []int) { + return fileDescriptor_dba8c57790c2eb37, []int{1} +} +func (m *ActionExecutorBySchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutorBySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutorBySchema.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 *ActionExecutorBySchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutorBySchema.Merge(m, src) +} +func (m *ActionExecutorBySchema) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutorBySchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutorBySchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutorBySchema proto.InternalMessageInfo + +func (m *ActionExecutorBySchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutorBySchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ActionExecutor)(nil), "thesixnetwork.sixnft.nftmngr.v093.ActionExecutor") + proto.RegisterType((*ActionExecutorBySchema)(nil), "thesixnetwork.sixnft.nftmngr.v093.ActionExecutorBySchema") +} + +func init() { + proto.RegisterFile("nftmngr/v093/action_executor.proto", fileDescriptor_dba8c57790c2eb37) +} + +var fileDescriptor_dba8c57790c2eb37 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0x7a, 0x5d, + 0xa1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, + 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, + 0x61, 0x96, 0x39, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, + 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, + 0x4a, 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, + 0xe0, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, + 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xa1, 0xa5, 0x0f, 0x09, 0x2d, 0xfd, + 0x0a, 0x7d, 0x58, 0x40, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x83, 0x3b, 0x89, 0x0d, 0x1c, 0xbe, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x80, 0x51, 0x74, 0x72, 0x85, 0x01, 0x00, 0x00, +} + +func (m *ActionExecutor) 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 *ActionExecutor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x1a + } + if len(m.ExecutorAddress) > 0 { + i -= len(m.ExecutorAddress) + copy(dAtA[i:], m.ExecutorAddress) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ActionExecutorBySchema) 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 *ActionExecutorBySchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutorBySchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionExecutor(dAtA []byte, offset int, v uint64) int { + offset -= sovActionExecutor(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionExecutor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.ExecutorAddress) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + return n +} + +func (m *ActionExecutorBySchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovActionExecutor(uint64(l)) + } + } + return n +} + +func sovActionExecutor(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionExecutor(x uint64) (n int) { + return sovActionExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionExecutor) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActionExecutorBySchema) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutorBySchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutorBySchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionExecutor(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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrInvalidLengthActionExecutor + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionExecutor + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionExecutor + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionExecutor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionExecutor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionExecutor = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/action_of_schema.pb.go b/x/nftmngr/types/v093/action_of_schema.pb.go new file mode 100644 index 00000000..f33edfe3 --- /dev/null +++ b/x/nftmngr/types/v093/action_of_schema.pb.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/action_of_schema.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *ActionOfSchema) Reset() { *m = ActionOfSchema{} } +func (m *ActionOfSchema) String() string { return proto.CompactTextString(m) } +func (*ActionOfSchema) ProtoMessage() {} +func (*ActionOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_096ba3b21b4c4823, []int{0} +} +func (m *ActionOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionOfSchema.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 *ActionOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionOfSchema.Merge(m, src) +} +func (m *ActionOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ActionOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionOfSchema proto.InternalMessageInfo + +func (m *ActionOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionOfSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionOfSchema) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*ActionOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v093.ActionOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v093/action_of_schema.proto", fileDescriptor_096ba3b21b4c4823) +} + +var fileDescriptor_096ba3b21b4c4823 = []byte{ + // 216 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0x9a, + 0xfd, 0xd3, 0x82, 0xc1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, + 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, + 0xc4, 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, + 0x5a, 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0x04, 0xe1, 0x38, 0xf9, 0x9d, 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, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, + 0x7e, 0xae, 0x3e, 0x8a, 0x4b, 0xf5, 0x21, 0x2e, 0xd5, 0xaf, 0xd0, 0x87, 0xf9, 0xb2, 0xa4, 0xb2, + 0x20, 0xb5, 0x18, 0xec, 0xd7, 0x24, 0x36, 0xb0, 0xdf, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xdb, 0x86, 0xdb, 0x8b, 0x02, 0x01, 0x00, 0x00, +} + +func (m *ActionOfSchema) 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 *ActionOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintActionOfSchema(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovActionOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovActionOfSchema(uint64(m.Index)) + } + return n +} + +func sovActionOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionOfSchema(x uint64) (n int) { + return sovActionOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionOfSchema) 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 ErrIntOverflowActionOfSchema + } + 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: ActionOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipActionOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionOfSchema(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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrInvalidLengthActionOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/attribute_definition.pb.go b/x/nftmngr/types/v093/attribute_definition.pb.go new file mode 100644 index 00000000..5827c7cb --- /dev/null +++ b/x/nftmngr/types/v093/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/attribute_definition.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_9ea636e30b2c97c0, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_9ea636e30b2c97c0, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v093.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v093/attribute_definition.proto", fileDescriptor_9ea636e30b2c97c0) +} + +var fileDescriptor_9ea636e30b2c97c0 = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x68, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x4c, 0x2b, 0xe2, 0xc7, 0x91, 0xaa, 0x9a, 0xb8, 0x6c, 0x93, 0xc2, 0x04, 0x12, 0x97, 0xc8, + 0x99, 0x9d, 0xd6, 0x5a, 0x62, 0x07, 0xf7, 0xa5, 0xb4, 0xff, 0x05, 0xff, 0x11, 0x57, 0x8e, 0x3b, + 0x72, 0x03, 0xb5, 0xff, 0x08, 0x8a, 0xdd, 0x1f, 0xb4, 0xa9, 0xb4, 0xde, 0xec, 0xf7, 0xbd, 0xef, + 0xfb, 0xec, 0xe7, 0xf7, 0x8c, 0x5e, 0x89, 0x08, 0x12, 0xd1, 0x53, 0xde, 0xf0, 0xec, 0x7d, 0xdb, + 0x23, 0x00, 0x8a, 0x87, 0x19, 0xb0, 0x80, 0xb2, 0x88, 0x0b, 0x0e, 0x5c, 0x0a, 0x37, 0x55, 0x12, + 0x24, 0x3e, 0x86, 0x3e, 0x1b, 0xf0, 0x91, 0x60, 0xf0, 0x5d, 0xaa, 0x3b, 0x37, 0x5f, 0x46, 0xe0, + 0xce, 0xd8, 0x6e, 0xce, 0x6e, 0x1d, 0xaf, 0x68, 0x51, 0x3e, 0x48, 0x63, 0x32, 0x0e, 0x64, 0xba, + 0x54, 0x69, 0xbd, 0x5c, 0x49, 0x11, 0x11, 0x04, 0x4b, 0xcb, 0x21, 0x89, 0x33, 0x66, 0xf2, 0x4e, + 0xfe, 0x94, 0xd1, 0x41, 0x97, 0x45, 0x24, 0x8b, 0xe1, 0x92, 0x0b, 0xf8, 0x9c, 0x43, 0x58, 0xa2, + 0xa7, 0x22, 0x4b, 0x42, 0xa6, 0xd6, 0x49, 0xb6, 0x75, 0x64, 0x9d, 0x3e, 0x3e, 0x7f, 0xeb, 0x3e, + 0x78, 0x46, 0xf7, 0x4a, 0x0b, 0x7c, 0x98, 0xf3, 0xb5, 0xf0, 0xc7, 0x92, 0x7f, 0x28, 0x36, 0xc4, + 0x73, 0xc3, 0x01, 0x28, 0x2e, 0x7a, 0x05, 0xc3, 0x47, 0x5b, 0x1b, 0x7e, 0xd2, 0x02, 0x45, 0xc3, + 0xc1, 0x86, 0x38, 0x56, 0xe8, 0x59, 0x28, 0x65, 0xcc, 0x88, 0x28, 0x38, 0x96, 0xb5, 0xe3, 0xbb, + 0x2d, 0x1c, 0x3b, 0x46, 0xa1, 0x60, 0xd9, 0x0c, 0x37, 0x01, 0x38, 0x46, 0xcd, 0x28, 0x96, 0xa4, + 0xf0, 0x12, 0x76, 0x45, 0x3b, 0xbe, 0xd9, 0xc2, 0xf1, 0x22, 0xe7, 0x17, 0xfc, 0x1a, 0x51, 0x31, + 0xdc, 0xd9, 0x45, 0x55, 0xad, 0x7e, 0xf2, 0xb3, 0x8c, 0x1a, 0x0b, 0xac, 0xbb, 0xe8, 0x36, 0x8c, + 0x51, 0x45, 0x90, 0xc4, 0x3c, 0x69, 0xdd, 0xd7, 0x6b, 0xfc, 0x1c, 0xd5, 0x29, 0x01, 0x12, 0xc0, + 0x38, 0x35, 0xa5, 0xaf, 0xfb, 0xb5, 0x3c, 0x70, 0x33, 0x4e, 0x19, 0x6e, 0xa1, 0x9a, 0x62, 0xdf, + 0x32, 0xae, 0x18, 0xd5, 0x45, 0xaa, 0xf9, 0x8b, 0x3d, 0x76, 0x51, 0x63, 0xde, 0x86, 0xda, 0x35, + 0x88, 0x38, 0x8b, 0xa9, 0xbe, 0x59, 0xdd, 0x7f, 0x32, 0x83, 0xf4, 0xc1, 0x2e, 0x72, 0x00, 0x7f, + 0x41, 0xfb, 0xab, 0x6d, 0x6b, 0x57, 0x75, 0x11, 0xce, 0xb6, 0x28, 0x42, 0xd7, 0x10, 0xaf, 0x35, + 0xcf, 0xdf, 0xa3, 0xff, 0x6f, 0x31, 0x41, 0x98, 0x9a, 0x76, 0x0e, 0x12, 0x2e, 0x60, 0x56, 0xe1, + 0x1d, 0x2d, 0xde, 0xde, 0x46, 0x7c, 0x6d, 0x16, 0xfc, 0x03, 0xba, 0x3e, 0x1d, 0x2f, 0xd0, 0x7e, + 0x9f, 0x53, 0xca, 0x44, 0x20, 0x87, 0x4c, 0x71, 0xca, 0xec, 0x5d, 0x5d, 0x8d, 0x3d, 0x13, 0xbd, + 0x36, 0x41, 0x7c, 0x8e, 0x9a, 0xb3, 0x34, 0x90, 0x41, 0x42, 0xd4, 0x1d, 0x83, 0x34, 0x26, 0xb7, + 0xcc, 0xae, 0xe9, 0xec, 0x86, 0x01, 0x6f, 0xe4, 0xe5, 0x12, 0xc2, 0x87, 0xa8, 0xca, 0x05, 0x65, + 0x23, 0xbb, 0x7e, 0x64, 0x9d, 0x56, 0x7c, 0xb3, 0xe9, 0x5c, 0xfd, 0x9a, 0x38, 0xd6, 0xfd, 0xc4, + 0xb1, 0xfe, 0x4e, 0x1c, 0xeb, 0xc7, 0xd4, 0x29, 0xdd, 0x4f, 0x9d, 0xd2, 0xef, 0xa9, 0x53, 0xfa, + 0xfa, 0xba, 0xc7, 0xa1, 0x9f, 0x85, 0xee, 0xad, 0x4c, 0xbc, 0x95, 0xbb, 0x79, 0xe6, 0x6e, 0xde, + 0xc8, 0x9b, 0xff, 0x03, 0xf9, 0x93, 0x0e, 0xf4, 0x6f, 0x10, 0xee, 0xe8, 0xd1, 0x6f, 0xff, 0x0b, + 0x00, 0x00, 0xff, 0xff, 0xec, 0xed, 0x1a, 0x38, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/display_option.pb.go b/x/nftmngr/types/v093/display_option.pb.go new file mode 100644 index 00000000..c39a6ef2 --- /dev/null +++ b/x/nftmngr/types/v093/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/display_option.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_649e459ceecf855d, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v093.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v093/display_option.proto", fileDescriptor_649e459ceecf855d) } + +var fileDescriptor_649e459ceecf855d = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4d, 0xe8, 0x57, 0x17, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/executor_of_schema.pb.go b/x/nftmngr/types/v093/executor_of_schema.pb.go new file mode 100644 index 00000000..c5f22157 --- /dev/null +++ b/x/nftmngr/types/v093/executor_of_schema.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/executor_of_schema.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ExecutorOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ExecutorOfSchema) Reset() { *m = ExecutorOfSchema{} } +func (m *ExecutorOfSchema) String() string { return proto.CompactTextString(m) } +func (*ExecutorOfSchema) ProtoMessage() {} +func (*ExecutorOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_3a51d1160903e513, []int{0} +} +func (m *ExecutorOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutorOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecutorOfSchema.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 *ExecutorOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutorOfSchema.Merge(m, src) +} +func (m *ExecutorOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ExecutorOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutorOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutorOfSchema proto.InternalMessageInfo + +func (m *ExecutorOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ExecutorOfSchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ExecutorOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v093.ExecutorOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v093/executor_of_schema.proto", fileDescriptor_3a51d1160903e513) +} + +var fileDescriptor_3a51d1160903e513 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, + 0x2f, 0x8a, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0xf5, 0x40, 0x7a, 0x95, 0x92, 0xb8, 0x04, 0x5c, + 0xa1, 0xda, 0xfd, 0xd3, 0x82, 0xc1, 0x9a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, + 0xe7, 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x0d, 0x2e, + 0x7e, 0x98, 0xc5, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, + 0x41, 0xe8, 0xc2, 0x4e, 0x7e, 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, 0x65, + 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x56, 0x7d, 0x88, + 0x5b, 0xf5, 0x2b, 0xf4, 0x61, 0x3e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x06, 0xfb, 0x37, 0x89, 0x0d, + 0xec, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x6a, 0x5e, 0xca, 0x06, 0x01, 0x00, + 0x00, +} + +func (m *ExecutorOfSchema) 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 *ExecutorOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintExecutorOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovExecutorOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ExecutorOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + } + return n +} + +func sovExecutorOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozExecutorOfSchema(x uint64) (n int) { + return sovExecutorOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ExecutorOfSchema) 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 ErrIntOverflowExecutorOfSchema + } + 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: ExecutorOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecutorOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipExecutorOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipExecutorOfSchema(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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrInvalidLengthExecutorOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExecutorOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthExecutorOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthExecutorOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExecutorOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExecutorOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/metadata_creator.pb.go b/x/nftmngr/types/v093/metadata_creator.pb.go new file mode 100644 index 00000000..4d07dc9a --- /dev/null +++ b/x/nftmngr/types/v093/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/metadata_creator.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_4fd5e8b657566487, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_4fd5e8b657566487, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v093.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v093.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v093/metadata_creator.proto", fileDescriptor_4fd5e8b657566487) +} + +var fileDescriptor_4fd5e8b657566487 = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x20, 0xd0, 0xad, 0x29, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_attribute_value.pb.go b/x/nftmngr/types/v093/nft_attribute_value.pb.go new file mode 100644 index 00000000..ca278d47 --- /dev/null +++ b/x/nftmngr/types/v093/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_attribute_value.proto + +package v093 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_b0de2154996134de, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_b0de2154996134de, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_b0de2154996134de, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_b0de2154996134de, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_b0de2154996134de, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v093/nft_attribute_value.proto", fileDescriptor_b0de2154996134de) +} + +var fileDescriptor_b0de2154996134de = []byte{ + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xda, 0x30, + 0x18, 0xc6, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0x3c, 0xc1, 0xb4, 0x3f, 0xc7, 0x71, 0x98, 0x7a, 0x29, 0x87, 0xb4, 0xea, 0xa1, 0x97, 0xc8, + 0x01, 0x27, 0x44, 0x24, 0x36, 0x72, 0x1c, 0x0a, 0xdf, 0xa2, 0x1f, 0xa3, 0x1f, 0xa5, 0x47, 0x8e, + 0x3d, 0x56, 0xf0, 0x45, 0xaa, 0x38, 0x44, 0x28, 0x4d, 0xa4, 0x72, 0xb3, 0xfc, 0x3e, 0xcf, 0xf3, + 0x7b, 0xf3, 0x3a, 0x2f, 0xfc, 0xc2, 0x7c, 0x19, 0xb3, 0x40, 0xe0, 0xd5, 0x8f, 0xbf, 0x23, 0xcc, + 0x7c, 0xe9, 0x12, 0x29, 0x45, 0xe8, 0xa5, 0x92, 0xba, 0x2b, 0x12, 0xa5, 0xd4, 0x5e, 0x0a, 0x2e, + 0x39, 0xfa, 0x2c, 0xe7, 0x34, 0x09, 0xd7, 0x8c, 0xca, 0x1b, 0x2e, 0x16, 0x76, 0x76, 0xf4, 0xa5, + 0x7d, 0x30, 0xdb, 0x99, 0xf9, 0xd3, 0xc7, 0x80, 0xf3, 0x20, 0xa2, 0x58, 0x19, 0xbc, 0xd4, 0xc7, + 0x84, 0x6d, 0x72, 0x77, 0xff, 0x4e, 0x87, 0xef, 0x26, 0xbe, 0xfc, 0x57, 0x44, 0x5f, 0x65, 0xc9, + 0x08, 0x41, 0x9d, 0x91, 0x98, 0x9a, 0xa0, 0x07, 0x06, 0x6d, 0x47, 0x9d, 0x11, 0x87, 0xef, 0x59, + 0x1a, 0x7b, 0x54, 0x3c, 0xef, 0xc3, 0x7c, 0xd5, 0x03, 0x83, 0xb7, 0xc3, 0xdf, 0xf6, 0x8b, 0x8d, + 0xd8, 0x13, 0x15, 0x50, 0x86, 0x9d, 0x69, 0x4e, 0x97, 0xd5, 0xdc, 0x67, 0xc0, 0x44, 0x8a, 0x90, + 0x05, 0x15, 0xe0, 0xeb, 0x93, 0x81, 0x17, 0x2a, 0xa0, 0x0a, 0x4c, 0x6a, 0xee, 0x91, 0x80, 0x1f, + 0x3c, 0xce, 0x23, 0x4a, 0x58, 0x85, 0xa8, 0x2b, 0xe2, 0x9f, 0x13, 0x88, 0xe3, 0x3c, 0xa1, 0x82, + 0x34, 0xbc, 0xba, 0x02, 0x8a, 0xa0, 0xe1, 0x47, 0x9c, 0x54, 0x1e, 0xd7, 0x6c, 0x28, 0xe2, 0xaf, + 0x13, 0x88, 0xff, 0x33, 0x7f, 0x85, 0xd7, 0xf1, 0xab, 0xd7, 0x68, 0x08, 0x8d, 0x79, 0x38, 0x9b, + 0x51, 0xe6, 0x4a, 0xee, 0xc6, 0x44, 0x2c, 0xa8, 0x5c, 0x46, 0x64, 0x4a, 0xcd, 0x66, 0x0f, 0x0c, + 0x5a, 0x4e, 0x27, 0x2f, 0x5e, 0xf2, 0xf3, 0x63, 0x69, 0xfc, 0x06, 0x36, 0x54, 0x47, 0xfd, 0x6f, + 0xb0, 0x5b, 0xf7, 0x7e, 0xa8, 0x7b, 0x10, 0xa8, 0xbf, 0x45, 0x77, 0x8e, 0xea, 0xba, 0xe1, 0x97, + 0xd5, 0xed, 0x42, 0xfd, 0x1d, 0x1a, 0xb5, 0x83, 0x2b, 0xcb, 0x5b, 0x85, 0xfc, 0x2b, 0xec, 0xd4, + 0x7c, 0x75, 0x59, 0x0c, 0x0e, 0xe2, 0xf1, 0xe4, 0x7e, 0x67, 0x81, 0xed, 0xce, 0x02, 0x8f, 0x3b, + 0x0b, 0xdc, 0xee, 0x2d, 0x6d, 0xbb, 0xb7, 0xb4, 0x87, 0xbd, 0xa5, 0x5d, 0xff, 0x0c, 0x42, 0x39, + 0x4f, 0x3d, 0x7b, 0xca, 0x63, 0x5c, 0x9a, 0x33, 0xce, 0xe7, 0x8c, 0xd7, 0xb8, 0x58, 0x42, 0xb9, + 0x59, 0xd2, 0x44, 0xad, 0xa2, 0xd7, 0x54, 0x9b, 0x33, 0x7a, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xeb, + 0xad, 0x69, 0x6f, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_collection.pb.go b/x/nftmngr/types/v093/nft_collection.pb.go new file mode 100644 index 00000000..3d31636d --- /dev/null +++ b/x/nftmngr/types/v093/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_collection.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_733e03d9221bd59d, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v093.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v093/nft_collection.proto", fileDescriptor_733e03d9221bd59d) } + +var fileDescriptor_733e03d9221bd59d = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x34, 0xd7, 0x88, 0xbb, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_data.pb.go b/x/nftmngr/types/v093/nft_data.pb.go new file mode 100644 index 00000000..110ef17d --- /dev/null +++ b/x/nftmngr/types/v093/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_data.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8b31fb88afed82e5, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v093.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_8b31fb88afed82e5, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v093.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v093.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v093/nft_data.proto", fileDescriptor_8b31fb88afed82e5) } + +var fileDescriptor_8b31fb88afed82e5 = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0x75, 0x17, 0x24, 0x2e, 0x85, 0x4e, 0x28, 0x12, 0xca, 0xa4, 0x74, 0x70, 0xe0, + 0x62, 0xb9, 0x89, 0x93, 0x58, 0x23, 0x76, 0xe5, 0x3c, 0xd9, 0xcb, 0xb7, 0xe0, 0x63, 0x71, 0xdc, + 0x91, 0x23, 0x6a, 0x3f, 0x07, 0x12, 0x8a, 0x9d, 0x06, 0x28, 0x07, 0x90, 0x76, 0x4b, 0x7e, 0xcf, + 0xff, 0xff, 0xbc, 0xf9, 0x41, 0x07, 0x22, 0x85, 0x42, 0x64, 0xca, 0xbf, 0x7c, 0xf9, 0x6a, 0xec, + 0x8b, 0x14, 0x48, 0x42, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x43, 0xc8, 0x59, 0xc9, 0xaf, 0x05, + 0x83, 0x2b, 0xa9, 0x2e, 0xbc, 0xfa, 0x33, 0x05, 0xaf, 0x71, 0x78, 0xb5, 0xe3, 0xc9, 0xd1, 0x5f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x02, 0x46, 0x2e, 0xe9, 0xe7, 0x8a, 0x99, 0x54, 0xcf, 0x7e, 0x74, + 0x51, 0x2f, 0x4c, 0x61, 0x4a, 0x81, 0xe2, 0x23, 0xf4, 0xb0, 0x16, 0x96, 0x71, 0xce, 0x0a, 0x4a, + 0x62, 0x99, 0x30, 0xc7, 0x1a, 0x5a, 0xa3, 0x7e, 0xb4, 0x2b, 0x52, 0x98, 0x69, 0xfa, 0x56, 0x26, + 0x0c, 0x3f, 0x46, 0xdb, 0x20, 0x2f, 0x98, 0x20, 0x3c, 0x71, 0xee, 0x69, 0x41, 0x4f, 0xff, 0x07, + 0x09, 0x7e, 0x8a, 0x06, 0x26, 0x24, 0xaf, 0x04, 0x53, 0x4e, 0x57, 0x47, 0x91, 0x46, 0x67, 0x35, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x49, 0x14, 0x2b, 0x4b, 0x02, 0x37, 0x0b, 0xe6, 0xdc, 0x1f, + 0x5a, 0xa3, 0xbd, 0xe3, 0xb1, 0xf7, 0xcf, 0xb9, 0x3c, 0x9d, 0x65, 0x62, 0xbc, 0xe7, 0x37, 0x0b, + 0x16, 0xd9, 0x72, 0x83, 0xe0, 0x43, 0xb4, 0x23, 0x15, 0xcf, 0xb8, 0x20, 0xbc, 0xa0, 0x19, 0x73, + 0x1e, 0xe8, 0x26, 0x06, 0x86, 0x05, 0x35, 0xc2, 0xcf, 0xd1, 0xae, 0x14, 0x71, 0x4e, 0x5b, 0xcd, + 0x96, 0xd6, 0xec, 0x34, 0xd0, 0x88, 0x0e, 0x50, 0xdf, 0xcc, 0x52, 0x29, 0xee, 0xf4, 0xb4, 0xc0, + 0xcc, 0xfd, 0x41, 0x71, 0x4c, 0xd1, 0x7e, 0x53, 0xa4, 0xdd, 0x6b, 0xe9, 0x6c, 0x0f, 0xbb, 0xa3, + 0xc1, 0xf1, 0xc9, 0x7f, 0x8c, 0x11, 0xa6, 0x30, 0x59, 0xfb, 0x3e, 0xd6, 0xcf, 0x11, 0xd9, 0x26, + 0x5d, 0x4b, 0x4b, 0x1c, 0x23, 0xbc, 0x6e, 0xf2, 0xb7, 0x1a, 0xfd, 0x3b, 0xd4, 0xd8, 0x6f, 0xf2, + 0xfd, 0x2a, 0xf2, 0xe2, 0x35, 0xb2, 0x37, 0x57, 0x8a, 0x31, 0xda, 0x3b, 0x8b, 0x82, 0x77, 0x41, + 0x48, 0x26, 0xd3, 0x69, 0x74, 0x3a, 0x9b, 0xd9, 0x1d, 0xfc, 0x08, 0xd9, 0x41, 0x78, 0x7e, 0x1a, + 0x85, 0x93, 0xf7, 0x2d, 0xb5, 0xde, 0x84, 0x5f, 0x97, 0xae, 0x75, 0xbb, 0x74, 0xad, 0xef, 0x4b, + 0xd7, 0xfa, 0xb2, 0x72, 0x3b, 0xb7, 0x2b, 0xb7, 0xf3, 0x6d, 0xe5, 0x76, 0x3e, 0x9d, 0x64, 0x1c, + 0xf2, 0x6a, 0xee, 0xc5, 0xb2, 0xf0, 0xff, 0x68, 0xd5, 0x37, 0xad, 0xfa, 0xd7, 0xfe, 0xfa, 0x42, + 0xeb, 0x0b, 0x28, 0xf5, 0x9d, 0xce, 0xb7, 0xf4, 0x51, 0x8e, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x14, 0xf6, 0xa1, 0x42, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_fee_balance.pb.go b/x/nftmngr/types/v093/nft_fee_balance.pb.go new file mode 100644 index 00000000..bab7db15 --- /dev/null +++ b/x/nftmngr/types/v093/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_fee_balance.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_ce45c67cfe58e115, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v093.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v093/nft_fee_balance.proto", fileDescriptor_ce45c67cfe58e115) +} + +var fileDescriptor_ce45c67cfe58e115 = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0x06, + 0xbc, 0x4b, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_fee_config.pb.go b/x/nftmngr/types/v093/nft_fee_config.pb.go new file mode 100644 index 00000000..532768fb --- /dev/null +++ b/x/nftmngr/types/v093/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_fee_config.proto + +package v093 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3cc311c99e97f518, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v093.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_3cc311c99e97f518, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_3cc311c99e97f518, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_3cc311c99e97f518, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v093.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v093.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v093.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v093.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v093/nft_fee_config.proto", fileDescriptor_3cc311c99e97f518) } + +var fileDescriptor_3cc311c99e97f518 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0x02, 0x1c, 0x46, 0x07, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_schema.pb.go b/x/nftmngr/types/v093/nft_schema.pb.go new file mode 100644 index 00000000..9227f92a --- /dev/null +++ b/x/nftmngr/types/v093/nft_schema.pb.go @@ -0,0 +1,1285 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_schema.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_9987fada6baf1fca, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaINPUT struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + SystemActioners []string `protobuf:"bytes,5,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,6,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,7,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,8,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,9,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } +func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaINPUT) ProtoMessage() {} +func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { + return fileDescriptor_9987fada6baf1fca, []int{1} +} +func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaINPUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaINPUT.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 *NFTSchemaINPUT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaINPUT.Merge(m, src) +} +func (m *NFTSchemaINPUT) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaINPUT) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaINPUT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaINPUT proto.InternalMessageInfo + +func (m *NFTSchemaINPUT) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaINPUT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaINPUT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaINPUT) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaINPUT) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaINPUT) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaINPUT) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaINPUT) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaINPUT) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v093.NFTSchema") + proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.v093.NFTSchemaINPUT") +} + +func init() { proto.RegisterFile("nftmngr/v093/nft_schema.proto", fileDescriptor_9987fada6baf1fca) } + +var fileDescriptor_9987fada6baf1fca = []byte{ + // 411 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xbf, 0xae, 0xd3, 0x30, + 0x14, 0xc6, 0x9b, 0xdb, 0xdb, 0xde, 0xc6, 0x41, 0xfc, 0xb1, 0x18, 0xac, 0x2b, 0x61, 0x85, 0x3b, + 0x85, 0xe1, 0x3a, 0x88, 0xb2, 0x30, 0x16, 0x10, 0x12, 0x4b, 0x80, 0x50, 0x18, 0x58, 0x22, 0x37, + 0x71, 0x1a, 0x0b, 0xc5, 0xae, 0x6c, 0x97, 0xb6, 0xbc, 0x03, 0x12, 0x8f, 0xc5, 0xd8, 0x91, 0x05, + 0x09, 0xb5, 0x2f, 0x82, 0xe2, 0xb4, 0x25, 0x41, 0x42, 0x74, 0x28, 0xdb, 0xc9, 0xef, 0xe4, 0x7c, + 0x3e, 0xe7, 0x7c, 0x3a, 0xe0, 0x9e, 0xc8, 0x4d, 0x29, 0xa6, 0x2a, 0xfc, 0xf4, 0xf0, 0xc9, 0x30, + 0x14, 0xb9, 0x49, 0x74, 0x5a, 0xb0, 0x92, 0x92, 0x99, 0x92, 0x46, 0xc2, 0xfb, 0xa6, 0x60, 0x9a, + 0x2f, 0x05, 0x33, 0x0b, 0xa9, 0x3e, 0x92, 0x2a, 0xcc, 0x0d, 0xd9, 0xd5, 0x90, 0xaa, 0xe6, 0xd2, + 0x6f, 0x29, 0x48, 0x91, 0xa4, 0x05, 0xe5, 0x22, 0xc9, 0xa8, 0xd9, 0x89, 0x5c, 0xe2, 0xf6, 0x1f, + 0x8a, 0x4f, 0x5b, 0xf9, 0xab, 0x1f, 0x67, 0xc0, 0x8d, 0x5e, 0x8c, 0xdf, 0xda, 0x87, 0x21, 0x04, + 0xe7, 0xa9, 0xcc, 0x18, 0x72, 0x7c, 0x27, 0x70, 0x63, 0x1b, 0x57, 0x4c, 0xd0, 0x92, 0xa1, 0xb3, + 0x9a, 0x55, 0x31, 0xbc, 0x0b, 0x7a, 0x72, 0x21, 0x98, 0x42, 0x5d, 0x0b, 0xeb, 0x0f, 0xe8, 0x03, + 0x2f, 0x63, 0x3a, 0x55, 0x7c, 0x66, 0xb8, 0x14, 0xe8, 0xdc, 0xe6, 0x9a, 0x08, 0x46, 0xc0, 0x6b, + 0xb4, 0x80, 0x7a, 0xbe, 0x13, 0x78, 0x8f, 0xae, 0xc9, 0x3f, 0x07, 0x25, 0xaf, 0x6c, 0xd5, 0x73, + 0x6a, 0x68, 0x0c, 0xe4, 0x21, 0x86, 0x6f, 0xc0, 0x0d, 0x29, 0x7e, 0xcf, 0x8c, 0xfa, 0x56, 0x90, + 0x1c, 0x23, 0x28, 0x9e, 0x55, 0x65, 0x56, 0xd1, 0xdb, 0x69, 0x58, 0x49, 0x0c, 0x00, 0xd7, 0xef, + 0x99, 0xe2, 0x39, 0x67, 0x19, 0xba, 0xf0, 0x9d, 0x60, 0x10, 0x37, 0x08, 0xbc, 0x06, 0xb0, 0xe4, + 0xc2, 0x24, 0x74, 0x6e, 0x0a, 0xa9, 0xf8, 0x67, 0x6a, 0x67, 0x1d, 0xd8, 0x59, 0xef, 0x54, 0x99, + 0x51, 0x33, 0x71, 0xf5, 0xa5, 0x0b, 0x6e, 0x1e, 0xf6, 0xfb, 0x32, 0x7a, 0xfd, 0x6e, 0xfc, 0xdf, + 0x97, 0xfc, 0x00, 0xdc, 0xd6, 0x2b, 0x6d, 0x58, 0x99, 0xd0, 0xb4, 0x02, 0x4c, 0x69, 0xd4, 0xf3, + 0xbb, 0x81, 0x1b, 0xdf, 0xaa, 0xf9, 0x68, 0x8f, 0xff, 0xf4, 0xa3, 0x7f, 0x6a, 0x3f, 0x2e, 0x4e, + 0xed, 0xc7, 0xe0, 0x48, 0x3f, 0xdc, 0xbf, 0xf8, 0xf1, 0x34, 0xfa, 0xb6, 0xc1, 0xce, 0x7a, 0x83, + 0x9d, 0x9f, 0x1b, 0xec, 0x7c, 0xdd, 0xe2, 0xce, 0x7a, 0x8b, 0x3b, 0xdf, 0xb7, 0xb8, 0xf3, 0xe1, + 0xf1, 0x94, 0x9b, 0x62, 0x3e, 0x21, 0xa9, 0x2c, 0xc3, 0x56, 0xbf, 0x61, 0xdd, 0x6f, 0xb8, 0x0c, + 0xf7, 0xb7, 0x64, 0x56, 0x33, 0xa6, 0xed, 0x45, 0x4d, 0xfa, 0xf6, 0x8c, 0x86, 0xbf, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x38, 0x19, 0x44, 0x6a, 0xcc, 0x03, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaINPUT) 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 *NFTSchemaINPUT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x4a + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaINPUT) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaINPUT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/nft_schema_by_contract.pb.go b/x/nftmngr/types/v093/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..2b99a33b --- /dev/null +++ b/x/nftmngr/types/v093/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/nft_schema_by_contract.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_c0f111adde11f1fa, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v093.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v093/nft_schema_by_contract.proto", fileDescriptor_c0f111adde11f1fa) +} + +var fileDescriptor_c0f111adde11f1fa = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x47, 0xc3, 0xaa, 0x65, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/on_chain_data.pb.go b/x/nftmngr/types/v093/on_chain_data.pb.go new file mode 100644 index 00000000..add286ad --- /dev/null +++ b/x/nftmngr/types/v093/on_chain_data.pb.go @@ -0,0 +1,735 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/on_chain_data.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_f12ed9837e8d314a, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + NftAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,2,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,4,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_f12ed9837e8d314a, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v093.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v093.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v093/on_chain_data.proto", fileDescriptor_f12ed9837e8d314a) } + +var fileDescriptor_f12ed9837e8d314a = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcd, 0x4e, 0xea, 0x40, + 0x14, 0xc7, 0x19, 0xb8, 0xe1, 0xde, 0x3b, 0xf8, 0x95, 0xae, 0x2a, 0x8b, 0x5a, 0x58, 0x28, 0x2e, + 0x9c, 0x1a, 0x31, 0x26, 0x2e, 0x15, 0x74, 0x89, 0xa6, 0x26, 0x2e, 0x4c, 0x4c, 0x33, 0xc0, 0x14, + 0x26, 0xd0, 0x19, 0xd2, 0x39, 0x45, 0x7c, 0x0b, 0x1f, 0xcb, 0x25, 0x4b, 0x13, 0x37, 0x06, 0x5e, + 0xc4, 0x74, 0x5a, 0x3e, 0xba, 0x92, 0xc4, 0xdd, 0xe4, 0xcc, 0xf9, 0xfd, 0xfe, 0x99, 0x33, 0x07, + 0xdb, 0xc2, 0x87, 0x40, 0xf4, 0x42, 0x67, 0x7c, 0x7a, 0x59, 0x77, 0xa4, 0xf0, 0x3a, 0x7d, 0xca, + 0x85, 0xd7, 0xa5, 0x40, 0xc9, 0x28, 0x94, 0x20, 0x8d, 0x0a, 0xf4, 0x99, 0xe2, 0x13, 0xc1, 0xe0, + 0x45, 0x86, 0x03, 0x12, 0x1f, 0x7d, 0x20, 0x29, 0x46, 0x62, 0xac, 0x7c, 0x94, 0x91, 0x50, 0x80, + 0x90, 0xb7, 0x23, 0x60, 0x5e, 0x97, 0xf9, 0x5c, 0x70, 0xe0, 0x52, 0x24, 0xae, 0xf2, 0x7e, 0xb6, + 0xb1, 0xb3, 0x76, 0x75, 0x98, 0xb9, 0x12, 0x3e, 0x78, 0x2b, 0xcf, 0x98, 0x0e, 0x23, 0x96, 0xf4, + 0x55, 0xef, 0x31, 0xbe, 0x1d, 0xd2, 0xde, 0x03, 0x50, 0x88, 0x94, 0x71, 0x80, 0x4b, 0x4a, 0x9f, + 0x3c, 0x41, 0x03, 0x66, 0x22, 0x1b, 0xd5, 0xfe, 0xbb, 0x38, 0x29, 0xb5, 0x68, 0xc0, 0x8c, 0x0a, + 0xde, 0x4a, 0x1b, 0xb4, 0xc4, 0xcc, 0xdb, 0xa8, 0xf6, 0xcf, 0x4d, 0xa1, 0xc7, 0xb8, 0x54, 0xfd, + 0xcc, 0xe3, 0xd2, 0x9d, 0x68, 0xc4, 0xef, 0x6e, 0x52, 0xa0, 0xc6, 0x33, 0xde, 0xc9, 0xc4, 0x2b, + 0x13, 0xd9, 0x85, 0x5a, 0xe9, 0xec, 0x82, 0xfc, 0x38, 0x09, 0x72, 0xb5, 0x80, 0x9a, 0xcb, 0xa7, + 0xbb, 0xdb, 0xc2, 0x87, 0x65, 0x5d, 0x19, 0x14, 0xef, 0x81, 0x1c, 0x30, 0xb1, 0x1e, 0x90, 0xff, + 0x55, 0xc0, 0xae, 0xf6, 0xad, 0x45, 0x34, 0xf0, 0xdf, 0x64, 0xb6, 0xca, 0x2c, 0x68, 0xf3, 0xf1, + 0x26, 0x66, 0x4d, 0xb8, 0x0b, 0xd2, 0xb8, 0xc1, 0xc5, 0x64, 0x4a, 0xe6, 0x1f, 0xed, 0x38, 0xd9, + 0xc0, 0xb1, 0xfa, 0x19, 0x37, 0x85, 0xaf, 0x5b, 0xef, 0x33, 0x0b, 0x4d, 0x67, 0x16, 0xfa, 0x9a, + 0x59, 0xe8, 0x6d, 0x6e, 0xe5, 0xa6, 0x73, 0x2b, 0xf7, 0x31, 0xb7, 0x72, 0x4f, 0xe7, 0x3d, 0x0e, + 0xfd, 0xa8, 0x4d, 0x3a, 0x32, 0x70, 0x32, 0x6a, 0x27, 0x51, 0x3b, 0x13, 0x67, 0xb1, 0x13, 0xf0, + 0x3a, 0x62, 0x4a, 0x6f, 0x46, 0xbb, 0xa8, 0xd7, 0xa0, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xae, + 0xd3, 0x0a, 0xac, 0xb9, 0x02, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/opensea_display_option.pb.go b/x/nftmngr/types/v093/opensea_display_option.pb.go new file mode 100644 index 00000000..c75eb871 --- /dev/null +++ b/x/nftmngr/types/v093/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/opensea_display_option.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_6655fb34470168e0, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v093.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v093/opensea_display_option.proto", fileDescriptor_6655fb34470168e0) +} + +var fileDescriptor_6655fb34470168e0 = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x84, 0x55, 0xec, 0x14, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/organization.pb.go b/x/nftmngr/types/v093/organization.pb.go new file mode 100644 index 00000000..91406f75 --- /dev/null +++ b/x/nftmngr/types/v093/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/organization.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_a30c92e023081699, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v093.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v093/organization.proto", fileDescriptor_a30c92e023081699) } + +var fileDescriptor_a30c92e023081699 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd6, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0x1b, 0xd7, 0x92, 0xd5, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/origin_data.pb.go b/x/nftmngr/types/v093/origin_data.pb.go new file mode 100644 index 00000000..4186ca01 --- /dev/null +++ b/x/nftmngr/types/v093/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/origin_data.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_88b5ea7279bbd2ce, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_88b5ea7279bbd2ce, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v093.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v093.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_88b5ea7279bbd2ce, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v093.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v093.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v093.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v093/origin_data.proto", fileDescriptor_88b5ea7279bbd2ce) } + +var fileDescriptor_88b5ea7279bbd2ce = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0x28, 0x54, 0xe2, 0x98, 0xb4, 0x05, 0x22, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x62, 0x6d, + 0xe2, 0x8d, 0x33, 0x02, 0xef, 0x56, 0xe3, 0x71, 0x28, 0x7f, 0xc1, 0x67, 0x71, 0xec, 0x91, 0x23, + 0x4a, 0xbe, 0x80, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0x25, 0x48, 0xc0, 0x6d, 0xf5, 0xf6, 0xbd, 0x37, + 0xef, 0x8d, 0x06, 0x3c, 0x3d, 0xe6, 0x54, 0x27, 0x14, 0x4c, 0x1f, 0x3f, 0x3f, 0x0c, 0x0c, 0x61, + 0x82, 0x3a, 0x8a, 0x25, 0x4b, 0xff, 0x9c, 0x0c, 0x1b, 0xb1, 0xc7, 0x13, 0x95, 0xe1, 0x85, 0x56, + 0xfc, 0xc9, 0xd0, 0x07, 0x7f, 0xf1, 0x1c, 0xb3, 0x5f, 0x8a, 0xfc, 0x85, 0xe8, 0xde, 0xfe, 0x15, + 0x0b, 0xc9, 0x4c, 0x38, 0xcc, 0x59, 0x45, 0xb1, 0x1a, 0xa3, 0x46, 0x46, 0xa3, 0x0b, 0xaf, 0xfb, + 0x3f, 0xea, 0x00, 0x03, 0x3b, 0xe1, 0x44, 0xb2, 0x14, 0x7b, 0x70, 0xb3, 0x9c, 0x37, 0x9a, 0x48, + 0xd4, 0xae, 0xd3, 0x72, 0xda, 0x1b, 0xe1, 0x66, 0x81, 0x1d, 0x2f, 0x20, 0x71, 0x04, 0x77, 0x2b, + 0x8a, 0xd1, 0x4c, 0x72, 0xc4, 0x91, 0x8c, 0x63, 0x52, 0x59, 0xe6, 0x5e, 0xb3, 0xec, 0x3b, 0x25, + 0xbb, 0xfc, 0xed, 0x14, 0x9f, 0xe2, 0x01, 0x6c, 0x97, 0xba, 0xa1, 0xcc, 0x54, 0x94, 0x13, 0xba, + 0x75, 0xcb, 0xbf, 0x55, 0xc0, 0x5d, 0x99, 0xa9, 0x33, 0x42, 0x81, 0xb0, 0xfb, 0x2b, 0xaf, 0x99, + 0x2a, 0x22, 0x8c, 0x51, 0x27, 0xee, 0x5a, 0xcb, 0x69, 0x6f, 0x3d, 0x39, 0xf2, 0xff, 0x5a, 0xde, + 0xef, 0x54, 0xf2, 0xc1, 0x52, 0x1d, 0xee, 0xc8, 0x55, 0x50, 0xec, 0xc3, 0x76, 0xaa, 0x58, 0x2e, + 0x56, 0x1b, 0x8d, 0x0d, 0xa5, 0x92, 0xdd, 0x75, 0x1b, 0x69, 0xab, 0x82, 0x5f, 0x58, 0x54, 0x8c, + 0xe0, 0x76, 0x99, 0x7d, 0x69, 0x93, 0xb9, 0x8d, 0x56, 0xbd, 0xbd, 0xf9, 0x7f, 0x81, 0x4e, 0x96, + 0xeb, 0x0f, 0x9b, 0x85, 0xe1, 0xf2, 0x2b, 0x13, 0x09, 0xec, 0xe6, 0x84, 0x11, 0x29, 0x26, 0x54, + 0x53, 0xf9, 0x31, 0x4a, 0x15, 0x4f, 0x4c, 0xec, 0x5e, 0xb7, 0xc5, 0x9f, 0xfd, 0xc3, 0x9c, 0xb3, + 0xb0, 0x17, 0x56, 0xea, 0x37, 0x56, 0x1c, 0x8a, 0x9c, 0xf0, 0x37, 0xec, 0xe0, 0x11, 0xec, 0xfc, + 0x61, 0x45, 0x02, 0xa0, 0x31, 0x08, 0x7b, 0x2f, 0x7b, 0xfd, 0x66, 0x4d, 0x6c, 0xc0, 0xfa, 0xf1, + 0xab, 0x4e, 0xaf, 0xdf, 0x74, 0x0e, 0x1e, 0x82, 0x58, 0xf5, 0x15, 0x37, 0x60, 0xad, 0xdb, 0x79, + 0x7b, 0x5a, 0x50, 0xdf, 0x0d, 0x5e, 0x9f, 0xf6, 0x9b, 0x4e, 0xb7, 0xff, 0x75, 0xe6, 0x39, 0x97, + 0x33, 0xcf, 0xf9, 0x3e, 0xf3, 0x9c, 0x2f, 0x73, 0xaf, 0x76, 0x39, 0xf7, 0x6a, 0xdf, 0xe6, 0x5e, + 0xed, 0xfd, 0xd3, 0x04, 0x79, 0x92, 0x0f, 0xfd, 0x91, 0x49, 0x83, 0x2b, 0x3d, 0x82, 0xa2, 0x47, + 0x70, 0x11, 0x54, 0x17, 0xcb, 0x9f, 0xcf, 0x55, 0x66, 0xef, 0x76, 0xd8, 0xb0, 0x37, 0x7a, 0xf8, + 0x33, 0x00, 0x00, 0xff, 0xff, 0x20, 0x50, 0x68, 0x4f, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v093/schema_attribute.pb.go b/x/nftmngr/types/v093/schema_attribute.pb.go new file mode 100644 index 00000000..8ee98898 --- /dev/null +++ b/x/nftmngr/types/v093/schema_attribute.pb.go @@ -0,0 +1,1025 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v093/schema_attribute.proto + +package v093 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type SchemaAttribute struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,4,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } +func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } +func (*SchemaAttribute) ProtoMessage() {} +func (*SchemaAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_e324e761b56e58ec, []int{0} +} +func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttribute.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 *SchemaAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttribute.Merge(m, src) +} +func (m *SchemaAttribute) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttribute proto.InternalMessageInfo + +func (m *SchemaAttribute) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttribute) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttribute) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttribute) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttribute) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeValue struct { + // Types that are valid to be assigned to Value: + // *SchemaAttributeValue_NumberAttributeValue + // *SchemaAttributeValue_StringAttributeValue + // *SchemaAttributeValue_BooleanAttributeValue + // *SchemaAttributeValue_FloatAttributeValue + Value isSchemaAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } +func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeValue) ProtoMessage() {} +func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_e324e761b56e58ec, []int{1} +} +func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeValue.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 *SchemaAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeValue.Merge(m, src) +} +func (m *SchemaAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeValue proto.InternalMessageInfo + +type isSchemaAttributeValue_Value interface { + isSchemaAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type SchemaAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type SchemaAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type SchemaAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type SchemaAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*SchemaAttributeValue_NumberAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_StringAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_BooleanAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_FloatAttributeValue) isSchemaAttributeValue_Value() {} + +func (m *SchemaAttributeValue) GetValue() isSchemaAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SchemaAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SchemaAttributeValue_NumberAttributeValue)(nil), + (*SchemaAttributeValue_StringAttributeValue)(nil), + (*SchemaAttributeValue_BooleanAttributeValue)(nil), + (*SchemaAttributeValue_FloatAttributeValue)(nil), + } +} + +func init() { + proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.v093.SchemaAttribute") + proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v093.SchemaAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v093/schema_attribute.proto", fileDescriptor_e324e761b56e58ec) +} + +var fileDescriptor_e324e761b56e58ec = []byte{ + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0xcf, 0x93, 0x40, + 0x10, 0xc6, 0xe1, 0xed, 0xfb, 0xfa, 0xda, 0xd5, 0xc6, 0x64, 0x6d, 0x95, 0xd4, 0x84, 0xb4, 0xd5, + 0x68, 0x4f, 0x60, 0xac, 0xf1, 0xcf, 0xd1, 0x9a, 0x18, 0x4f, 0x3d, 0x54, 0xe3, 0xc1, 0x98, 0x90, + 0x05, 0x96, 0x76, 0x23, 0xec, 0x92, 0x65, 0xa8, 0xed, 0xb7, 0xf0, 0x63, 0x79, 0xec, 0xd1, 0x63, + 0x53, 0xbe, 0x88, 0x61, 0xa1, 0x69, 0x28, 0x24, 0x72, 0xdb, 0x7d, 0x66, 0xe6, 0xf9, 0x0d, 0xc3, + 0x0e, 0x7a, 0xca, 0x03, 0x88, 0xf8, 0x4a, 0xda, 0x9b, 0x97, 0xef, 0x67, 0x76, 0xe2, 0xad, 0x69, + 0x44, 0x1c, 0x02, 0x20, 0x99, 0x9b, 0x02, 0xb5, 0x62, 0x29, 0x40, 0xe0, 0x31, 0xac, 0x69, 0xc2, + 0xb6, 0x9c, 0xc2, 0x2f, 0x21, 0x7f, 0x5a, 0xf9, 0x31, 0x00, 0xab, 0xac, 0xb4, 0xf2, 0xca, 0xe1, + 0xb8, 0xe2, 0xe3, 0xb3, 0x24, 0x0e, 0xc9, 0xce, 0x11, 0x31, 0x30, 0xc1, 0x0b, 0x97, 0xe1, 0xf3, + 0x4a, 0x0a, 0x0f, 0xe0, 0xcc, 0x71, 0x36, 0x24, 0x4c, 0x4b, 0xda, 0xf0, 0x45, 0x25, 0xef, 0x9c, + 0xe3, 0xd3, 0x80, 0x71, 0x76, 0x36, 0x9c, 0x1c, 0x74, 0xf4, 0xe0, 0x8b, 0xea, 0xf8, 0xc3, 0x29, + 0x09, 0x3f, 0x43, 0x3d, 0x1e, 0x40, 0xa1, 0x7e, 0x14, 0x3e, 0x35, 0xf4, 0x91, 0x3e, 0xed, 0x2e, + 0xab, 0x22, 0xc6, 0xe8, 0x9a, 0x93, 0x88, 0x1a, 0x57, 0x2a, 0xa8, 0xce, 0xf8, 0x09, 0xea, 0xfa, + 0x04, 0x88, 0x03, 0xbb, 0x98, 0x1a, 0x1d, 0x15, 0xb8, 0x9b, 0x0b, 0x5f, 0x77, 0x31, 0xc5, 0x3f, + 0x50, 0xcf, 0x4b, 0xa5, 0xa4, 0x1c, 0x8a, 0x56, 0x8d, 0xeb, 0x91, 0x3e, 0xbd, 0xf7, 0xea, 0xad, + 0xf5, 0xdf, 0xc9, 0x58, 0x17, 0x1d, 0x7e, 0xcb, 0xcb, 0x97, 0xf7, 0x4b, 0x37, 0x75, 0xc3, 0x06, + 0xba, 0xf5, 0x24, 0x25, 0x20, 0xa4, 0x71, 0xa3, 0xc0, 0xa7, 0xeb, 0x24, 0xeb, 0xa0, 0x7e, 0x93, + 0x01, 0x16, 0xe8, 0x11, 0x4f, 0x23, 0x97, 0xca, 0xcb, 0x21, 0xaa, 0x0f, 0x6e, 0xd7, 0xd9, 0x42, + 0x19, 0x54, 0x8d, 0x3f, 0x6b, 0xcb, 0x3e, 0x6f, 0xd0, 0x73, 0x60, 0x02, 0x92, 0xf1, 0x55, 0x0d, + 0x78, 0xd5, 0x7e, 0x14, 0xca, 0xa0, 0x0e, 0x4c, 0x1a, 0x74, 0x2c, 0xd1, 0x63, 0x57, 0x88, 0x90, + 0x12, 0x5e, 0x23, 0x76, 0x14, 0xf1, 0x5d, 0x0b, 0xe2, 0xbc, 0x70, 0xa8, 0x21, 0x07, 0x6e, 0x53, + 0x00, 0x87, 0x68, 0x10, 0x84, 0x82, 0xd4, 0x5e, 0x66, 0xf9, 0xbb, 0xdf, 0xb4, 0x20, 0x7e, 0xca, + 0xeb, 0x6b, 0xbc, 0x87, 0x41, 0x5d, 0x9e, 0xdf, 0xa2, 0x1b, 0xe5, 0x3e, 0x5f, 0xfc, 0x39, 0x9a, + 0xfa, 0xfe, 0x68, 0xea, 0x87, 0xa3, 0xa9, 0xff, 0xce, 0x4c, 0x6d, 0x9f, 0x99, 0xda, 0xdf, 0xcc, + 0xd4, 0xbe, 0xbf, 0x5e, 0x31, 0x58, 0xa7, 0xae, 0xe5, 0x89, 0xc8, 0xae, 0xb0, 0xed, 0x82, 0x6d, + 0x6f, 0xed, 0xd3, 0xb6, 0xe4, 0xef, 0x36, 0x51, 0x3b, 0xe3, 0xde, 0x51, 0xfb, 0x31, 0xfb, 0x17, + 0x00, 0x00, 0xff, 0xff, 0x3b, 0x56, 0x70, 0x47, 0xdd, 0x03, 0x00, 0x00, +} + +func (m *SchemaAttribute) 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 *SchemaAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x2a + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue) 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 *SchemaAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func encodeVarintSchemaAttribute(dAtA []byte, offset int, v uint64) int { + offset -= sovSchemaAttribute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SchemaAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *SchemaAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func sovSchemaAttribute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSchemaAttribute(x uint64) (n int) { + return sovSchemaAttribute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SchemaAttribute) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeValue) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSchemaAttribute(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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrInvalidLengthSchemaAttribute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchemaAttribute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchemaAttribute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSchemaAttribute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchemaAttribute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchemaAttribute = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/action.pb.go b/x/nftmngr/types/v094/action.pb.go new file mode 100644 index 00000000..bed087ce --- /dev/null +++ b/x/nftmngr/types/v094/action.pb.go @@ -0,0 +1,1021 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/action.proto + +package v094 + +import ( + fmt "fmt" + _ "github.com/gogo/protobuf/gogoproto" + proto "github.com/gogo/protobuf/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 + +type AllowedActioner int32 + +const ( + AllowedActioner_ALLOWED_ACTIONER_ALL AllowedActioner = 0 + AllowedActioner_ALLOWED_ACTIONER_SYSTEM_ONLY AllowedActioner = 1 + AllowedActioner_ALLOWED_ACTIONER_USER_ONLY AllowedActioner = 2 +) + +var AllowedActioner_name = map[int32]string{ + 0: "ALLOWED_ACTIONER_ALL", + 1: "ALLOWED_ACTIONER_SYSTEM_ONLY", + 2: "ALLOWED_ACTIONER_USER_ONLY", +} + +var AllowedActioner_value = map[string]int32{ + "ALLOWED_ACTIONER_ALL": 0, + "ALLOWED_ACTIONER_SYSTEM_ONLY": 1, + "ALLOWED_ACTIONER_USER_ONLY": 2, +} + +func (x AllowedActioner) String() string { + return proto.EnumName(AllowedActioner_name, int32(x)) +} + +func (AllowedActioner) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_b84f8207827bae6c, []int{0} +} + +type ActionParams struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` +} + +func (m *ActionParams) Reset() { *m = ActionParams{} } +func (m *ActionParams) String() string { return proto.CompactTextString(m) } +func (*ActionParams) ProtoMessage() {} +func (*ActionParams) Descriptor() ([]byte, []int) { + return fileDescriptor_b84f8207827bae6c, []int{0} +} +func (m *ActionParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionParams.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 *ActionParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionParams.Merge(m, src) +} +func (m *ActionParams) XXX_Size() int { + return m.Size() +} +func (m *ActionParams) XXX_DiscardUnknown() { + xxx_messageInfo_ActionParams.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionParams proto.InternalMessageInfo + +func (m *ActionParams) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionParams) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *ActionParams) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *ActionParams) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *ActionParams) GetDefaultValue() string { + if m != nil { + return m.DefaultValue + } + return "" +} + +type Action struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` + Disable bool `protobuf:"varint,3,opt,name=disable,proto3" json:"disable,omitempty"` + When string `protobuf:"bytes,4,opt,name=when,proto3" json:"when,omitempty"` + Then []string `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` + AllowedActioner AllowedActioner `protobuf:"varint,6,opt,name=allowed_actioner,json=allowedActioner,proto3,enum=thesixnetwork.sixnft.nftmngr.v094.AllowedActioner" json:"allowed_actioner,omitempty"` + Params []*ActionParams `protobuf:"bytes,7,rep,name=params,proto3" json:"params,omitempty"` +} + +func (m *Action) Reset() { *m = Action{} } +func (m *Action) String() string { return proto.CompactTextString(m) } +func (*Action) ProtoMessage() {} +func (*Action) Descriptor() ([]byte, []int) { + return fileDescriptor_b84f8207827bae6c, []int{1} +} +func (m *Action) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Action.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 *Action) XXX_Merge(src proto.Message) { + xxx_messageInfo_Action.Merge(m, src) +} +func (m *Action) XXX_Size() int { + return m.Size() +} +func (m *Action) XXX_DiscardUnknown() { + xxx_messageInfo_Action.DiscardUnknown(m) +} + +var xxx_messageInfo_Action proto.InternalMessageInfo + +func (m *Action) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Action) GetDesc() string { + if m != nil { + return m.Desc + } + return "" +} + +func (m *Action) GetDisable() bool { + if m != nil { + return m.Disable + } + return false +} + +func (m *Action) GetWhen() string { + if m != nil { + return m.When + } + return "" +} + +func (m *Action) GetThen() []string { + if m != nil { + return m.Then + } + return nil +} + +func (m *Action) GetAllowedActioner() AllowedActioner { + if m != nil { + return m.AllowedActioner + } + return AllowedActioner_ALLOWED_ACTIONER_ALL +} + +func (m *Action) GetParams() []*ActionParams { + if m != nil { + return m.Params + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v094.AllowedActioner", AllowedActioner_name, AllowedActioner_value) + proto.RegisterType((*ActionParams)(nil), "thesixnetwork.sixnft.nftmngr.v094.action_params") + proto.RegisterType((*Action)(nil), "thesixnetwork.sixnft.nftmngr.v094.Action") +} + +func init() { proto.RegisterFile("nftmngr/v094/action.proto", fileDescriptor_b84f8207827bae6c) } + +var fileDescriptor_b84f8207827bae6c = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x49, 0x9a, 0x3a, 0x0b, 0xa5, 0xd1, 0xaa, 0x87, 0x25, 0x20, 0x63, 0xca, 0xc5, + 0xe2, 0x60, 0x57, 0xa1, 0x17, 0x8e, 0x2e, 0xf8, 0x80, 0x64, 0x1c, 0xc9, 0x09, 0xa0, 0x72, 0xb1, + 0x36, 0xf6, 0xc6, 0xb1, 0xb0, 0xbd, 0xc6, 0x5e, 0x37, 0xed, 0x5b, 0x70, 0xe1, 0x19, 0x78, 0x95, + 0x1e, 0x7b, 0xe4, 0x84, 0x50, 0xf2, 0x22, 0x68, 0x77, 0x5d, 0xa4, 0xd0, 0x03, 0xbd, 0xfd, 0xfb, + 0xcd, 0x3f, 0xe3, 0x99, 0xf1, 0xc0, 0xc7, 0xc5, 0x92, 0xe7, 0x45, 0x52, 0xd9, 0x17, 0x27, 0xaf, + 0x4f, 0x6d, 0x12, 0xf1, 0x94, 0x15, 0x56, 0x59, 0x31, 0xce, 0xd0, 0x73, 0xbe, 0xa2, 0x75, 0x7a, + 0x59, 0x50, 0xbe, 0x66, 0xd5, 0x17, 0x4b, 0xc8, 0x25, 0xb7, 0x5a, 0xbf, 0x25, 0xfc, 0xe3, 0xa3, + 0x84, 0x25, 0x4c, 0xba, 0x6d, 0xa1, 0x54, 0xe2, 0xf1, 0x77, 0x00, 0x0f, 0x54, 0xa5, 0xb0, 0x24, + 0x15, 0xc9, 0x6b, 0x84, 0x60, 0xbf, 0x20, 0x39, 0xc5, 0xc0, 0x00, 0xe6, 0x30, 0x90, 0x5a, 0xb0, + 0x98, 0xd6, 0x11, 0xee, 0x2a, 0x26, 0x34, 0x7a, 0x02, 0x87, 0x31, 0xe1, 0x24, 0xe4, 0x57, 0x25, + 0xc5, 0x3d, 0x19, 0xd0, 0x04, 0x98, 0x5f, 0x95, 0x14, 0x8d, 0xa1, 0x56, 0xd1, 0xaf, 0x4d, 0x5a, + 0xd1, 0x18, 0xf7, 0x0d, 0x60, 0x6a, 0xc1, 0xdf, 0x37, 0x7a, 0x01, 0x0f, 0x62, 0xba, 0x24, 0x4d, + 0xc6, 0xc3, 0x0b, 0x92, 0x35, 0x14, 0xef, 0xc9, 0xe4, 0x87, 0x2d, 0xfc, 0x28, 0xd8, 0xf1, 0x8f, + 0x2e, 0x1c, 0x38, 0xb2, 0xaf, 0x7b, 0x37, 0x84, 0xe1, 0x7e, 0x9c, 0xd6, 0x64, 0x91, 0xa9, 0x76, + 0xb4, 0xe0, 0xf6, 0x29, 0xdc, 0xeb, 0x15, 0x2d, 0x64, 0x27, 0xc3, 0x40, 0x6a, 0xc1, 0xb8, 0x60, + 0x7b, 0x46, 0x4f, 0x30, 0xa1, 0x51, 0x04, 0x47, 0x24, 0xcb, 0xd8, 0x9a, 0xc6, 0xa1, 0xda, 0x09, + 0xad, 0xf0, 0xc0, 0x00, 0xe6, 0xa3, 0xc9, 0xc4, 0xfa, 0xef, 0x82, 0x2d, 0x47, 0xa5, 0x3a, 0x6d, + 0xe6, 0x59, 0xff, 0xfa, 0xd7, 0x33, 0x10, 0x1c, 0x92, 0x5d, 0x8c, 0x7c, 0x38, 0x50, 0x9b, 0xc6, + 0xfb, 0x46, 0xcf, 0x7c, 0x30, 0x39, 0xb9, 0x47, 0xe9, 0x9d, 0x3f, 0xd4, 0x16, 0x6e, 0xab, 0xbc, + 0xcc, 0xe1, 0xe1, 0x3f, 0x5f, 0x46, 0x18, 0x1e, 0x39, 0x9e, 0x37, 0xfd, 0xe4, 0xbe, 0x0d, 0x9d, + 0x37, 0xf3, 0x77, 0x53, 0xdf, 0x0d, 0x42, 0xc7, 0xf3, 0x46, 0x1d, 0x64, 0xc0, 0xa7, 0x77, 0x22, + 0xb3, 0xf3, 0xd9, 0xdc, 0x7d, 0x1f, 0x4e, 0x7d, 0xef, 0x7c, 0x04, 0x90, 0x0e, 0xc7, 0x77, 0x1c, + 0x1f, 0x66, 0x6e, 0xa0, 0xe2, 0xdd, 0x33, 0xff, 0x7a, 0xa3, 0x83, 0x9b, 0x8d, 0x0e, 0x7e, 0x6f, + 0x74, 0xf0, 0x6d, 0xab, 0x77, 0x6e, 0xb6, 0x7a, 0xe7, 0xe7, 0x56, 0xef, 0x7c, 0x3e, 0x4d, 0x52, + 0xbe, 0x6a, 0x16, 0x56, 0xc4, 0x72, 0x7b, 0x67, 0x24, 0x5b, 0x8d, 0x64, 0x5f, 0xda, 0xb7, 0x07, + 0x2c, 0x6e, 0xa6, 0x96, 0x67, 0xbc, 0x18, 0xc8, 0x3b, 0x7c, 0xf5, 0x27, 0x00, 0x00, 0xff, 0xff, + 0xa0, 0xb9, 0xa7, 0x25, 0xdd, 0x02, 0x00, 0x00, +} + +func (m *ActionParams) 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 *ActionParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DefaultValue) > 0 { + i -= len(m.DefaultValue) + copy(dAtA[i:], m.DefaultValue) + i = encodeVarintAction(dAtA, i, uint64(len(m.DefaultValue))) + i-- + dAtA[i] = 0x2a + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAction(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Action) 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 *Action) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Params) > 0 { + for iNdEx := len(m.Params) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Params[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAction(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.AllowedActioner != 0 { + i = encodeVarintAction(dAtA, i, uint64(m.AllowedActioner)) + i-- + dAtA[i] = 0x30 + } + if len(m.Then) > 0 { + for iNdEx := len(m.Then) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Then[iNdEx]) + copy(dAtA[i:], m.Then[iNdEx]) + i = encodeVarintAction(dAtA, i, uint64(len(m.Then[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.When) > 0 { + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintAction(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x22 + } + if m.Disable { + i-- + if m.Disable { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Desc) > 0 { + i -= len(m.Desc) + copy(dAtA[i:], m.Desc) + i = encodeVarintAction(dAtA, i, uint64(len(m.Desc))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAction(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAction(dAtA []byte, offset int, v uint64) int { + offset -= sovAction(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DefaultValue) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + return n +} + +func (m *Action) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + l = len(m.Desc) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if m.Disable { + n += 2 + } + l = len(m.When) + if l > 0 { + n += 1 + l + sovAction(uint64(l)) + } + if len(m.Then) > 0 { + for _, s := range m.Then { + l = len(s) + n += 1 + l + sovAction(uint64(l)) + } + } + if m.AllowedActioner != 0 { + n += 1 + sovAction(uint64(m.AllowedActioner)) + } + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovAction(uint64(l)) + } + } + return n +} + +func sovAction(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAction(x uint64) (n int) { + return sovAction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionParams) 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 ErrIntOverflowAction + } + 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: action_params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: action_params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Action) 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 ErrIntOverflowAction + } + 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: Action: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Action: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Desc", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Desc = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Disable", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Disable = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Then", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + 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 ErrInvalidLengthAction + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Then = append(m.Then, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedActioner", wireType) + } + m.AllowedActioner = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AllowedActioner |= AllowedActioner(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAction + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAction + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAction + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, &ActionParams{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAction(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAction + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAction(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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrIntOverflowAction + } + 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, ErrInvalidLengthAction + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAction + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAction + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/action_by_ref_id.pb.go b/x/nftmngr/types/v094/action_by_ref_id.pb.go new file mode 100644 index 00000000..734c24f4 --- /dev/null +++ b/x/nftmngr/types/v094/action_by_ref_id.pb.go @@ -0,0 +1,526 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/action_by_ref_id.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionByRefId struct { + RefId string `protobuf:"bytes,1,opt,name=refId,proto3" json:"refId,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + NftSchemaCode string `protobuf:"bytes,3,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + TokenId string `protobuf:"bytes,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"` + Action string `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"` +} + +func (m *ActionByRefId) Reset() { *m = ActionByRefId{} } +func (m *ActionByRefId) String() string { return proto.CompactTextString(m) } +func (*ActionByRefId) ProtoMessage() {} +func (*ActionByRefId) Descriptor() ([]byte, []int) { + return fileDescriptor_6003bb48160043b6, []int{0} +} +func (m *ActionByRefId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionByRefId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionByRefId.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 *ActionByRefId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionByRefId.Merge(m, src) +} +func (m *ActionByRefId) XXX_Size() int { + return m.Size() +} +func (m *ActionByRefId) XXX_DiscardUnknown() { + xxx_messageInfo_ActionByRefId.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionByRefId proto.InternalMessageInfo + +func (m *ActionByRefId) GetRefId() string { + if m != nil { + return m.RefId + } + return "" +} + +func (m *ActionByRefId) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *ActionByRefId) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionByRefId) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *ActionByRefId) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func init() { + proto.RegisterType((*ActionByRefId)(nil), "thesixnetwork.sixnft.nftmngr.v094.ActionByRefId") +} + +func init() { + proto.RegisterFile("nftmngr/v094/action_by_ref_id.proto", fileDescriptor_6003bb48160043b6) +} + +var fileDescriptor_6003bb48160043b6 = []byte{ + // 248 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xaa, 0x8c, 0x2f, 0x4a, 0x4d, 0x8b, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0xa6, 0x33, 0x72, 0xf1, 0x3a, 0x82, + 0x75, 0x3b, 0x55, 0x06, 0xa5, 0xa6, 0x79, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x81, 0x18, 0x12, + 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x90, 0x04, 0x17, 0x7b, 0x72, 0x51, 0x6a, 0x62, + 0x49, 0x7e, 0x91, 0x04, 0x13, 0x58, 0x1c, 0xc6, 0x15, 0x52, 0xe1, 0xe2, 0xcd, 0x4b, 0x2b, 0x09, + 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0x74, 0xce, 0x4f, 0x49, 0x95, 0x60, 0x06, 0xcb, 0xa3, 0x0a, 0x82, + 0xf4, 0x97, 0xe4, 0x67, 0xa7, 0xe6, 0x79, 0xa6, 0x48, 0xb0, 0x40, 0xf4, 0x43, 0xb9, 0x42, 0x62, + 0x5c, 0x6c, 0x10, 0xe7, 0x4b, 0xb0, 0x82, 0x25, 0xa0, 0x3c, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, + 0xcf, 0xd5, 0x47, 0xf1, 0xa1, 0x3e, 0xc4, 0x87, 0xfa, 0x15, 0xfa, 0xb0, 0xd0, 0x29, 0xa9, 0x2c, + 0x48, 0x2d, 0x06, 0x87, 0x51, 0x12, 0x1b, 0x38, 0x4c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x27, 0x06, 0x70, 0x1f, 0x3a, 0x01, 0x00, 0x00, +} + +func (m *ActionByRefId) 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 *ActionByRefId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionByRefId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if len(m.RefId) > 0 { + i -= len(m.RefId) + copy(dAtA[i:], m.RefId) + i = encodeVarintActionByRefId(dAtA, i, uint64(len(m.RefId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionByRefId(dAtA []byte, offset int, v uint64) int { + offset -= sovActionByRefId(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionByRefId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RefId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovActionByRefId(uint64(l)) + } + return n +} + +func sovActionByRefId(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionByRefId(x uint64) (n int) { + return sovActionByRefId(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionByRefId) 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 ErrIntOverflowActionByRefId + } + 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: ActionByRefId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionByRefId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RefId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RefId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionByRefId + } + 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 ErrInvalidLengthActionByRefId + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionByRefId + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionByRefId(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionByRefId + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionByRefId(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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrIntOverflowActionByRefId + } + 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, ErrInvalidLengthActionByRefId + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionByRefId + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionByRefId + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionByRefId = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionByRefId = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionByRefId = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/action_executor.pb.go b/x/nftmngr/types/v094/action_executor.pb.go new file mode 100644 index 00000000..44d6dc1c --- /dev/null +++ b/x/nftmngr/types/v094/action_executor.pb.go @@ -0,0 +1,648 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/action_executor.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionExecutor struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress string `protobuf:"bytes,2,opt,name=executorAddress,proto3" json:"executorAddress,omitempty"` + Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *ActionExecutor) Reset() { *m = ActionExecutor{} } +func (m *ActionExecutor) String() string { return proto.CompactTextString(m) } +func (*ActionExecutor) ProtoMessage() {} +func (*ActionExecutor) Descriptor() ([]byte, []int) { + return fileDescriptor_071df82631d0c666, []int{0} +} +func (m *ActionExecutor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutor.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 *ActionExecutor) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutor.Merge(m, src) +} +func (m *ActionExecutor) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutor) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutor.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutor proto.InternalMessageInfo + +func (m *ActionExecutor) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutor) GetExecutorAddress() string { + if m != nil { + return m.ExecutorAddress + } + return "" +} + +func (m *ActionExecutor) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type ActionExecutorBySchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ActionExecutorBySchema) Reset() { *m = ActionExecutorBySchema{} } +func (m *ActionExecutorBySchema) String() string { return proto.CompactTextString(m) } +func (*ActionExecutorBySchema) ProtoMessage() {} +func (*ActionExecutorBySchema) Descriptor() ([]byte, []int) { + return fileDescriptor_071df82631d0c666, []int{1} +} +func (m *ActionExecutorBySchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionExecutorBySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionExecutorBySchema.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 *ActionExecutorBySchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionExecutorBySchema.Merge(m, src) +} +func (m *ActionExecutorBySchema) XXX_Size() int { + return m.Size() +} +func (m *ActionExecutorBySchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionExecutorBySchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionExecutorBySchema proto.InternalMessageInfo + +func (m *ActionExecutorBySchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionExecutorBySchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ActionExecutor)(nil), "thesixnetwork.sixnft.nftmngr.v094.ActionExecutor") + proto.RegisterType((*ActionExecutorBySchema)(nil), "thesixnetwork.sixnft.nftmngr.v094.ActionExecutorBySchema") +} + +func init() { + proto.RegisterFile("nftmngr/v094/action_executor.proto", fileDescriptor_071df82631d0c666) +} + +var fileDescriptor_071df82631d0c666 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0xaa, 0xb8, 0xf8, 0x1c, 0xc1, 0x7a, 0x5d, + 0xa1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x82, 0x93, 0x33, 0x52, 0x73, 0x13, 0x9d, + 0xf3, 0x53, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x50, 0x05, 0x85, 0x34, 0xb8, 0xf8, + 0x61, 0x96, 0x39, 0xa6, 0xa4, 0x14, 0xa5, 0x16, 0x17, 0x4b, 0x30, 0x81, 0xd5, 0xa1, 0x0b, 0x0b, + 0x49, 0x70, 0xb1, 0x27, 0x17, 0xa5, 0x26, 0x96, 0xe4, 0x17, 0x49, 0x30, 0x83, 0x55, 0xc0, 0xb8, + 0x4a, 0x19, 0x5c, 0x62, 0xa8, 0x76, 0x3b, 0x55, 0x42, 0x6c, 0xa0, 0xc4, 0x0d, 0xcc, 0x58, 0xdc, + 0xe0, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, + 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xa1, 0xa5, 0x0f, 0x09, 0x2d, 0xfd, + 0x0a, 0x7d, 0x58, 0x40, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x83, 0x83, 0x3b, 0x89, 0x0d, 0x1c, 0xbe, + 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x65, 0x01, 0x1e, 0x58, 0x85, 0x01, 0x00, 0x00, +} + +func (m *ActionExecutor) 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 *ActionExecutor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x1a + } + if len(m.ExecutorAddress) > 0 { + i -= len(m.ExecutorAddress) + copy(dAtA[i:], m.ExecutorAddress) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ActionExecutorBySchema) 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 *ActionExecutorBySchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionExecutorBySchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionExecutor(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionExecutor(dAtA []byte, offset int, v uint64) int { + offset -= sovActionExecutor(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionExecutor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.ExecutorAddress) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + return n +} + +func (m *ActionExecutorBySchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionExecutor(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovActionExecutor(uint64(l)) + } + } + return n +} + +func sovActionExecutor(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionExecutor(x uint64) (n int) { + return sovActionExecutor(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionExecutor) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutor: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActionExecutorBySchema) 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 ErrIntOverflowActionExecutor + } + 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: ActionExecutorBySchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionExecutorBySchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionExecutor + } + 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 ErrInvalidLengthActionExecutor + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionExecutor + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipActionExecutor(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionExecutor + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionExecutor(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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrIntOverflowActionExecutor + } + 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, ErrInvalidLengthActionExecutor + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionExecutor + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionExecutor + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionExecutor = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionExecutor = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionExecutor = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/action_of_schema.pb.go b/x/nftmngr/types/v094/action_of_schema.pb.go new file mode 100644 index 00000000..cd115a29 --- /dev/null +++ b/x/nftmngr/types/v094/action_of_schema.pb.go @@ -0,0 +1,406 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/action_of_schema.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ActionOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *ActionOfSchema) Reset() { *m = ActionOfSchema{} } +func (m *ActionOfSchema) String() string { return proto.CompactTextString(m) } +func (*ActionOfSchema) ProtoMessage() {} +func (*ActionOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_d5467a07ddbbcf74, []int{0} +} +func (m *ActionOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionOfSchema.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 *ActionOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionOfSchema.Merge(m, src) +} +func (m *ActionOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ActionOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ActionOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionOfSchema proto.InternalMessageInfo + +func (m *ActionOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ActionOfSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ActionOfSchema) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*ActionOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v094.ActionOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v094/action_of_schema.proto", fileDescriptor_d5467a07ddbbcf74) +} + +var fileDescriptor_d5467a07ddbbcf74 = []byte{ + // 216 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x8b, + 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x12, 0xb8, 0xf8, 0x1c, 0xc1, 0x9a, + 0xfd, 0xd3, 0x82, 0xc1, 0x5a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, 0xe7, 0xfc, + 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x21, 0x2e, 0x96, 0xbc, + 0xc4, 0xdc, 0x54, 0x09, 0x26, 0xb0, 0x24, 0x98, 0x2d, 0x24, 0xc2, 0xc5, 0x9a, 0x99, 0x97, 0x92, + 0x5a, 0x21, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x12, 0x04, 0xe1, 0x38, 0xf9, 0x9d, 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, 0x49, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, + 0x7e, 0xae, 0x3e, 0x8a, 0x4b, 0xf5, 0x21, 0x2e, 0xd5, 0xaf, 0xd0, 0x87, 0xf9, 0xb2, 0xa4, 0xb2, + 0x20, 0xb5, 0x18, 0xec, 0xd7, 0x24, 0x36, 0xb0, 0xdf, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xb0, 0x7c, 0x9f, 0x68, 0x02, 0x01, 0x00, 0x00, +} + +func (m *ActionOfSchema) 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 *ActionOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintActionOfSchema(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x18 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintActionOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintActionOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovActionOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ActionOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovActionOfSchema(uint64(l)) + } + if m.Index != 0 { + n += 1 + sovActionOfSchema(uint64(m.Index)) + } + return n +} + +func sovActionOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozActionOfSchema(x uint64) (n int) { + return sovActionOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ActionOfSchema) 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 ErrIntOverflowActionOfSchema + } + 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: ActionOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + 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 ErrInvalidLengthActionOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthActionOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowActionOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipActionOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthActionOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipActionOfSchema(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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrIntOverflowActionOfSchema + } + 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, ErrInvalidLengthActionOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupActionOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthActionOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthActionOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowActionOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupActionOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/attribute_definition.pb.go b/x/nftmngr/types/v094/attribute_definition.pb.go new file mode 100644 index 00000000..f8fda50b --- /dev/null +++ b/x/nftmngr/types/v094/attribute_definition.pb.go @@ -0,0 +1,1197 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/attribute_definition.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DefaultMintValue struct { + // Types that are valid to be assigned to Value: + // *DefaultMintValue_NumberAttributeValue + // *DefaultMintValue_StringAttributeValue + // *DefaultMintValue_BooleanAttributeValue + // *DefaultMintValue_FloatAttributeValue + Value isDefaultMintValue_Value `protobuf_oneof:"value"` +} + +func (m *DefaultMintValue) Reset() { *m = DefaultMintValue{} } +func (m *DefaultMintValue) String() string { return proto.CompactTextString(m) } +func (*DefaultMintValue) ProtoMessage() {} +func (*DefaultMintValue) Descriptor() ([]byte, []int) { + return fileDescriptor_d29623424d9681a5, []int{0} +} +func (m *DefaultMintValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DefaultMintValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DefaultMintValue.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 *DefaultMintValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DefaultMintValue.Merge(m, src) +} +func (m *DefaultMintValue) XXX_Size() int { + return m.Size() +} +func (m *DefaultMintValue) XXX_DiscardUnknown() { + xxx_messageInfo_DefaultMintValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DefaultMintValue proto.InternalMessageInfo + +type isDefaultMintValue_Value interface { + isDefaultMintValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type DefaultMintValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type DefaultMintValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type DefaultMintValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type DefaultMintValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*DefaultMintValue_NumberAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_StringAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_BooleanAttributeValue) isDefaultMintValue_Value() {} +func (*DefaultMintValue_FloatAttributeValue) isDefaultMintValue_Value() {} + +func (m *DefaultMintValue) GetValue() isDefaultMintValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *DefaultMintValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *DefaultMintValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*DefaultMintValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*DefaultMintValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*DefaultMintValue_NumberAttributeValue)(nil), + (*DefaultMintValue_StringAttributeValue)(nil), + (*DefaultMintValue_BooleanAttributeValue)(nil), + (*DefaultMintValue_FloatAttributeValue)(nil), + } +} + +type AttributeDefinition struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` + DisplayValueField string `protobuf:"bytes,4,opt,name=display_value_field,json=displayValueField,proto3" json:"display_value_field,omitempty"` + DisplayOption *DisplayOption `protobuf:"bytes,5,opt,name=display_option,json=displayOption,proto3" json:"display_option,omitempty"` + DefaultMintValue *DefaultMintValue `protobuf:"bytes,6,opt,name=default_mint_value,json=defaultMintValue,proto3" json:"default_mint_value,omitempty"` + HiddenOveride bool `protobuf:"varint,7,opt,name=hidden_overide,json=hiddenOveride,proto3" json:"hidden_overide,omitempty"` + HiddenToMarketplace bool `protobuf:"varint,8,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` + Index uint64 `protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *AttributeDefinition) Reset() { *m = AttributeDefinition{} } +func (m *AttributeDefinition) String() string { return proto.CompactTextString(m) } +func (*AttributeDefinition) ProtoMessage() {} +func (*AttributeDefinition) Descriptor() ([]byte, []int) { + return fileDescriptor_d29623424d9681a5, []int{1} +} +func (m *AttributeDefinition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeDefinition.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 *AttributeDefinition) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeDefinition.Merge(m, src) +} +func (m *AttributeDefinition) XXX_Size() int { + return m.Size() +} +func (m *AttributeDefinition) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeDefinition.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeDefinition proto.InternalMessageInfo + +func (m *AttributeDefinition) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *AttributeDefinition) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *AttributeDefinition) GetRequired() bool { + if m != nil { + return m.Required + } + return false +} + +func (m *AttributeDefinition) GetDisplayValueField() string { + if m != nil { + return m.DisplayValueField + } + return "" +} + +func (m *AttributeDefinition) GetDisplayOption() *DisplayOption { + if m != nil { + return m.DisplayOption + } + return nil +} + +func (m *AttributeDefinition) GetDefaultMintValue() *DefaultMintValue { + if m != nil { + return m.DefaultMintValue + } + return nil +} + +func (m *AttributeDefinition) GetHiddenOveride() bool { + if m != nil { + return m.HiddenOveride + } + return false +} + +func (m *AttributeDefinition) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +func (m *AttributeDefinition) GetIndex() uint64 { + if m != nil { + return m.Index + } + return 0 +} + +func init() { + proto.RegisterType((*DefaultMintValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.DefaultMintValue") + proto.RegisterType((*AttributeDefinition)(nil), "thesixnetwork.sixnft.nftmngr.v094.AttributeDefinition") +} + +func init() { + proto.RegisterFile("nftmngr/v094/attribute_definition.proto", fileDescriptor_d29623424d9681a5) +} + +var fileDescriptor_d29623424d9681a5 = []byte{ + // 524 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, + 0x14, 0x6e, 0x58, 0xbb, 0xb5, 0x46, 0x9b, 0x86, 0xbb, 0x42, 0x54, 0xa4, 0x68, 0x9b, 0x04, 0xec, + 0x94, 0x4c, 0xdb, 0xc4, 0x8f, 0x23, 0x55, 0x35, 0x71, 0xd9, 0x26, 0x85, 0x09, 0x24, 0x2e, 0x91, + 0x33, 0x3b, 0xad, 0xb5, 0xc4, 0x0e, 0xee, 0x4b, 0x69, 0xff, 0x0b, 0xfe, 0x23, 0xae, 0x1c, 0x77, + 0xe4, 0x06, 0x6a, 0xff, 0x11, 0x14, 0xbb, 0x3f, 0x68, 0x53, 0x89, 0xdc, 0xec, 0xf7, 0xbd, 0xef, + 0xfb, 0xec, 0xe7, 0xf7, 0x8c, 0x5e, 0x89, 0x08, 0x12, 0xd1, 0x53, 0xde, 0xf0, 0xf4, 0xdd, 0x85, + 0x47, 0x00, 0x14, 0x0f, 0x33, 0x60, 0x01, 0x65, 0x11, 0x17, 0x1c, 0xb8, 0x14, 0x6e, 0xaa, 0x24, + 0x48, 0x7c, 0x04, 0x7d, 0x36, 0xe0, 0x23, 0xc1, 0xe0, 0x9b, 0x54, 0xf7, 0x6e, 0xbe, 0x8c, 0xc0, + 0x9d, 0xb1, 0xdd, 0x9c, 0xdd, 0x3e, 0x5a, 0xd1, 0xa2, 0x7c, 0x90, 0xc6, 0x64, 0x1c, 0xc8, 0x74, + 0xa9, 0xd2, 0x7e, 0xb9, 0x92, 0x22, 0x22, 0x08, 0x96, 0x96, 0x43, 0x12, 0x67, 0xcc, 0xe4, 0x1d, + 0xff, 0xde, 0x42, 0xfb, 0x5d, 0x16, 0x91, 0x2c, 0x86, 0x2b, 0x2e, 0xe0, 0x53, 0x0e, 0x61, 0x89, + 0x9e, 0x8a, 0x2c, 0x09, 0x99, 0x5a, 0x27, 0xd9, 0xd6, 0xa1, 0x75, 0xf2, 0xf8, 0xec, 0x8d, 0xfb, + 0xdf, 0x33, 0xba, 0xd7, 0x5a, 0xe0, 0xfd, 0x9c, 0xaf, 0x85, 0x3f, 0x54, 0xfc, 0x03, 0xb1, 0x21, + 0x9e, 0x1b, 0x0e, 0x40, 0x71, 0xd1, 0x2b, 0x18, 0x3e, 0x2a, 0x6d, 0xf8, 0x51, 0x0b, 0x14, 0x0d, + 0x07, 0x1b, 0xe2, 0x58, 0xa1, 0x67, 0xa1, 0x94, 0x31, 0x23, 0xa2, 0xe0, 0xb8, 0xa5, 0x1d, 0xdf, + 0x96, 0x70, 0xec, 0x18, 0x85, 0x82, 0x65, 0x2b, 0xdc, 0x04, 0xe0, 0x18, 0xb5, 0xa2, 0x58, 0x92, + 0xc2, 0x4b, 0xd8, 0x55, 0xed, 0xf8, 0xba, 0x84, 0xe3, 0x65, 0xce, 0x2f, 0xf8, 0x35, 0xa3, 0x62, + 0xb8, 0xb3, 0x83, 0x6a, 0x5a, 0xfd, 0xf8, 0xc7, 0x16, 0x6a, 0x2e, 0xb0, 0xee, 0xa2, 0xdb, 0x30, + 0x46, 0x55, 0x41, 0x12, 0xf3, 0xa4, 0x0d, 0x5f, 0xaf, 0xf1, 0x73, 0xd4, 0xa0, 0x04, 0x48, 0x00, + 0xe3, 0xd4, 0x94, 0xbe, 0xe1, 0xd7, 0xf3, 0xc0, 0xed, 0x38, 0x65, 0xb8, 0x8d, 0xea, 0x8a, 0x7d, + 0xcd, 0xb8, 0x62, 0x54, 0x17, 0xa9, 0xee, 0x2f, 0xf6, 0xd8, 0x45, 0xcd, 0x79, 0x1b, 0x6a, 0xd7, + 0x20, 0xe2, 0x2c, 0xa6, 0xfa, 0x66, 0x0d, 0xff, 0xc9, 0x0c, 0xd2, 0x07, 0xbb, 0xcc, 0x01, 0xfc, + 0x19, 0xed, 0xad, 0xb6, 0xad, 0x5d, 0xd3, 0x45, 0x38, 0x2d, 0x51, 0x84, 0xae, 0x21, 0xde, 0x68, + 0x9e, 0xbf, 0x4b, 0xff, 0xdd, 0x62, 0x82, 0x30, 0x35, 0xed, 0x1c, 0x24, 0x5c, 0xc0, 0xac, 0xc2, + 0xdb, 0x5a, 0xfc, 0xbc, 0x8c, 0xf8, 0xda, 0x2c, 0xf8, 0xfb, 0x74, 0x7d, 0x3a, 0x5e, 0xa0, 0xbd, + 0x3e, 0xa7, 0x94, 0x89, 0x40, 0x0e, 0x99, 0xe2, 0x94, 0xd9, 0x3b, 0xba, 0x1a, 0xbb, 0x26, 0x7a, + 0x63, 0x82, 0xf8, 0x0c, 0xb5, 0x66, 0x69, 0x20, 0x83, 0x84, 0xa8, 0x7b, 0x06, 0x69, 0x4c, 0xee, + 0x98, 0x5d, 0xd7, 0xd9, 0x4d, 0x03, 0xde, 0xca, 0xab, 0x25, 0x84, 0x0f, 0x50, 0x8d, 0x0b, 0xca, + 0x46, 0x76, 0xe3, 0xd0, 0x3a, 0xa9, 0xfa, 0x66, 0xd3, 0xb9, 0xfe, 0x39, 0x71, 0xac, 0x87, 0x89, + 0x63, 0xfd, 0x99, 0x38, 0xd6, 0xf7, 0xa9, 0x53, 0x79, 0x98, 0x3a, 0x95, 0x5f, 0x53, 0xa7, 0xf2, + 0xe5, 0xa2, 0xc7, 0xa1, 0x9f, 0x85, 0xee, 0x9d, 0x4c, 0xbc, 0x95, 0xbb, 0x79, 0xe6, 0x6e, 0xde, + 0xc8, 0x9b, 0xff, 0x03, 0xf9, 0x93, 0x0e, 0xf4, 0x6f, 0x10, 0x6e, 0xeb, 0xd1, 0x3f, 0xff, 0x1b, + 0x00, 0x00, 0xff, 0xff, 0xe8, 0xa7, 0xea, 0xd9, 0x93, 0x04, 0x00, 0x00, +} + +func (m *DefaultMintValue) 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 *DefaultMintValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *DefaultMintValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DefaultMintValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *AttributeDefinition) 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 *AttributeDefinition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintAttributeDefinition(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x48 + } + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.HiddenOveride { + i-- + if m.HiddenOveride { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.DefaultMintValue != nil { + { + size, err := m.DefaultMintValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.DisplayOption != nil { + { + size, err := m.DisplayOption.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeDefinition(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DisplayValueField) > 0 { + i -= len(m.DisplayValueField) + copy(dAtA[i:], m.DisplayValueField) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DisplayValueField))) + i-- + dAtA[i] = 0x22 + } + if m.Required { + i-- + if m.Required { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintAttributeDefinition(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeDefinition(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeDefinition(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DefaultMintValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *DefaultMintValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *DefaultMintValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + return n +} +func (m *AttributeDefinition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.Required { + n += 2 + } + l = len(m.DisplayValueField) + if l > 0 { + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DisplayOption != nil { + l = m.DisplayOption.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.DefaultMintValue != nil { + l = m.DefaultMintValue.Size() + n += 1 + l + sovAttributeDefinition(uint64(l)) + } + if m.HiddenOveride { + n += 2 + } + if m.HiddenToMarketplace { + n += 2 + } + if m.Index != 0 { + n += 1 + sovAttributeDefinition(uint64(m.Index)) + } + return n +} + +func sovAttributeDefinition(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeDefinition(x uint64) (n int) { + return sovAttributeDefinition(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DefaultMintValue) 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 ErrIntOverflowAttributeDefinition + } + 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: DefaultMintValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DefaultMintValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &DefaultMintValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AttributeDefinition) 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 ErrIntOverflowAttributeDefinition + } + 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: AttributeDefinition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeDefinition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Required", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Required = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayValueField", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + 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 ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayValueField = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayOption", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DisplayOption == nil { + m.DisplayOption = &DisplayOption{} + } + if err := m.DisplayOption.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMintValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeDefinition + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeDefinition + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultMintValue == nil { + m.DefaultMintValue = &DefaultMintValue{} + } + if err := m.DefaultMintValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenOveride", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenOveride = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeDefinition + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipAttributeDefinition(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeDefinition + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeDefinition(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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrIntOverflowAttributeDefinition + } + 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, ErrInvalidLengthAttributeDefinition + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeDefinition + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeDefinition + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeDefinition = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeDefinition = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeDefinition = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/attribute_of_schema.pb.go b/x/nftmngr/types/v094/attribute_of_schema.pb.go new file mode 100644 index 00000000..0047e8f5 --- /dev/null +++ b/x/nftmngr/types/v094/attribute_of_schema.pb.go @@ -0,0 +1,383 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/attribute_of_schema.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + SchemaAttributes []*SchemaAttribute `protobuf:"bytes,2,rep,name=schemaAttributes,proto3" json:"schemaAttributes,omitempty"` +} + +func (m *AttributeOfSchema) Reset() { *m = AttributeOfSchema{} } +func (m *AttributeOfSchema) String() string { return proto.CompactTextString(m) } +func (*AttributeOfSchema) ProtoMessage() {} +func (*AttributeOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_585da7ba753e60bb, []int{0} +} +func (m *AttributeOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AttributeOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AttributeOfSchema.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 *AttributeOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_AttributeOfSchema.Merge(m, src) +} +func (m *AttributeOfSchema) XXX_Size() int { + return m.Size() +} +func (m *AttributeOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_AttributeOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_AttributeOfSchema proto.InternalMessageInfo + +func (m *AttributeOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *AttributeOfSchema) GetSchemaAttributes() []*SchemaAttribute { + if m != nil { + return m.SchemaAttributes + } + return nil +} + +func init() { + proto.RegisterType((*AttributeOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v094.AttributeOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v094/attribute_of_schema.proto", fileDescriptor_585da7ba753e60bb) +} + +var fileDescriptor_585da7ba753e60bb = []byte{ + // 228 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcb, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0x2c, 0x29, 0x29, 0xca, 0x4c, 0x2a, + 0x2d, 0x49, 0x8d, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, + 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x9a, 0xf5, 0x40, 0x9a, 0xa5, 0x94, 0x51, 0x8c, + 0x82, 0xe8, 0x8e, 0x87, 0x9b, 0x08, 0x31, 0x47, 0x69, 0x26, 0x23, 0x97, 0xa0, 0x23, 0x4c, 0xcc, + 0x3f, 0x2d, 0x18, 0xac, 0x4a, 0x48, 0x85, 0x8b, 0x37, 0x2f, 0xad, 0x04, 0xc2, 0x71, 0xce, 0x4f, + 0x49, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x42, 0x15, 0x14, 0x8a, 0xe3, 0x12, 0x80, 0x98, + 0x0a, 0x37, 0xa0, 0x58, 0x82, 0x49, 0x81, 0x59, 0x83, 0xdb, 0xc8, 0x48, 0x8f, 0xa0, 0xf3, 0xf4, + 0x82, 0x51, 0xb5, 0x06, 0x61, 0x98, 0xe5, 0xe4, 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, + 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, + 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, + 0x36, 0xe9, 0x43, 0x6c, 0xd2, 0xaf, 0xd0, 0x87, 0x79, 0xbe, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, + 0x04, 0x49, 0x6c, 0x60, 0x2f, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x2d, 0xd5, 0xe2, + 0x64, 0x01, 0x00, 0x00, +} + +func (m *AttributeOfSchema) 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 *AttributeOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AttributeOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaAttributes) > 0 { + for iNdEx := len(m.SchemaAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SchemaAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintAttributeOfSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintAttributeOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAttributeOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovAttributeOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AttributeOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovAttributeOfSchema(uint64(l)) + } + if len(m.SchemaAttributes) > 0 { + for _, e := range m.SchemaAttributes { + l = e.Size() + n += 1 + l + sovAttributeOfSchema(uint64(l)) + } + } + return n +} + +func sovAttributeOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAttributeOfSchema(x uint64) (n int) { + return sovAttributeOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AttributeOfSchema) 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 ErrIntOverflowAttributeOfSchema + } + 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: AttributeOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AttributeOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeOfSchema + } + 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 ErrInvalidLengthAttributeOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAttributeOfSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAttributeOfSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaAttributes = append(m.SchemaAttributes, &SchemaAttribute{}) + if err := m.SchemaAttributes[len(m.SchemaAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAttributeOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAttributeOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAttributeOfSchema(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, ErrIntOverflowAttributeOfSchema + } + 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, ErrIntOverflowAttributeOfSchema + } + 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, ErrIntOverflowAttributeOfSchema + } + 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, ErrInvalidLengthAttributeOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAttributeOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAttributeOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAttributeOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAttributeOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAttributeOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/display_option.pb.go b/x/nftmngr/types/v094/display_option.pb.go new file mode 100644 index 00000000..325bff38 --- /dev/null +++ b/x/nftmngr/types/v094/display_option.pb.go @@ -0,0 +1,432 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/display_option.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type DisplayOption struct { + BoolTrueValue string `protobuf:"bytes,1,opt,name=bool_true_value,json=boolTrueValue,proto3" json:"bool_true_value,omitempty"` + BoolFalseValue string `protobuf:"bytes,2,opt,name=bool_false_value,json=boolFalseValue,proto3" json:"bool_false_value,omitempty"` + Opensea *OpenseaDisplayOption `protobuf:"bytes,3,opt,name=opensea,proto3" json:"opensea,omitempty"` +} + +func (m *DisplayOption) Reset() { *m = DisplayOption{} } +func (m *DisplayOption) String() string { return proto.CompactTextString(m) } +func (*DisplayOption) ProtoMessage() {} +func (*DisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_ddaabba3ffb482fd, []int{0} +} +func (m *DisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DisplayOption.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 *DisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_DisplayOption.Merge(m, src) +} +func (m *DisplayOption) XXX_Size() int { + return m.Size() +} +func (m *DisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_DisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_DisplayOption proto.InternalMessageInfo + +func (m *DisplayOption) GetBoolTrueValue() string { + if m != nil { + return m.BoolTrueValue + } + return "" +} + +func (m *DisplayOption) GetBoolFalseValue() string { + if m != nil { + return m.BoolFalseValue + } + return "" +} + +func (m *DisplayOption) GetOpensea() *OpenseaDisplayOption { + if m != nil { + return m.Opensea + } + return nil +} + +func init() { + proto.RegisterType((*DisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v094.DisplayOption") +} + +func init() { proto.RegisterFile("nftmngr/v094/display_option.proto", fileDescriptor_ddaabba3ffb482fd) } + +var fileDescriptor_ddaabba3ffb482fd = []byte{ + // 259 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, + 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0x34, 0x51, 0x4c, 0xc9, 0x2f, 0x48, 0xcd, 0x2b, + 0x4e, 0x4d, 0x8c, 0xc7, 0x66, 0x9a, 0xd2, 0x16, 0x46, 0x2e, 0x5e, 0x17, 0x88, 0x84, 0x3f, 0x58, + 0x5c, 0x48, 0x8d, 0x8b, 0x3f, 0x29, 0x3f, 0x3f, 0x27, 0xbe, 0xa4, 0xa8, 0x34, 0x35, 0xbe, 0x2c, + 0x31, 0xa7, 0x34, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x17, 0x24, 0x1c, 0x52, 0x54, + 0x9a, 0x1a, 0x06, 0x12, 0x14, 0xd2, 0xe0, 0x12, 0x00, 0xab, 0x4b, 0x4b, 0xcc, 0x29, 0x86, 0x29, + 0x64, 0x02, 0x2b, 0xe4, 0x03, 0x89, 0xbb, 0x81, 0x84, 0x21, 0x2a, 0x03, 0xb9, 0xd8, 0xa1, 0x6e, + 0x90, 0x60, 0x56, 0x60, 0xd4, 0xe0, 0x36, 0x32, 0xd7, 0x23, 0xe8, 0x07, 0x3d, 0x7f, 0x88, 0x0e, + 0x14, 0xb7, 0x05, 0xc1, 0xcc, 0x71, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, + 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, + 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x14, 0x5b, + 0xf4, 0x21, 0xb6, 0xe8, 0x57, 0xe8, 0xc3, 0x42, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x1c, 0x46, + 0x49, 0x6c, 0xe0, 0xd0, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4d, 0xa6, 0xeb, 0xc4, 0x80, + 0x01, 0x00, 0x00, +} + +func (m *DisplayOption) 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 *DisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Opensea != nil { + { + size, err := m.Opensea.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDisplayOption(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BoolFalseValue) > 0 { + i -= len(m.BoolFalseValue) + copy(dAtA[i:], m.BoolFalseValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolFalseValue))) + i-- + dAtA[i] = 0x12 + } + if len(m.BoolTrueValue) > 0 { + i -= len(m.BoolTrueValue) + copy(dAtA[i:], m.BoolTrueValue) + i = encodeVarintDisplayOption(dAtA, i, uint64(len(m.BoolTrueValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BoolTrueValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + l = len(m.BoolFalseValue) + if l > 0 { + n += 1 + l + sovDisplayOption(uint64(l)) + } + if m.Opensea != nil { + l = m.Opensea.Size() + n += 1 + l + sovDisplayOption(uint64(l)) + } + return n +} + +func sovDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDisplayOption(x uint64) (n int) { + return sovDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DisplayOption) 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 ErrIntOverflowDisplayOption + } + 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: DisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolTrueValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolTrueValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolFalseValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + 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 ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoolFalseValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Opensea", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthDisplayOption + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Opensea == nil { + m.Opensea = &OpenseaDisplayOption{} + } + if err := m.Opensea.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDisplayOption(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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrIntOverflowDisplayOption + } + 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, ErrInvalidLengthDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/executor_of_schema.pb.go b/x/nftmngr/types/v094/executor_of_schema.pb.go new file mode 100644 index 00000000..7aab552c --- /dev/null +++ b/x/nftmngr/types/v094/executor_of_schema.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/executor_of_schema.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type ExecutorOfSchema struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + ExecutorAddress []string `protobuf:"bytes,2,rep,name=executorAddress,proto3" json:"executorAddress,omitempty"` +} + +func (m *ExecutorOfSchema) Reset() { *m = ExecutorOfSchema{} } +func (m *ExecutorOfSchema) String() string { return proto.CompactTextString(m) } +func (*ExecutorOfSchema) ProtoMessage() {} +func (*ExecutorOfSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_30792b7fa51308f3, []int{0} +} +func (m *ExecutorOfSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutorOfSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExecutorOfSchema.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 *ExecutorOfSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutorOfSchema.Merge(m, src) +} +func (m *ExecutorOfSchema) XXX_Size() int { + return m.Size() +} +func (m *ExecutorOfSchema) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutorOfSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutorOfSchema proto.InternalMessageInfo + +func (m *ExecutorOfSchema) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *ExecutorOfSchema) GetExecutorAddress() []string { + if m != nil { + return m.ExecutorAddress + } + return nil +} + +func init() { + proto.RegisterType((*ExecutorOfSchema)(nil), "thesixnetwork.sixnft.nftmngr.v094.ExecutorOfSchema") +} + +func init() { + proto.RegisterFile("nftmngr/v094/executor_of_schema.proto", fileDescriptor_30792b7fa51308f3) +} + +var fileDescriptor_30792b7fa51308f3 = []byte{ + // 209 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcd, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0x4f, 0xad, 0x48, 0x4d, 0x2e, 0x2d, 0xc9, + 0x2f, 0x8a, 0xcf, 0x4f, 0x8b, 0x2f, 0x4e, 0xce, 0x48, 0xcd, 0x4d, 0xd4, 0x2b, 0x28, 0xca, 0x2f, + 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, + 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x7a, 0xf5, 0x40, 0x7a, 0x95, 0x92, 0xb8, 0x04, 0x5c, + 0xa1, 0xda, 0xfd, 0xd3, 0x82, 0xc1, 0x9a, 0x85, 0x54, 0xb8, 0x78, 0xf3, 0xd2, 0x4a, 0x20, 0x1c, + 0xe7, 0xfc, 0x94, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x54, 0x41, 0x21, 0x0d, 0x2e, + 0x7e, 0x98, 0xc5, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, + 0x41, 0xe8, 0xc2, 0x4e, 0x7e, 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, 0x65, + 0x92, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x56, 0x7d, 0x88, + 0x5b, 0xf5, 0x2b, 0xf4, 0x61, 0x3e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x06, 0xfb, 0x37, 0x89, 0x0d, + 0xec, 0x3b, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9, 0xd4, 0xf0, 0x15, 0x06, 0x01, 0x00, + 0x00, +} + +func (m *ExecutorOfSchema) 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 *ExecutorOfSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorOfSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ExecutorAddress) > 0 { + for iNdEx := len(m.ExecutorAddress) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ExecutorAddress[iNdEx]) + copy(dAtA[i:], m.ExecutorAddress[iNdEx]) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.ExecutorAddress[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintExecutorOfSchema(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintExecutorOfSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovExecutorOfSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ExecutorOfSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + if len(m.ExecutorAddress) > 0 { + for _, s := range m.ExecutorAddress { + l = len(s) + n += 1 + l + sovExecutorOfSchema(uint64(l)) + } + } + return n +} + +func sovExecutorOfSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozExecutorOfSchema(x uint64) (n int) { + return sovExecutorOfSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ExecutorOfSchema) 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 ErrIntOverflowExecutorOfSchema + } + 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: ExecutorOfSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecutorOfSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowExecutorOfSchema + } + 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 ErrInvalidLengthExecutorOfSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExecutorAddress = append(m.ExecutorAddress, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipExecutorOfSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthExecutorOfSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipExecutorOfSchema(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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrIntOverflowExecutorOfSchema + } + 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, ErrInvalidLengthExecutorOfSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupExecutorOfSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthExecutorOfSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthExecutorOfSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowExecutorOfSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupExecutorOfSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/metadata_creator.pb.go b/x/nftmngr/types/v094/metadata_creator.pb.go new file mode 100644 index 00000000..b0498b98 --- /dev/null +++ b/x/nftmngr/types/v094/metadata_creator.pb.go @@ -0,0 +1,606 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/metadata_creator.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type MapTokenToMinter struct { + TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` +} + +func (m *MapTokenToMinter) Reset() { *m = MapTokenToMinter{} } +func (m *MapTokenToMinter) String() string { return proto.CompactTextString(m) } +func (*MapTokenToMinter) ProtoMessage() {} +func (*MapTokenToMinter) Descriptor() ([]byte, []int) { + return fileDescriptor_57a079a1f92c8cba, []int{0} +} +func (m *MapTokenToMinter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MapTokenToMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MapTokenToMinter.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 *MapTokenToMinter) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapTokenToMinter.Merge(m, src) +} +func (m *MapTokenToMinter) XXX_Size() int { + return m.Size() +} +func (m *MapTokenToMinter) XXX_DiscardUnknown() { + xxx_messageInfo_MapTokenToMinter.DiscardUnknown(m) +} + +var xxx_messageInfo_MapTokenToMinter proto.InternalMessageInfo + +func (m *MapTokenToMinter) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *MapTokenToMinter) GetMinter() string { + if m != nil { + return m.Minter + } + return "" +} + +type MetadataCreator struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + MetadataMintedBy []*MapTokenToMinter `protobuf:"bytes,2,rep,name=metadataMintedBy,proto3" json:"metadataMintedBy,omitempty"` +} + +func (m *MetadataCreator) Reset() { *m = MetadataCreator{} } +func (m *MetadataCreator) String() string { return proto.CompactTextString(m) } +func (*MetadataCreator) ProtoMessage() {} +func (*MetadataCreator) Descriptor() ([]byte, []int) { + return fileDescriptor_57a079a1f92c8cba, []int{1} +} +func (m *MetadataCreator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MetadataCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MetadataCreator.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 *MetadataCreator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MetadataCreator.Merge(m, src) +} +func (m *MetadataCreator) XXX_Size() int { + return m.Size() +} +func (m *MetadataCreator) XXX_DiscardUnknown() { + xxx_messageInfo_MetadataCreator.DiscardUnknown(m) +} + +var xxx_messageInfo_MetadataCreator proto.InternalMessageInfo + +func (m *MetadataCreator) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *MetadataCreator) GetMetadataMintedBy() []*MapTokenToMinter { + if m != nil { + return m.MetadataMintedBy + } + return nil +} + +func init() { + proto.RegisterType((*MapTokenToMinter)(nil), "thesixnetwork.sixnft.nftmngr.v094.MapTokenToMinter") + proto.RegisterType((*MetadataCreator)(nil), "thesixnetwork.sixnft.nftmngr.v094.MetadataCreator") +} + +func init() { + proto.RegisterFile("nftmngr/v094/metadata_creator.proto", fileDescriptor_57a079a1f92c8cba) +} + +var fileDescriptor_57a079a1f92c8cba = []byte{ + // 267 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xce, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, + 0x49, 0x8c, 0x4f, 0x2e, 0x4a, 0x4d, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, + 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, + 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0x3a, 0xf5, 0x40, 0x3a, 0x95, 0x5c, 0xb9, 0x04, 0x7c, 0x13, 0x0b, + 0x42, 0xf2, 0xb3, 0x53, 0xf3, 0x42, 0xf2, 0x7d, 0x33, 0xf3, 0x4a, 0x52, 0x8b, 0x84, 0x24, 0xb9, + 0x38, 0x4a, 0x40, 0x02, 0xf1, 0x99, 0x29, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xec, 0x60, + 0xbe, 0x67, 0x8a, 0x90, 0x18, 0x17, 0x5b, 0x2e, 0x58, 0x91, 0x04, 0x13, 0x58, 0x02, 0xca, 0x53, + 0x9a, 0xc1, 0xc8, 0xc5, 0xef, 0x0b, 0x75, 0x84, 0x33, 0xc4, 0x0d, 0x42, 0x2a, 0x5c, 0xbc, 0x79, + 0x69, 0x25, 0xc1, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xce, 0xf9, 0x29, 0xa9, 0x50, 0xb3, 0x50, 0x05, + 0x85, 0xe2, 0xb9, 0x04, 0x60, 0xae, 0x07, 0x5b, 0x9f, 0xe2, 0x54, 0x29, 0xc1, 0xa4, 0xc0, 0xac, + 0xc1, 0x6d, 0x64, 0xac, 0x47, 0xd0, 0xf9, 0x7a, 0xe8, 0x6e, 0x0f, 0xc2, 0x30, 0xcc, 0xc9, 0xef, + 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, + 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x51, 0xac, 0xd2, 0x87, 0x58, 0xa5, 0x5f, 0xa1, 0x0f, 0x0b, + 0xe5, 0x92, 0xca, 0x82, 0xd4, 0x62, 0x70, 0x58, 0x27, 0xb1, 0x81, 0xc3, 0xd6, 0x18, 0x10, 0x00, + 0x00, 0xff, 0xff, 0x25, 0x9e, 0xab, 0x72, 0x82, 0x01, 0x00, 0x00, +} + +func (m *MapTokenToMinter) 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 *MapTokenToMinter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MapTokenToMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Minter) > 0 { + i -= len(m.Minter) + copy(dAtA[i:], m.Minter) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.Minter))) + i-- + dAtA[i] = 0x12 + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MetadataCreator) 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 *MetadataCreator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MetadataCreator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MetadataMintedBy) > 0 { + for iNdEx := len(m.MetadataMintedBy) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MetadataMintedBy[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadataCreator(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintMetadataCreator(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadataCreator(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadataCreator(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MapTokenToMinter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + l = len(m.Minter) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + return n +} + +func (m *MetadataCreator) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovMetadataCreator(uint64(l)) + } + if len(m.MetadataMintedBy) > 0 { + for _, e := range m.MetadataMintedBy { + l = e.Size() + n += 1 + l + sovMetadataCreator(uint64(l)) + } + } + return n +} + +func sovMetadataCreator(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadataCreator(x uint64) (n int) { + return sovMetadataCreator(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MapTokenToMinter) 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 ErrIntOverflowMetadataCreator + } + 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: MapTokenToMinter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MapTokenToMinter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Minter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MetadataCreator) 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 ErrIntOverflowMetadataCreator + } + 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: MetadataCreator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MetadataCreator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + 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 ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataMintedBy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadataCreator + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadataCreator + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadataCreator + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataMintedBy = append(m.MetadataMintedBy, &MapTokenToMinter{}) + if err := m.MetadataMintedBy[len(m.MetadataMintedBy)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadataCreator(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadataCreator + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadataCreator(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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrIntOverflowMetadataCreator + } + 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, ErrInvalidLengthMetadataCreator + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadataCreator + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadataCreator + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadataCreator = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadataCreator = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadataCreator = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_attribute_value.pb.go b/x/nftmngr/types/v094/nft_attribute_value.pb.go new file mode 100644 index 00000000..4c125b04 --- /dev/null +++ b/x/nftmngr/types/v094/nft_attribute_value.pb.go @@ -0,0 +1,1365 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_attribute_value.proto + +package v094 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + proto "github.com/gogo/protobuf/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 + +type NftAttributeValue struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Types that are valid to be assigned to Value: + // *NftAttributeValue_NumberAttributeValue + // *NftAttributeValue_StringAttributeValue + // *NftAttributeValue_BooleanAttributeValue + // *NftAttributeValue_FloatAttributeValue + Value isNftAttributeValue_Value `protobuf_oneof:"value"` + HiddenToMarketplace bool `protobuf:"varint,6,opt,name=hidden_to_marketplace,json=hiddenToMarketplace,proto3" json:"hidden_to_marketplace,omitempty"` +} + +func (m *NftAttributeValue) Reset() { *m = NftAttributeValue{} } +func (m *NftAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NftAttributeValue) ProtoMessage() {} +func (*NftAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_367c8d0cd71dafc9, []int{0} +} +func (m *NftAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftAttributeValue.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 *NftAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftAttributeValue.Merge(m, src) +} +func (m *NftAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NftAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NftAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NftAttributeValue proto.InternalMessageInfo + +type isNftAttributeValue_Value interface { + isNftAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type NftAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,2,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type NftAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,3,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type NftAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,4,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type NftAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,5,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*NftAttributeValue_NumberAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_StringAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_BooleanAttributeValue) isNftAttributeValue_Value() {} +func (*NftAttributeValue_FloatAttributeValue) isNftAttributeValue_Value() {} + +func (m *NftAttributeValue) GetValue() isNftAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *NftAttributeValue) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NftAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*NftAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +func (m *NftAttributeValue) GetHiddenToMarketplace() bool { + if m != nil { + return m.HiddenToMarketplace + } + return false +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*NftAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*NftAttributeValue_NumberAttributeValue)(nil), + (*NftAttributeValue_StringAttributeValue)(nil), + (*NftAttributeValue_BooleanAttributeValue)(nil), + (*NftAttributeValue_FloatAttributeValue)(nil), + } +} + +type NumberAttributeValue struct { + Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *NumberAttributeValue) Reset() { *m = NumberAttributeValue{} } +func (m *NumberAttributeValue) String() string { return proto.CompactTextString(m) } +func (*NumberAttributeValue) ProtoMessage() {} +func (*NumberAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_367c8d0cd71dafc9, []int{1} +} +func (m *NumberAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NumberAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NumberAttributeValue.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 *NumberAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_NumberAttributeValue.Merge(m, src) +} +func (m *NumberAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *NumberAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_NumberAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_NumberAttributeValue proto.InternalMessageInfo + +func (m *NumberAttributeValue) GetValue() uint64 { + if m != nil { + return m.Value + } + return 0 +} + +type StringAttributeValue struct { + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *StringAttributeValue) Reset() { *m = StringAttributeValue{} } +func (m *StringAttributeValue) String() string { return proto.CompactTextString(m) } +func (*StringAttributeValue) ProtoMessage() {} +func (*StringAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_367c8d0cd71dafc9, []int{2} +} +func (m *StringAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StringAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StringAttributeValue.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 *StringAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_StringAttributeValue.Merge(m, src) +} +func (m *StringAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *StringAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_StringAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_StringAttributeValue proto.InternalMessageInfo + +func (m *StringAttributeValue) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type BooleanAttributeValue struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *BooleanAttributeValue) Reset() { *m = BooleanAttributeValue{} } +func (m *BooleanAttributeValue) String() string { return proto.CompactTextString(m) } +func (*BooleanAttributeValue) ProtoMessage() {} +func (*BooleanAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_367c8d0cd71dafc9, []int{3} +} +func (m *BooleanAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BooleanAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BooleanAttributeValue.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 *BooleanAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanAttributeValue.Merge(m, src) +} +func (m *BooleanAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *BooleanAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanAttributeValue proto.InternalMessageInfo + +func (m *BooleanAttributeValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +type FloatAttributeValue struct { + Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *FloatAttributeValue) Reset() { *m = FloatAttributeValue{} } +func (m *FloatAttributeValue) String() string { return proto.CompactTextString(m) } +func (*FloatAttributeValue) ProtoMessage() {} +func (*FloatAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_367c8d0cd71dafc9, []int{4} +} +func (m *FloatAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FloatAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FloatAttributeValue.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 *FloatAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_FloatAttributeValue.Merge(m, src) +} +func (m *FloatAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *FloatAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_FloatAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_FloatAttributeValue proto.InternalMessageInfo + +func (m *FloatAttributeValue) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterType((*NftAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.NftAttributeValue") + proto.RegisterType((*NumberAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.NumberAttributeValue") + proto.RegisterType((*StringAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.StringAttributeValue") + proto.RegisterType((*BooleanAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.BooleanAttributeValue") + proto.RegisterType((*FloatAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.FloatAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v094/nft_attribute_value.proto", fileDescriptor_367c8d0cd71dafc9) +} + +var fileDescriptor_367c8d0cd71dafc9 = []byte{ + // 407 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xda, 0x30, + 0x18, 0xc6, 0xe3, 0x2d, 0x30, 0xf0, 0x4e, 0x33, 0x64, 0xcb, 0x76, 0x88, 0x18, 0x87, 0x09, 0x69, + 0x5b, 0x3c, 0x31, 0xb4, 0x3f, 0xc7, 0x71, 0x98, 0x7a, 0x29, 0x87, 0xb4, 0xea, 0xa1, 0x97, 0xc8, + 0x01, 0x27, 0x44, 0x24, 0x36, 0x72, 0x1c, 0x0a, 0xdf, 0xa2, 0x1f, 0xa3, 0x1f, 0xa5, 0x47, 0x8e, + 0x3d, 0x56, 0xf0, 0x45, 0xaa, 0x38, 0x44, 0x28, 0x4d, 0xa4, 0x72, 0xb3, 0xfc, 0x3e, 0xcf, 0xf3, + 0x7b, 0xf3, 0x3a, 0x2f, 0xfc, 0xc2, 0x7c, 0x19, 0xb3, 0x40, 0xe0, 0xd5, 0x8f, 0xbf, 0x23, 0xcc, + 0x7c, 0xe9, 0x12, 0x29, 0x45, 0xe8, 0xa5, 0x92, 0xba, 0x2b, 0x12, 0xa5, 0xd4, 0x5e, 0x0a, 0x2e, + 0x39, 0xfa, 0x2c, 0xe7, 0x34, 0x09, 0xd7, 0x8c, 0xca, 0x1b, 0x2e, 0x16, 0x76, 0x76, 0xf4, 0xa5, + 0x7d, 0x30, 0xdb, 0x99, 0xf9, 0xd3, 0xc7, 0x80, 0xf3, 0x20, 0xa2, 0x58, 0x19, 0xbc, 0xd4, 0xc7, + 0x84, 0x6d, 0x72, 0x77, 0xff, 0x4e, 0x87, 0xef, 0x26, 0xbe, 0xfc, 0x57, 0x44, 0x5f, 0x65, 0xc9, + 0x08, 0x41, 0x9d, 0x91, 0x98, 0x9a, 0xa0, 0x07, 0x06, 0x6d, 0x47, 0x9d, 0x11, 0x87, 0xef, 0x59, + 0x1a, 0x7b, 0x54, 0x3c, 0xef, 0xc3, 0x7c, 0xd5, 0x03, 0x83, 0xb7, 0xc3, 0xdf, 0xf6, 0x8b, 0x8d, + 0xd8, 0x13, 0x15, 0x50, 0x86, 0x9d, 0x69, 0x4e, 0x97, 0xd5, 0xdc, 0x67, 0xc0, 0x44, 0x8a, 0x90, + 0x05, 0x15, 0xe0, 0xeb, 0x93, 0x81, 0x17, 0x2a, 0xa0, 0x0a, 0x4c, 0x6a, 0xee, 0x91, 0x80, 0x1f, + 0x3c, 0xce, 0x23, 0x4a, 0x58, 0x85, 0xa8, 0x2b, 0xe2, 0x9f, 0x13, 0x88, 0xe3, 0x3c, 0xa1, 0x82, + 0x34, 0xbc, 0xba, 0x02, 0x8a, 0xa0, 0xe1, 0x47, 0x9c, 0x54, 0x1e, 0xd7, 0x6c, 0x28, 0xe2, 0xaf, + 0x13, 0x88, 0xff, 0x33, 0x7f, 0x85, 0xd7, 0xf1, 0xab, 0xd7, 0x68, 0x08, 0x8d, 0x79, 0x38, 0x9b, + 0x51, 0xe6, 0x4a, 0xee, 0xc6, 0x44, 0x2c, 0xa8, 0x5c, 0x46, 0x64, 0x4a, 0xcd, 0x66, 0x0f, 0x0c, + 0x5a, 0x4e, 0x27, 0x2f, 0x5e, 0xf2, 0xf3, 0x63, 0x69, 0xfc, 0x06, 0x36, 0x54, 0x47, 0xfd, 0x6f, + 0xb0, 0x5b, 0xf7, 0x7e, 0xa8, 0x7b, 0x10, 0xa8, 0xbf, 0x45, 0x77, 0x8e, 0xea, 0xba, 0xe1, 0x97, + 0xd5, 0xed, 0x42, 0xfd, 0x1d, 0x1a, 0xb5, 0x83, 0x2b, 0xcb, 0x5b, 0x85, 0xfc, 0x2b, 0xec, 0xd4, + 0x7c, 0x75, 0x59, 0x0c, 0x0e, 0xe2, 0xf1, 0xe4, 0x7e, 0x67, 0x81, 0xed, 0xce, 0x02, 0x8f, 0x3b, + 0x0b, 0xdc, 0xee, 0x2d, 0x6d, 0xbb, 0xb7, 0xb4, 0x87, 0xbd, 0xa5, 0x5d, 0x8f, 0x82, 0x50, 0xce, + 0x53, 0xcf, 0x9e, 0xf2, 0x18, 0x97, 0xe6, 0x8c, 0xf3, 0x39, 0xe3, 0x35, 0x2e, 0x96, 0x50, 0x6e, + 0x96, 0x34, 0x51, 0xab, 0xe8, 0x35, 0xd5, 0xe6, 0xfc, 0x7c, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xc5, + 0x10, 0x22, 0xe2, 0xa1, 0x03, 0x00, 0x00, +} + +func (m *NftAttributeValue) 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 *NftAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.HiddenToMarketplace { + i-- + if m.HiddenToMarketplace { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *NftAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftAttributeValue(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *NumberAttributeValue) 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 *NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintNftAttributeValue(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *StringAttributeValue) 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 *StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintNftAttributeValue(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BooleanAttributeValue) 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 *BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FloatAttributeValue) 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 *FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x9 + } + return len(dAtA) - i, nil +} + +func encodeVarintNftAttributeValue(dAtA []byte, offset int, v uint64) int { + offset -= sovNftAttributeValue(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + if m.Value != nil { + n += m.Value.Size() + } + if m.HiddenToMarketplace { + n += 2 + } + return n +} + +func (m *NftAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NftAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} +func (m *NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovNftAttributeValue(uint64(m.Value)) + } + return n +} + +func (m *StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovNftAttributeValue(uint64(l)) + } + return n +} + +func (m *BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + +func (m *FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 9 + } + return n +} + +func sovNftAttributeValue(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftAttributeValue(x uint64) (n int) { + return sovNftAttributeValue(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NftAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &NftAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HiddenToMarketplace", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HiddenToMarketplace = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NumberAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: NumberAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NumberAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StringAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: StringAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StringAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + 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 ErrInvalidLengthNftAttributeValue + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftAttributeValue + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BooleanAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: BooleanAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BooleanAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftAttributeValue + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FloatAttributeValue) 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 ErrIntOverflowNftAttributeValue + } + 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: FloatAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FloatAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftAttributeValue(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftAttributeValue + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftAttributeValue(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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrIntOverflowNftAttributeValue + } + 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, ErrInvalidLengthNftAttributeValue + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftAttributeValue + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftAttributeValue + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftAttributeValue = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftAttributeValue = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftAttributeValue = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_collection.pb.go b/x/nftmngr/types/v094/nft_collection.pb.go new file mode 100644 index 00000000..6f500314 --- /dev/null +++ b/x/nftmngr/types/v094/nft_collection.pb.go @@ -0,0 +1,417 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_collection.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NftCollection struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + NftDatas []*NftData `protobuf:"bytes,3,rep,name=nftDatas,proto3" json:"nftDatas,omitempty"` +} + +func (m *NftCollection) Reset() { *m = NftCollection{} } +func (m *NftCollection) String() string { return proto.CompactTextString(m) } +func (*NftCollection) ProtoMessage() {} +func (*NftCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_15d33874a271ee6f, []int{0} +} +func (m *NftCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftCollection.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 *NftCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftCollection.Merge(m, src) +} +func (m *NftCollection) XXX_Size() int { + return m.Size() +} +func (m *NftCollection) XXX_DiscardUnknown() { + xxx_messageInfo_NftCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_NftCollection proto.InternalMessageInfo + +func (m *NftCollection) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftCollection) GetTotal() uint64 { + if m != nil { + return m.Total + } + return 0 +} + +func (m *NftCollection) GetNftDatas() []*NftData { + if m != nil { + return m.NftDatas + } + return nil +} + +func init() { + proto.RegisterType((*NftCollection)(nil), "thesixnetwork.sixnft.nftmngr.v094.NftCollection") +} + +func init() { proto.RegisterFile("nftmngr/v094/nft_collection.proto", fileDescriptor_15d33874a271ee6f) } + +var fileDescriptor_15d33874a271ee6f = []byte{ + // 244 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0xce, 0xcf, + 0xc9, 0x49, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0xa4, 0xa4, 0x31, 0x4c, 0x49, 0x49, 0x2c, 0x49, 0x84, + 0xe8, 0x57, 0x9a, 0xcc, 0xc8, 0xc5, 0xeb, 0x97, 0x56, 0xe2, 0x0c, 0x37, 0x57, 0x48, 0x85, 0x8b, + 0x37, 0x2f, 0xad, 0x24, 0x38, 0x39, 0x23, 0x35, 0x37, 0xd1, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, + 0x81, 0x51, 0x83, 0x33, 0x08, 0x55, 0x50, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0xbf, 0x24, 0x31, 0x47, + 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0xc2, 0x11, 0x72, 0xe3, 0xe2, 0xc8, 0x4b, 0x2b, 0x71, + 0x49, 0x2c, 0x49, 0x2c, 0x96, 0x60, 0x56, 0x60, 0xd6, 0xe0, 0x36, 0xd2, 0xd2, 0x23, 0xe8, 0x40, + 0x3d, 0x3f, 0x88, 0x96, 0x20, 0xb8, 0x5e, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, + 0x31, 0x59, 0x1f, 0x62, 0xb2, 0x7e, 0x85, 0x3e, 0xcc, 0xbb, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x60, + 0x4f, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x3d, 0xe8, 0x85, + 0x51, 0x01, 0x00, 0x00, +} + +func (m *NftCollection) 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 *NftCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NftDatas) > 0 { + for iNdEx := len(m.NftDatas) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftDatas[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftCollection(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.Total != 0 { + i = encodeVarintNftCollection(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftCollection(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftCollection(dAtA []byte, offset int, v uint64) int { + offset -= sovNftCollection(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftCollection(uint64(l)) + } + if m.Total != 0 { + n += 1 + sovNftCollection(uint64(m.Total)) + } + if len(m.NftDatas) > 0 { + for _, e := range m.NftDatas { + l = e.Size() + n += 1 + l + sovNftCollection(uint64(l)) + } + } + return n +} + +func sovNftCollection(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftCollection(x uint64) (n int) { + return sovNftCollection(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftCollection) 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 ErrIntOverflowNftCollection + } + 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: NftCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + 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 ErrInvalidLengthNftCollection + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) + } + m.Total = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Total |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftDatas", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftCollection + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftCollection + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftCollection + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftDatas = append(m.NftDatas, &NftData{}) + if err := m.NftDatas[len(m.NftDatas)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftCollection(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftCollection + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftCollection(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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrIntOverflowNftCollection + } + 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, ErrInvalidLengthNftCollection + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftCollection + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftCollection + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftCollection = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftCollection = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftCollection = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_data.pb.go b/x/nftmngr/types/v094/nft_data.pb.go new file mode 100644 index 00000000..e46763e0 --- /dev/null +++ b/x/nftmngr/types/v094/nft_data.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_data.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OwnerAddressType int32 + +const ( + OwnerAddressType_ORIGIN_ADDRESS OwnerAddressType = 0 + OwnerAddressType_INTERNAL_ADDRESS OwnerAddressType = 1 +) + +var OwnerAddressType_name = map[int32]string{ + 0: "ORIGIN_ADDRESS", + 1: "INTERNAL_ADDRESS", +} + +var OwnerAddressType_value = map[string]int32{ + "ORIGIN_ADDRESS": 0, + "INTERNAL_ADDRESS": 1, +} + +func (x OwnerAddressType) String() string { + return proto.EnumName(OwnerAddressType_name, int32(x)) +} + +func (OwnerAddressType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_20e7cb4e48ed393e, []int{0} +} + +type NftData struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nft_schema_code,json=nftSchemaCode,proto3" json:"nft_schema_code,omitempty"` + TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + TokenOwner string `protobuf:"bytes,3,opt,name=token_owner,json=tokenOwner,proto3" json:"token_owner,omitempty"` + OwnerAddressType OwnerAddressType `protobuf:"varint,4,opt,name=owner_address_type,json=ownerAddressType,proto3,enum=thesixnetwork.sixnft.nftmngr.v094.OwnerAddressType" json:"owner_address_type,omitempty"` + OriginImage string `protobuf:"bytes,5,opt,name=origin_image,json=originImage,proto3" json:"origin_image,omitempty"` + OnchainImage string `protobuf:"bytes,6,opt,name=onchain_image,json=onchainImage,proto3" json:"onchain_image,omitempty"` + TokenUri string `protobuf:"bytes,7,opt,name=token_uri,json=tokenUri,proto3" json:"token_uri,omitempty"` + OriginAttributes []*NftAttributeValue `protobuf:"bytes,8,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + OnchainAttributes []*NftAttributeValue `protobuf:"bytes,9,rep,name=onchain_attributes,json=onchainAttributes,proto3" json:"onchain_attributes,omitempty"` +} + +func (m *NftData) Reset() { *m = NftData{} } +func (m *NftData) String() string { return proto.CompactTextString(m) } +func (*NftData) ProtoMessage() {} +func (*NftData) Descriptor() ([]byte, []int) { + return fileDescriptor_20e7cb4e48ed393e, []int{0} +} +func (m *NftData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NftData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NftData.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 *NftData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NftData.Merge(m, src) +} +func (m *NftData) XXX_Size() int { + return m.Size() +} +func (m *NftData) XXX_DiscardUnknown() { + xxx_messageInfo_NftData.DiscardUnknown(m) +} + +var xxx_messageInfo_NftData proto.InternalMessageInfo + +func (m *NftData) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *NftData) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *NftData) GetTokenOwner() string { + if m != nil { + return m.TokenOwner + } + return "" +} + +func (m *NftData) GetOwnerAddressType() OwnerAddressType { + if m != nil { + return m.OwnerAddressType + } + return OwnerAddressType_ORIGIN_ADDRESS +} + +func (m *NftData) GetOriginImage() string { + if m != nil { + return m.OriginImage + } + return "" +} + +func (m *NftData) GetOnchainImage() string { + if m != nil { + return m.OnchainImage + } + return "" +} + +func (m *NftData) GetTokenUri() string { + if m != nil { + return m.TokenUri + } + return "" +} + +func (m *NftData) GetOriginAttributes() []*NftAttributeValue { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *NftData) GetOnchainAttributes() []*NftAttributeValue { + if m != nil { + return m.OnchainAttributes + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v094.OwnerAddressType", OwnerAddressType_name, OwnerAddressType_value) + proto.RegisterType((*NftData)(nil), "thesixnetwork.sixnft.nftmngr.v094.NftData") +} + +func init() { proto.RegisterFile("nftmngr/v094/nft_data.proto", fileDescriptor_20e7cb4e48ed393e) } + +var fileDescriptor_20e7cb4e48ed393e = []byte{ + // 440 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0x4d, 0x6f, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0x0a, 0xeb, 0xea, 0x6e, 0x23, 0xb3, 0x38, 0x04, 0x26, 0x85, 0x0e, 0xa4, 0xa9, + 0xe2, 0x90, 0xa0, 0xad, 0x17, 0x24, 0x2e, 0x85, 0x4e, 0x28, 0x12, 0xca, 0xa4, 0x74, 0x70, 0xe0, + 0x62, 0xb9, 0x89, 0x93, 0x58, 0x23, 0x76, 0xe5, 0x3c, 0xd9, 0xcb, 0xb7, 0xe0, 0x63, 0x71, 0xdc, + 0x91, 0x23, 0x6a, 0x3f, 0x07, 0x12, 0x8a, 0x9d, 0x06, 0x28, 0x07, 0x90, 0x76, 0x4b, 0x7e, 0xcf, + 0xff, 0xff, 0xbc, 0xf9, 0x41, 0x07, 0x22, 0x85, 0x42, 0x64, 0xca, 0xbf, 0x7c, 0xf9, 0x6a, 0xec, + 0x8b, 0x14, 0x48, 0x42, 0x81, 0x7a, 0x0b, 0x25, 0x41, 0xe2, 0x43, 0xc8, 0x59, 0xc9, 0xaf, 0x05, + 0x83, 0x2b, 0xa9, 0x2e, 0xbc, 0xfa, 0x33, 0x05, 0xaf, 0x71, 0x78, 0xb5, 0xe3, 0xc9, 0xd1, 0x5f, + 0x7e, 0x0a, 0xa0, 0xf8, 0xbc, 0x02, 0x46, 0x2e, 0xe9, 0xe7, 0x8a, 0x99, 0x54, 0xcf, 0x7e, 0x74, + 0x51, 0x2f, 0x4c, 0x61, 0x4a, 0x81, 0xe2, 0x23, 0xf4, 0xb0, 0x16, 0x96, 0x71, 0xce, 0x0a, 0x4a, + 0x62, 0x99, 0x30, 0xc7, 0x1a, 0x5a, 0xa3, 0x7e, 0xb4, 0x2b, 0x52, 0x98, 0x69, 0xfa, 0x56, 0x26, + 0x0c, 0x3f, 0x46, 0xdb, 0x20, 0x2f, 0x98, 0x20, 0x3c, 0x71, 0xee, 0x69, 0x41, 0x4f, 0xff, 0x07, + 0x09, 0x7e, 0x8a, 0x06, 0x26, 0x24, 0xaf, 0x04, 0x53, 0x4e, 0x57, 0x47, 0x91, 0x46, 0x67, 0x35, + 0xc1, 0x14, 0x61, 0x1d, 0x22, 0x34, 0x49, 0x14, 0x2b, 0x4b, 0x02, 0x37, 0x0b, 0xe6, 0xdc, 0x1f, + 0x5a, 0xa3, 0xbd, 0xe3, 0x13, 0xef, 0x9f, 0x73, 0x79, 0x3a, 0xcb, 0xc4, 0x78, 0xcf, 0x6f, 0x16, + 0x2c, 0xb2, 0xe5, 0x06, 0xc1, 0x87, 0x68, 0x47, 0x2a, 0x9e, 0x71, 0x41, 0x78, 0x41, 0x33, 0xe6, + 0x3c, 0xd0, 0x4d, 0x0c, 0x0c, 0x0b, 0x6a, 0x84, 0x9f, 0xa3, 0x5d, 0x29, 0xe2, 0x9c, 0xb6, 0x9a, + 0x2d, 0xad, 0xd9, 0x69, 0xa0, 0x11, 0x1d, 0xa0, 0xbe, 0x99, 0xa5, 0x52, 0xdc, 0xe9, 0x69, 0x81, + 0x99, 0xfb, 0x83, 0xe2, 0x98, 0xa2, 0xfd, 0xa6, 0x48, 0xbb, 0xd7, 0xd2, 0xd9, 0x1e, 0x76, 0x47, + 0x83, 0xe3, 0xf1, 0x7f, 0x8c, 0x11, 0xa6, 0x30, 0x59, 0xfb, 0x3e, 0xd6, 0xcf, 0x11, 0xd9, 0x26, + 0x5d, 0x4b, 0x4b, 0x1c, 0x23, 0xbc, 0x6e, 0xf2, 0xb7, 0x1a, 0xfd, 0x3b, 0xd4, 0xd8, 0x6f, 0xf2, + 0xfd, 0x2a, 0xf2, 0xe2, 0x35, 0xb2, 0x37, 0x57, 0x8a, 0x31, 0xda, 0x3b, 0x8b, 0x82, 0x77, 0x41, + 0x48, 0x26, 0xd3, 0x69, 0x74, 0x3a, 0x9b, 0xd9, 0x1d, 0xfc, 0x08, 0xd9, 0x41, 0x78, 0x7e, 0x1a, + 0x85, 0x93, 0xf7, 0x2d, 0xb5, 0xde, 0x84, 0x5f, 0x97, 0xae, 0x75, 0xbb, 0x74, 0xad, 0xef, 0x4b, + 0xd7, 0xfa, 0xb2, 0x72, 0x3b, 0xb7, 0x2b, 0xb7, 0xf3, 0x6d, 0xe5, 0x76, 0x3e, 0x8d, 0x33, 0x0e, + 0x79, 0x35, 0xf7, 0x62, 0x59, 0xf8, 0x7f, 0xb4, 0xea, 0x9b, 0x56, 0xfd, 0x6b, 0x7f, 0x7d, 0xa1, + 0xf5, 0x05, 0x94, 0xfa, 0x4e, 0xe7, 0x5b, 0xfa, 0x28, 0x4f, 0x7e, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x02, 0x11, 0xd6, 0x01, 0xfe, 0x02, 0x00, 0x00, +} + +func (m *NftData) 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 *NftData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NftData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OnchainAttributes) > 0 { + for iNdEx := len(m.OnchainAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OnchainAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TokenUri) > 0 { + i -= len(m.TokenUri) + copy(dAtA[i:], m.TokenUri) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenUri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OnchainImage) > 0 { + i -= len(m.OnchainImage) + copy(dAtA[i:], m.OnchainImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OnchainImage))) + i-- + dAtA[i] = 0x32 + } + if len(m.OriginImage) > 0 { + i -= len(m.OriginImage) + copy(dAtA[i:], m.OriginImage) + i = encodeVarintNftData(dAtA, i, uint64(len(m.OriginImage))) + i-- + dAtA[i] = 0x2a + } + if m.OwnerAddressType != 0 { + i = encodeVarintNftData(dAtA, i, uint64(m.OwnerAddressType)) + i-- + dAtA[i] = 0x20 + } + if len(m.TokenOwner) > 0 { + i -= len(m.TokenOwner) + copy(dAtA[i:], m.TokenOwner) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenOwner))) + i-- + dAtA[i] = 0x1a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintNftData(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintNftData(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftData(dAtA []byte, offset int, v uint64) int { + offset -= sovNftData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NftData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenOwner) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if m.OwnerAddressType != 0 { + n += 1 + sovNftData(uint64(m.OwnerAddressType)) + } + l = len(m.OriginImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.OnchainImage) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + l = len(m.TokenUri) + if l > 0 { + n += 1 + l + sovNftData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + if len(m.OnchainAttributes) > 0 { + for _, e := range m.OnchainAttributes { + l = e.Size() + n += 1 + l + sovNftData(uint64(l)) + } + } + return n +} + +func sovNftData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftData(x uint64) (n int) { + return sovNftData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NftData) 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 ErrIntOverflowNftData + } + 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: NftData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NftData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenOwner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenOwner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerAddressType", wireType) + } + m.OwnerAddressType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerAddressType |= OwnerAddressType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainImage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + 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 ErrInvalidLengthNftData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &NftAttributeValue{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnchainAttributes = append(m.OnchainAttributes, &NftAttributeValue{}) + if err := m.OnchainAttributes[len(m.OnchainAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftData(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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrIntOverflowNftData + } + 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, ErrInvalidLengthNftData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_fee_balance.pb.go b/x/nftmngr/types/v094/nft_fee_balance.pb.go new file mode 100644 index 00000000..44e4dd28 --- /dev/null +++ b/x/nftmngr/types/v094/nft_fee_balance.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_fee_balance.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTFeeBalance struct { + // map fee_balances = 1; + FeeBalances []string `protobuf:"bytes,1,rep,name=fee_balances,json=feeBalances,proto3" json:"fee_balances,omitempty"` +} + +func (m *NFTFeeBalance) Reset() { *m = NFTFeeBalance{} } +func (m *NFTFeeBalance) String() string { return proto.CompactTextString(m) } +func (*NFTFeeBalance) ProtoMessage() {} +func (*NFTFeeBalance) Descriptor() ([]byte, []int) { + return fileDescriptor_3ff30f92038cd79a, []int{0} +} +func (m *NFTFeeBalance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeBalance.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 *NFTFeeBalance) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeBalance.Merge(m, src) +} +func (m *NFTFeeBalance) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeBalance) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeBalance.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeBalance proto.InternalMessageInfo + +func (m *NFTFeeBalance) GetFeeBalances() []string { + if m != nil { + return m.FeeBalances + } + return nil +} + +func init() { + proto.RegisterType((*NFTFeeBalance)(nil), "thesixnetwork.sixnft.nftmngr.v094.NFTFeeBalance") +} + +func init() { + proto.RegisterFile("nftmngr/v094/nft_fee_balance.proto", fileDescriptor_3ff30f92038cd79a) +} + +var fileDescriptor_3ff30f92038cd79a = []byte{ + // 182 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, + 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, + 0xd3, 0x4a, 0xf4, 0xa0, 0x1a, 0xf5, 0x40, 0x1a, 0x95, 0x8c, 0xb8, 0x78, 0xfd, 0xdc, 0x42, 0xdc, + 0x52, 0x53, 0x9d, 0x20, 0x3a, 0x85, 0x14, 0xb9, 0x78, 0x90, 0x0c, 0x2a, 0x96, 0x60, 0x54, 0x60, + 0xd6, 0xe0, 0x0c, 0xe2, 0x4e, 0x83, 0xab, 0x28, 0x76, 0xf2, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, + 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, + 0xc6, 0x63, 0x39, 0x86, 0x28, 0x93, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0x7d, 0x14, 0xbb, 0xf5, 0x21, 0x76, 0xeb, 0x57, 0xe8, 0xc3, 0x9c, 0x5d, 0x52, 0x59, 0x90, 0x5a, + 0x0c, 0x76, 0x7c, 0x12, 0x1b, 0xd8, 0xb5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0xfa, + 0x96, 0xa2, 0xd3, 0x00, 0x00, 0x00, +} + +func (m *NFTFeeBalance) 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 *NFTFeeBalance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeBalances) > 0 { + for iNdEx := len(m.FeeBalances) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.FeeBalances[iNdEx]) + copy(dAtA[i:], m.FeeBalances[iNdEx]) + i = encodeVarintNftFeeBalance(dAtA, i, uint64(len(m.FeeBalances[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeBalance(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeBalance(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTFeeBalance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.FeeBalances) > 0 { + for _, s := range m.FeeBalances { + l = len(s) + n += 1 + l + sovNftFeeBalance(uint64(l)) + } + } + return n +} + +func sovNftFeeBalance(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeBalance(x uint64) (n int) { + return sovNftFeeBalance(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTFeeBalance) 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 ErrIntOverflowNftFeeBalance + } + 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: NFTFeeBalance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeBalance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeBalances", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeBalance + } + 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 ErrInvalidLengthNftFeeBalance + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeBalance + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeBalances = append(m.FeeBalances, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeBalance(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeBalance + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeBalance(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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrIntOverflowNftFeeBalance + } + 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, ErrInvalidLengthNftFeeBalance + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeBalance + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeBalance + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeBalance = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeBalance = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeBalance = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_fee_config.pb.go b/x/nftmngr/types/v094/nft_fee_config.pb.go new file mode 100644 index 00000000..c02a95e5 --- /dev/null +++ b/x/nftmngr/types/v094/nft_fee_config.pb.go @@ -0,0 +1,780 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_fee_config.proto + +package v094 + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FeeDistributionMethod int32 + +const ( + FeeDistributionMethod_BURN FeeDistributionMethod = 0 + FeeDistributionMethod_REWARD_POOL FeeDistributionMethod = 1 + FeeDistributionMethod_TRANSFER FeeDistributionMethod = 2 +) + +var FeeDistributionMethod_name = map[int32]string{ + 0: "BURN", + 1: "REWARD_POOL", + 2: "TRANSFER", +} + +var FeeDistributionMethod_value = map[string]int32{ + "BURN": 0, + "REWARD_POOL": 1, + "TRANSFER": 2, +} + +func (x FeeDistributionMethod) String() string { + return proto.EnumName(FeeDistributionMethod_name, int32(x)) +} + +func (FeeDistributionMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ba2cda3bf4b38ef2, []int{0} +} + +type FeeDistribution struct { + Method FeeDistributionMethod `protobuf:"varint,1,opt,name=method,proto3,enum=thesixnetwork.sixnft.nftmngr.v094.FeeDistributionMethod" json:"method,omitempty"` + Portion float32 `protobuf:"fixed32,2,opt,name=portion,proto3" json:"portion,omitempty"` +} + +func (m *FeeDistribution) Reset() { *m = FeeDistribution{} } +func (m *FeeDistribution) String() string { return proto.CompactTextString(m) } +func (*FeeDistribution) ProtoMessage() {} +func (*FeeDistribution) Descriptor() ([]byte, []int) { + return fileDescriptor_ba2cda3bf4b38ef2, []int{0} +} +func (m *FeeDistribution) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeDistribution.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 *FeeDistribution) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeDistribution.Merge(m, src) +} +func (m *FeeDistribution) XXX_Size() int { + return m.Size() +} +func (m *FeeDistribution) XXX_DiscardUnknown() { + xxx_messageInfo_FeeDistribution.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeDistribution proto.InternalMessageInfo + +func (m *FeeDistribution) GetMethod() FeeDistributionMethod { + if m != nil { + return m.Method + } + return FeeDistributionMethod_BURN +} + +func (m *FeeDistribution) GetPortion() float32 { + if m != nil { + return m.Portion + } + return 0 +} + +type FeeConfig struct { + FeeAmount string `protobuf:"bytes,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` + FeeDistributions []*FeeDistribution `protobuf:"bytes,2,rep,name=fee_distributions,json=feeDistributions,proto3" json:"fee_distributions,omitempty"` +} + +func (m *FeeConfig) Reset() { *m = FeeConfig{} } +func (m *FeeConfig) String() string { return proto.CompactTextString(m) } +func (*FeeConfig) ProtoMessage() {} +func (*FeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ba2cda3bf4b38ef2, []int{1} +} +func (m *FeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FeeConfig.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 *FeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_FeeConfig.Merge(m, src) +} +func (m *FeeConfig) XXX_Size() int { + return m.Size() +} +func (m *FeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_FeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_FeeConfig proto.InternalMessageInfo + +func (m *FeeConfig) GetFeeAmount() string { + if m != nil { + return m.FeeAmount + } + return "" +} + +func (m *FeeConfig) GetFeeDistributions() []*FeeDistribution { + if m != nil { + return m.FeeDistributions + } + return nil +} + +type NFTFeeConfig struct { + SchemaFee *FeeConfig `protobuf:"bytes,1,opt,name=schema_fee,json=schemaFee,proto3" json:"schema_fee,omitempty"` +} + +func (m *NFTFeeConfig) Reset() { *m = NFTFeeConfig{} } +func (m *NFTFeeConfig) String() string { return proto.CompactTextString(m) } +func (*NFTFeeConfig) ProtoMessage() {} +func (*NFTFeeConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_ba2cda3bf4b38ef2, []int{2} +} +func (m *NFTFeeConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTFeeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTFeeConfig.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 *NFTFeeConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTFeeConfig.Merge(m, src) +} +func (m *NFTFeeConfig) XXX_Size() int { + return m.Size() +} +func (m *NFTFeeConfig) XXX_DiscardUnknown() { + xxx_messageInfo_NFTFeeConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTFeeConfig proto.InternalMessageInfo + +func (m *NFTFeeConfig) GetSchemaFee() *FeeConfig { + if m != nil { + return m.SchemaFee + } + return nil +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v094.FeeDistributionMethod", FeeDistributionMethod_name, FeeDistributionMethod_value) + proto.RegisterType((*FeeDistribution)(nil), "thesixnetwork.sixnft.nftmngr.v094.FeeDistribution") + proto.RegisterType((*FeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v094.FeeConfig") + proto.RegisterType((*NFTFeeConfig)(nil), "thesixnetwork.sixnft.nftmngr.v094.NFTFeeConfig") +} + +func init() { proto.RegisterFile("nftmngr/v094/nft_fee_config.proto", fileDescriptor_ba2cda3bf4b38ef2) } + +var fileDescriptor_ba2cda3bf4b38ef2 = []byte{ + // 363 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x4f, 0x4b, 0x4d, + 0x8d, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, + 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, + 0x4a, 0xf4, 0xa0, 0xfa, 0xf4, 0x40, 0xfa, 0x94, 0x6a, 0xb9, 0xf8, 0xdd, 0x52, 0x53, 0x5d, 0x32, + 0x8b, 0x4b, 0x8a, 0x32, 0x93, 0x4a, 0x4b, 0x32, 0xf3, 0xf3, 0x84, 0x02, 0xb8, 0xd8, 0x72, 0x53, + 0x4b, 0x32, 0xf2, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x2c, 0xf4, 0x08, 0x1a, 0xa3, + 0x87, 0x66, 0x86, 0x2f, 0x58, 0x7f, 0x10, 0xd4, 0x1c, 0x21, 0x09, 0x2e, 0xf6, 0x82, 0xfc, 0x22, + 0x90, 0x84, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x53, 0x10, 0x8c, 0xab, 0xd4, 0xcd, 0xc8, 0xc5, 0xe9, + 0x96, 0x9a, 0xea, 0x0c, 0x76, 0xb5, 0x90, 0x2c, 0x17, 0x17, 0xc8, 0x0f, 0x89, 0xb9, 0xf9, 0xa5, + 0x79, 0x25, 0x60, 0xdb, 0x39, 0x83, 0x38, 0xd3, 0x52, 0x53, 0x1d, 0xc1, 0x02, 0x42, 0xf1, 0x5c, + 0x82, 0x20, 0xe9, 0x14, 0x24, 0x8b, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x8c, 0x48, + 0x77, 0x63, 0x90, 0x40, 0x1a, 0xaa, 0x40, 0xb1, 0x52, 0x34, 0x17, 0x8f, 0x9f, 0x5b, 0x08, 0xc2, + 0x3d, 0xde, 0x5c, 0x5c, 0xc5, 0xc9, 0x19, 0xa9, 0xb9, 0x89, 0xa0, 0xa0, 0x05, 0xbb, 0x87, 0xdb, + 0x48, 0x87, 0x38, 0x9b, 0x20, 0x26, 0x04, 0x71, 0x42, 0xf4, 0xbb, 0xa5, 0xa6, 0x6a, 0x39, 0x70, + 0x89, 0x62, 0x0d, 0x25, 0x21, 0x0e, 0x2e, 0x16, 0xa7, 0xd0, 0x20, 0x3f, 0x01, 0x06, 0x21, 0x7e, + 0x2e, 0xee, 0x20, 0xd7, 0x70, 0xc7, 0x20, 0x97, 0xf8, 0x00, 0x7f, 0x7f, 0x1f, 0x01, 0x46, 0x21, + 0x1e, 0x2e, 0x8e, 0x90, 0x20, 0x47, 0xbf, 0x60, 0x37, 0xd7, 0x20, 0x01, 0x26, 0x27, 0xbf, 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, 0x32, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, + 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x47, 0x71, 0x9e, 0x3e, 0xc4, 0x79, 0xfa, 0x15, 0xfa, 0xb0, 0xd4, + 0x52, 0x52, 0x59, 0x90, 0x5a, 0x0c, 0x4e, 0x33, 0x49, 0x6c, 0xe0, 0x54, 0x62, 0x0c, 0x08, 0x00, + 0x00, 0xff, 0xff, 0xca, 0x6d, 0x7c, 0x76, 0x4a, 0x02, 0x00, 0x00, +} + +func (m *FeeDistribution) 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 *FeeDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Portion != 0 { + i -= 4 + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Portion)))) + i-- + dAtA[i] = 0x15 + } + if m.Method != 0 { + i = encodeVarintNftFeeConfig(dAtA, i, uint64(m.Method)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *FeeConfig) 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 *FeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FeeDistributions) > 0 { + for iNdEx := len(m.FeeDistributions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FeeDistributions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.FeeAmount) > 0 { + i -= len(m.FeeAmount) + copy(dAtA[i:], m.FeeAmount) + i = encodeVarintNftFeeConfig(dAtA, i, uint64(len(m.FeeAmount))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTFeeConfig) 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 *NFTFeeConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTFeeConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SchemaFee != nil { + { + size, err := m.SchemaFee.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftFeeConfig(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftFeeConfig(dAtA []byte, offset int, v uint64) int { + offset -= sovNftFeeConfig(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FeeDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Method != 0 { + n += 1 + sovNftFeeConfig(uint64(m.Method)) + } + if m.Portion != 0 { + n += 5 + } + return n +} + +func (m *FeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FeeAmount) + if l > 0 { + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + if len(m.FeeDistributions) > 0 { + for _, e := range m.FeeDistributions { + l = e.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + } + return n +} + +func (m *NFTFeeConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SchemaFee != nil { + l = m.SchemaFee.Size() + n += 1 + l + sovNftFeeConfig(uint64(l)) + } + return n +} + +func sovNftFeeConfig(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftFeeConfig(x uint64) (n int) { + return sovNftFeeConfig(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FeeDistribution) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeDistribution: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeDistribution: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Method", wireType) + } + m.Method = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Method |= FeeDistributionMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Portion", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Portion = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: FeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + 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 ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeAmount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FeeDistributions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FeeDistributions = append(m.FeeDistributions, &FeeDistribution{}) + if err := m.FeeDistributions[len(m.FeeDistributions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTFeeConfig) 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 ErrIntOverflowNftFeeConfig + } + 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: NFTFeeConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTFeeConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaFee", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftFeeConfig + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftFeeConfig + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftFeeConfig + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SchemaFee == nil { + m.SchemaFee = &FeeConfig{} + } + if err := m.SchemaFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftFeeConfig(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftFeeConfig + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftFeeConfig(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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrIntOverflowNftFeeConfig + } + 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, ErrInvalidLengthNftFeeConfig + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftFeeConfig + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftFeeConfig + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftFeeConfig = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftFeeConfig = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftFeeConfig = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_schema.pb.go b/x/nftmngr/types/v094/nft_schema.pb.go new file mode 100644 index 00000000..4c46cc4d --- /dev/null +++ b/x/nftmngr/types/v094/nft_schema.pb.go @@ -0,0 +1,1285 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_schema.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchema struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + OriginData *OriginData `protobuf:"bytes,5,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,6,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,7,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,8,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchema) Reset() { *m = NFTSchema{} } +func (m *NFTSchema) String() string { return proto.CompactTextString(m) } +func (*NFTSchema) ProtoMessage() {} +func (*NFTSchema) Descriptor() ([]byte, []int) { + return fileDescriptor_0751b5d1587a0c1a, []int{0} +} +func (m *NFTSchema) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchema.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 *NFTSchema) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchema.Merge(m, src) +} +func (m *NFTSchema) XXX_Size() int { + return m.Size() +} +func (m *NFTSchema) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchema.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchema proto.InternalMessageInfo + +func (m *NFTSchema) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchema) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchema) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchema) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchema) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchema) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchema) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchema) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +type NFTSchemaINPUT struct { + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + SystemActioners []string `protobuf:"bytes,5,rep,name=system_actioners,json=systemActioners,proto3" json:"system_actioners,omitempty"` + OriginData *OriginData `protobuf:"bytes,6,opt,name=origin_data,json=originData,proto3" json:"origin_data,omitempty"` + OnchainData *OnChainData `protobuf:"bytes,7,opt,name=onchain_data,json=onchainData,proto3" json:"onchain_data,omitempty"` + IsVerified bool `protobuf:"varint,8,opt,name=isVerified,proto3" json:"isVerified,omitempty"` + MintAuthorization string `protobuf:"bytes,9,opt,name=mint_authorization,json=mintAuthorization,proto3" json:"mint_authorization,omitempty"` +} + +func (m *NFTSchemaINPUT) Reset() { *m = NFTSchemaINPUT{} } +func (m *NFTSchemaINPUT) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaINPUT) ProtoMessage() {} +func (*NFTSchemaINPUT) Descriptor() ([]byte, []int) { + return fileDescriptor_0751b5d1587a0c1a, []int{1} +} +func (m *NFTSchemaINPUT) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaINPUT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaINPUT.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 *NFTSchemaINPUT) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaINPUT.Merge(m, src) +} +func (m *NFTSchemaINPUT) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaINPUT) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaINPUT.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaINPUT proto.InternalMessageInfo + +func (m *NFTSchemaINPUT) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *NFTSchemaINPUT) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NFTSchemaINPUT) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *NFTSchemaINPUT) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *NFTSchemaINPUT) GetSystemActioners() []string { + if m != nil { + return m.SystemActioners + } + return nil +} + +func (m *NFTSchemaINPUT) GetOriginData() *OriginData { + if m != nil { + return m.OriginData + } + return nil +} + +func (m *NFTSchemaINPUT) GetOnchainData() *OnChainData { + if m != nil { + return m.OnchainData + } + return nil +} + +func (m *NFTSchemaINPUT) GetIsVerified() bool { + if m != nil { + return m.IsVerified + } + return false +} + +func (m *NFTSchemaINPUT) GetMintAuthorization() string { + if m != nil { + return m.MintAuthorization + } + return "" +} + +func init() { + proto.RegisterType((*NFTSchema)(nil), "thesixnetwork.sixnft.nftmngr.v094.NFTSchema") + proto.RegisterType((*NFTSchemaINPUT)(nil), "thesixnetwork.sixnft.nftmngr.v094.NFTSchemaINPUT") +} + +func init() { proto.RegisterFile("nftmngr/v094/nft_schema.proto", fileDescriptor_0751b5d1587a0c1a) } + +var fileDescriptor_0751b5d1587a0c1a = []byte{ + // 411 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xbf, 0xae, 0xd3, 0x30, + 0x14, 0xc6, 0x9b, 0xdb, 0xdb, 0xde, 0xc6, 0x41, 0xfc, 0xb1, 0x18, 0xac, 0x2b, 0x61, 0x85, 0x3b, + 0x85, 0xe1, 0x3a, 0x08, 0xba, 0x30, 0x16, 0x10, 0x12, 0x4b, 0x80, 0x50, 0x18, 0x58, 0x22, 0x37, + 0x71, 0x1a, 0x0b, 0xc5, 0xae, 0x6c, 0x97, 0xb6, 0xbc, 0x03, 0x12, 0x8f, 0xc5, 0xd8, 0x91, 0x05, + 0x09, 0xb5, 0x2f, 0x82, 0xe2, 0xb4, 0x25, 0x41, 0x42, 0x74, 0x28, 0xdb, 0xc9, 0xef, 0xe4, 0x7c, + 0x3e, 0xe7, 0x7c, 0x3a, 0xe0, 0x9e, 0xc8, 0x4d, 0x29, 0xa6, 0x2a, 0xfc, 0xf4, 0xf0, 0xc9, 0x30, + 0x14, 0xb9, 0x49, 0x74, 0x5a, 0xb0, 0x92, 0x92, 0x99, 0x92, 0x46, 0xc2, 0xfb, 0xa6, 0x60, 0x9a, + 0x2f, 0x05, 0x33, 0x0b, 0xa9, 0x3e, 0x92, 0x2a, 0xcc, 0x0d, 0xd9, 0xd5, 0x90, 0xaa, 0xe6, 0xd2, + 0x6f, 0x29, 0x48, 0x91, 0xa4, 0x05, 0xe5, 0x22, 0xc9, 0xa8, 0xd9, 0x89, 0x5c, 0xe2, 0xf6, 0x1f, + 0x8a, 0x4f, 0x5b, 0xf9, 0xab, 0x1f, 0x67, 0xc0, 0x8d, 0x5e, 0x8c, 0xdf, 0xda, 0x87, 0x21, 0x04, + 0xe7, 0xa9, 0xcc, 0x18, 0x72, 0x7c, 0x27, 0x70, 0x63, 0x1b, 0x57, 0x4c, 0xd0, 0x92, 0xa1, 0xb3, + 0x9a, 0x55, 0x31, 0xbc, 0x0b, 0x7a, 0x72, 0x21, 0x98, 0x42, 0x5d, 0x0b, 0xeb, 0x0f, 0xe8, 0x03, + 0x2f, 0x63, 0x3a, 0x55, 0x7c, 0x66, 0xb8, 0x14, 0xe8, 0xdc, 0xe6, 0x9a, 0x08, 0x46, 0xc0, 0x6b, + 0xb4, 0x80, 0x7a, 0xbe, 0x13, 0x78, 0x8f, 0xae, 0xc9, 0x3f, 0x07, 0x25, 0xaf, 0x6c, 0xd5, 0x73, + 0x6a, 0x68, 0x0c, 0xe4, 0x21, 0x86, 0x6f, 0xc0, 0x0d, 0x29, 0x7e, 0xcf, 0x8c, 0xfa, 0x56, 0x90, + 0x1c, 0x23, 0x28, 0x9e, 0x55, 0x65, 0x56, 0xd1, 0xdb, 0x69, 0x58, 0x49, 0x0c, 0x00, 0xd7, 0xef, + 0x99, 0xe2, 0x39, 0x67, 0x19, 0xba, 0xf0, 0x9d, 0x60, 0x10, 0x37, 0x08, 0xbc, 0x06, 0xb0, 0xe4, + 0xc2, 0x24, 0x74, 0x6e, 0x0a, 0xa9, 0xf8, 0x67, 0x6a, 0x67, 0x1d, 0xd8, 0x59, 0xef, 0x54, 0x99, + 0x51, 0x33, 0x71, 0xf5, 0xa5, 0x0b, 0x6e, 0x1e, 0xf6, 0xfb, 0x32, 0x7a, 0xfd, 0x6e, 0xfc, 0xdf, + 0x97, 0xfc, 0x00, 0xdc, 0xd6, 0x2b, 0x6d, 0x58, 0x99, 0xd0, 0xb4, 0x02, 0x4c, 0x69, 0xd4, 0xf3, + 0xbb, 0x81, 0x1b, 0xdf, 0xaa, 0xf9, 0x68, 0x8f, 0xff, 0xf4, 0xa3, 0x7f, 0x6a, 0x3f, 0x2e, 0x4e, + 0xed, 0xc7, 0xe0, 0x48, 0x3f, 0xdc, 0xbf, 0xf8, 0xf1, 0x34, 0xfa, 0xb6, 0xc1, 0xce, 0x7a, 0x83, + 0x9d, 0x9f, 0x1b, 0xec, 0x7c, 0xdd, 0xe2, 0xce, 0x7a, 0x8b, 0x3b, 0xdf, 0xb7, 0xb8, 0xf3, 0x61, + 0x38, 0xe5, 0xa6, 0x98, 0x4f, 0x48, 0x2a, 0xcb, 0xb0, 0xd5, 0x6f, 0x58, 0xf7, 0x1b, 0x2e, 0xc3, + 0xfd, 0x2d, 0x99, 0xd5, 0x8c, 0x69, 0x7b, 0x51, 0x93, 0xbe, 0x3d, 0xa3, 0xc7, 0xbf, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xbc, 0xaf, 0x90, 0x3b, 0xcc, 0x03, 0x00, 0x00, +} + +func (m *NFTSchema) 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 *NFTSchema) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchema) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x42 + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NFTSchemaINPUT) 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 *NFTSchemaINPUT) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaINPUT) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.MintAuthorization) > 0 { + i -= len(m.MintAuthorization) + copy(dAtA[i:], m.MintAuthorization) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.MintAuthorization))) + i-- + dAtA[i] = 0x4a + } + if m.IsVerified { + i-- + if m.IsVerified { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.OnchainData != nil { + { + size, err := m.OnchainData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.OriginData != nil { + { + size, err := m.OriginData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNftSchema(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.SystemActioners) > 0 { + for iNdEx := len(m.SystemActioners) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SystemActioners[iNdEx]) + copy(dAtA[i:], m.SystemActioners[iNdEx]) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.SystemActioners[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.Code) > 0 { + i -= len(m.Code) + copy(dAtA[i:], m.Code) + i = encodeVarintNftSchema(dAtA, i, uint64(len(m.Code))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchema(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchema(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchema) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func (m *NFTSchemaINPUT) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Code) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + if len(m.SystemActioners) > 0 { + for _, s := range m.SystemActioners { + l = len(s) + n += 1 + l + sovNftSchema(uint64(l)) + } + } + if m.OriginData != nil { + l = m.OriginData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.OnchainData != nil { + l = m.OnchainData.Size() + n += 1 + l + sovNftSchema(uint64(l)) + } + if m.IsVerified { + n += 2 + } + l = len(m.MintAuthorization) + if l > 0 { + n += 1 + l + sovNftSchema(uint64(l)) + } + return n +} + +func sovNftSchema(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchema(x uint64) (n int) { + return sovNftSchema(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchema) 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 ErrIntOverflowNftSchema + } + 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: NFTSchema: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchema: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NFTSchemaINPUT) 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 ErrIntOverflowNftSchema + } + 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: NFTSchemaINPUT: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaINPUT: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Code = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SystemActioners", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SystemActioners = append(m.SystemActioners, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OriginData == nil { + m.OriginData = &OriginData{} + } + if err := m.OriginData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnchainData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNftSchema + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OnchainData == nil { + m.OnchainData = &OnChainData{} + } + if err := m.OnchainData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsVerified", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsVerified = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintAuthorization", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchema + } + 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 ErrInvalidLengthNftSchema + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchema + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintAuthorization = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchema(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchema + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchema(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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrIntOverflowNftSchema + } + 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, ErrInvalidLengthNftSchema + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchema + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchema + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchema = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchema = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchema = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/nft_schema_by_contract.pb.go b/x/nftmngr/types/v094/nft_schema_by_contract.pb.go new file mode 100644 index 00000000..e9947a64 --- /dev/null +++ b/x/nftmngr/types/v094/nft_schema_by_contract.pb.go @@ -0,0 +1,375 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/nft_schema_by_contract.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type NFTSchemaByContract struct { + OriginContractAddress string `protobuf:"bytes,1,opt,name=originContractAddress,proto3" json:"originContractAddress,omitempty"` + SchemaCodes []string `protobuf:"bytes,2,rep,name=schemaCodes,proto3" json:"schemaCodes,omitempty"` +} + +func (m *NFTSchemaByContract) Reset() { *m = NFTSchemaByContract{} } +func (m *NFTSchemaByContract) String() string { return proto.CompactTextString(m) } +func (*NFTSchemaByContract) ProtoMessage() {} +func (*NFTSchemaByContract) Descriptor() ([]byte, []int) { + return fileDescriptor_d2518749f51be707, []int{0} +} +func (m *NFTSchemaByContract) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NFTSchemaByContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NFTSchemaByContract.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 *NFTSchemaByContract) XXX_Merge(src proto.Message) { + xxx_messageInfo_NFTSchemaByContract.Merge(m, src) +} +func (m *NFTSchemaByContract) XXX_Size() int { + return m.Size() +} +func (m *NFTSchemaByContract) XXX_DiscardUnknown() { + xxx_messageInfo_NFTSchemaByContract.DiscardUnknown(m) +} + +var xxx_messageInfo_NFTSchemaByContract proto.InternalMessageInfo + +func (m *NFTSchemaByContract) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *NFTSchemaByContract) GetSchemaCodes() []string { + if m != nil { + return m.SchemaCodes + } + return nil +} + +func init() { + proto.RegisterType((*NFTSchemaByContract)(nil), "thesixnetwork.sixnft.nftmngr.v094.NFTSchemaByContract") +} + +func init() { + proto.RegisterFile("nftmngr/v094/nft_schema_by_contract.proto", fileDescriptor_d2518749f51be707) +} + +var fileDescriptor_d2518749f51be707 = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x4b, 0x2b, 0x89, 0x2f, 0x4e, 0xce, + 0x48, 0xcd, 0x4d, 0x8c, 0x4f, 0xaa, 0x8c, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0x4a, 0x4c, 0x2e, 0xd1, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x72, 0xb9, 0x84, 0xfd, 0xdc, 0x42, 0x82, 0xc1, 0x26, 0x38, 0x55, 0x3a, 0x43, 0xf5, 0x0b, 0x99, + 0x70, 0x89, 0xe6, 0x17, 0x65, 0xa6, 0x67, 0xe6, 0xc1, 0x44, 0x1c, 0x53, 0x52, 0x8a, 0x52, 0x8b, + 0x8b, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0xb0, 0x4b, 0x0a, 0x29, 0x70, 0x71, 0x43, 0xdc, + 0xe2, 0x9c, 0x9f, 0x92, 0x5a, 0x2c, 0xc1, 0xa4, 0xc0, 0xac, 0xc1, 0x19, 0x84, 0x2c, 0xe4, 0xe4, + 0x77, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, + 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x26, 0xe9, 0x99, 0x25, 0x19, + 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x28, 0xce, 0xd6, 0x87, 0x38, 0x5b, 0xbf, 0x42, 0x1f, + 0xe6, 0xf1, 0x92, 0xca, 0x82, 0xd4, 0x62, 0xb0, 0xf7, 0x93, 0xd8, 0xc0, 0x1e, 0x35, 0x06, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x5a, 0xcc, 0x58, 0x2d, 0x15, 0x01, 0x00, 0x00, +} + +func (m *NFTSchemaByContract) 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 *NFTSchemaByContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NFTSchemaByContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SchemaCodes) > 0 { + for iNdEx := len(m.SchemaCodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SchemaCodes[iNdEx]) + copy(dAtA[i:], m.SchemaCodes[iNdEx]) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.SchemaCodes[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintNftSchemaByContract(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNftSchemaByContract(dAtA []byte, offset int, v uint64) int { + offset -= sovNftSchemaByContract(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *NFTSchemaByContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + if len(m.SchemaCodes) > 0 { + for _, s := range m.SchemaCodes { + l = len(s) + n += 1 + l + sovNftSchemaByContract(uint64(l)) + } + } + return n +} + +func sovNftSchemaByContract(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNftSchemaByContract(x uint64) (n int) { + return sovNftSchemaByContract(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *NFTSchemaByContract) 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 ErrIntOverflowNftSchemaByContract + } + 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: NFTSchemaByContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NFTSchemaByContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchemaCodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftSchemaByContract + } + 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 ErrInvalidLengthNftSchemaByContract + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchemaCodes = append(m.SchemaCodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNftSchemaByContract(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNftSchemaByContract + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNftSchemaByContract(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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrIntOverflowNftSchemaByContract + } + 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, ErrInvalidLengthNftSchemaByContract + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNftSchemaByContract + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNftSchemaByContract + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNftSchemaByContract = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNftSchemaByContract = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNftSchemaByContract = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/on_chain_data.pb.go b/x/nftmngr/types/v094/on_chain_data.pb.go new file mode 100644 index 00000000..d77ffa7d --- /dev/null +++ b/x/nftmngr/types/v094/on_chain_data.pb.go @@ -0,0 +1,735 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/on_chain_data.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type FlagStatus struct { + StatusName string `protobuf:"bytes,1,opt,name=status_name,json=statusName,proto3" json:"status_name,omitempty"` + StatusValue bool `protobuf:"varint,2,opt,name=status_value,json=statusValue,proto3" json:"status_value,omitempty"` +} + +func (m *FlagStatus) Reset() { *m = FlagStatus{} } +func (m *FlagStatus) String() string { return proto.CompactTextString(m) } +func (*FlagStatus) ProtoMessage() {} +func (*FlagStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_bacb125cbd6f1fc0, []int{0} +} +func (m *FlagStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FlagStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FlagStatus.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 *FlagStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_FlagStatus.Merge(m, src) +} +func (m *FlagStatus) XXX_Size() int { + return m.Size() +} +func (m *FlagStatus) XXX_DiscardUnknown() { + xxx_messageInfo_FlagStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_FlagStatus proto.InternalMessageInfo + +func (m *FlagStatus) GetStatusName() string { + if m != nil { + return m.StatusName + } + return "" +} + +func (m *FlagStatus) GetStatusValue() bool { + if m != nil { + return m.StatusValue + } + return false +} + +type OnChainData struct { + NftAttributes []*AttributeDefinition `protobuf:"bytes,1,rep,name=nft_attributes,json=nftAttributes,proto3" json:"nft_attributes,omitempty"` + TokenAttributes []*AttributeDefinition `protobuf:"bytes,2,rep,name=token_attributes,json=tokenAttributes,proto3" json:"token_attributes,omitempty"` + Actions []*Action `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` + Status []*FlagStatus `protobuf:"bytes,4,rep,name=status,proto3" json:"status,omitempty"` +} + +func (m *OnChainData) Reset() { *m = OnChainData{} } +func (m *OnChainData) String() string { return proto.CompactTextString(m) } +func (*OnChainData) ProtoMessage() {} +func (*OnChainData) Descriptor() ([]byte, []int) { + return fileDescriptor_bacb125cbd6f1fc0, []int{1} +} +func (m *OnChainData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OnChainData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OnChainData.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 *OnChainData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OnChainData.Merge(m, src) +} +func (m *OnChainData) XXX_Size() int { + return m.Size() +} +func (m *OnChainData) XXX_DiscardUnknown() { + xxx_messageInfo_OnChainData.DiscardUnknown(m) +} + +var xxx_messageInfo_OnChainData proto.InternalMessageInfo + +func (m *OnChainData) GetNftAttributes() []*AttributeDefinition { + if m != nil { + return m.NftAttributes + } + return nil +} + +func (m *OnChainData) GetTokenAttributes() []*AttributeDefinition { + if m != nil { + return m.TokenAttributes + } + return nil +} + +func (m *OnChainData) GetActions() []*Action { + if m != nil { + return m.Actions + } + return nil +} + +func (m *OnChainData) GetStatus() []*FlagStatus { + if m != nil { + return m.Status + } + return nil +} + +func init() { + proto.RegisterType((*FlagStatus)(nil), "thesixnetwork.sixnft.nftmngr.v094.FlagStatus") + proto.RegisterType((*OnChainData)(nil), "thesixnetwork.sixnft.nftmngr.v094.OnChainData") +} + +func init() { proto.RegisterFile("nftmngr/v094/on_chain_data.proto", fileDescriptor_bacb125cbd6f1fc0) } + +var fileDescriptor_bacb125cbd6f1fc0 = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcd, 0x4e, 0xea, 0x40, + 0x14, 0xc7, 0x19, 0xb8, 0xe1, 0xde, 0x3b, 0xf8, 0x95, 0xae, 0x2a, 0x8b, 0x5a, 0x58, 0x28, 0x2e, + 0x9c, 0x1a, 0x25, 0x26, 0x2e, 0x15, 0x74, 0x89, 0xa6, 0x26, 0x2e, 0x4c, 0x4c, 0x33, 0xc0, 0x14, + 0x26, 0xd0, 0x19, 0xd2, 0x39, 0x45, 0x7c, 0x0b, 0x1f, 0xcb, 0x25, 0x4b, 0x13, 0x37, 0x06, 0x5e, + 0xc4, 0x74, 0x5a, 0x3e, 0xba, 0x92, 0xc4, 0xdd, 0xe4, 0xcc, 0xf9, 0xfd, 0xfe, 0x99, 0x33, 0x07, + 0xdb, 0xc2, 0x87, 0x40, 0xf4, 0x42, 0x67, 0x7c, 0x7a, 0x59, 0x77, 0xa4, 0xf0, 0x3a, 0x7d, 0xca, + 0x85, 0xd7, 0xa5, 0x40, 0xc9, 0x28, 0x94, 0x20, 0x8d, 0x0a, 0xf4, 0x99, 0xe2, 0x13, 0xc1, 0xe0, + 0x45, 0x86, 0x03, 0x12, 0x1f, 0x7d, 0x20, 0x29, 0x46, 0x62, 0xac, 0x7c, 0x94, 0x91, 0x50, 0x80, + 0x90, 0xb7, 0x23, 0x60, 0x5e, 0x97, 0xf9, 0x5c, 0x70, 0xe0, 0x52, 0x24, 0xae, 0xf2, 0x7e, 0xb6, + 0xb1, 0xb3, 0x76, 0x75, 0x98, 0xb9, 0x12, 0x3e, 0x78, 0x2b, 0xcf, 0x98, 0x0e, 0x23, 0x96, 0xf4, + 0x55, 0xef, 0x31, 0xbe, 0x1d, 0xd2, 0xde, 0x03, 0x50, 0x88, 0x94, 0x71, 0x80, 0x4b, 0x4a, 0x9f, + 0x3c, 0x41, 0x03, 0x66, 0x22, 0x1b, 0xd5, 0xfe, 0xbb, 0x38, 0x29, 0xb5, 0x68, 0xc0, 0x8c, 0x0a, + 0xde, 0x4a, 0x1b, 0xb4, 0xc4, 0xcc, 0xdb, 0xa8, 0xf6, 0xcf, 0x4d, 0xa1, 0xc7, 0xb8, 0x54, 0xfd, + 0xcc, 0xe3, 0xd2, 0x9d, 0x68, 0xc4, 0xef, 0x6e, 0x52, 0xa0, 0xc6, 0x33, 0xde, 0xc9, 0xc4, 0x2b, + 0x13, 0xd9, 0x85, 0x5a, 0xe9, 0xec, 0x82, 0xfc, 0x38, 0x09, 0x72, 0xb5, 0x80, 0x9a, 0xcb, 0xa7, + 0xbb, 0xdb, 0xc2, 0x87, 0x65, 0x5d, 0x19, 0x14, 0xef, 0x81, 0x1c, 0x30, 0xb1, 0x1e, 0x90, 0xff, + 0x55, 0xc0, 0xae, 0xf6, 0xad, 0x45, 0x34, 0xf0, 0xdf, 0x64, 0xb6, 0xca, 0x2c, 0x68, 0xf3, 0xf1, + 0x26, 0x66, 0x4d, 0xb8, 0x0b, 0xd2, 0xb8, 0xc1, 0xc5, 0x64, 0x4a, 0xe6, 0x1f, 0xed, 0x38, 0xd9, + 0xc0, 0xb1, 0xfa, 0x19, 0x37, 0x85, 0xaf, 0x5b, 0xef, 0x33, 0x0b, 0x4d, 0x67, 0x16, 0xfa, 0x9a, + 0x59, 0xe8, 0x6d, 0x6e, 0xe5, 0xa6, 0x73, 0x2b, 0xf7, 0x31, 0xb7, 0x72, 0x4f, 0xf5, 0x1e, 0x87, + 0x7e, 0xd4, 0x26, 0x1d, 0x19, 0x38, 0x19, 0xb5, 0x93, 0xa8, 0x9d, 0x89, 0xb3, 0xd8, 0x09, 0x78, + 0x1d, 0x31, 0xa5, 0x37, 0xa3, 0x5d, 0xd4, 0x6b, 0x70, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x37, + 0xdd, 0x16, 0x50, 0xb9, 0x02, 0x00, 0x00, +} + +func (m *FlagStatus) 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 *FlagStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FlagStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StatusValue { + i-- + if m.StatusValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.StatusName) > 0 { + i -= len(m.StatusName) + copy(dAtA[i:], m.StatusName) + i = encodeVarintOnChainData(dAtA, i, uint64(len(m.StatusName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OnChainData) 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 *OnChainData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OnChainData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.TokenAttributes) > 0 { + for iNdEx := len(m.TokenAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.NftAttributes) > 0 { + for iNdEx := len(m.NftAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NftAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOnChainData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintOnChainData(dAtA []byte, offset int, v uint64) int { + offset -= sovOnChainData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *FlagStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StatusName) + if l > 0 { + n += 1 + l + sovOnChainData(uint64(l)) + } + if m.StatusValue { + n += 2 + } + return n +} + +func (m *OnChainData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.NftAttributes) > 0 { + for _, e := range m.NftAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.TokenAttributes) > 0 { + for _, e := range m.TokenAttributes { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovOnChainData(uint64(l)) + } + } + return n +} + +func sovOnChainData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOnChainData(x uint64) (n int) { + return sovOnChainData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *FlagStatus) 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 ErrIntOverflowOnChainData + } + 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: FlagStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FlagStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + 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 ErrInvalidLengthOnChainData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StatusName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StatusValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.StatusValue = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OnChainData) 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 ErrIntOverflowOnChainData + } + 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: OnChainData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OnChainData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftAttributes = append(m.NftAttributes, &AttributeDefinition{}) + if err := m.NftAttributes[len(m.NftAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenAttributes = append(m.TokenAttributes, &AttributeDefinition{}) + if err := m.TokenAttributes[len(m.TokenAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &Action{}) + if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOnChainData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOnChainData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOnChainData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = append(m.Status, &FlagStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOnChainData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOnChainData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOnChainData(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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrIntOverflowOnChainData + } + 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, ErrInvalidLengthOnChainData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOnChainData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOnChainData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOnChainData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOnChainData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOnChainData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/opensea_display_option.pb.go b/x/nftmngr/types/v094/opensea_display_option.pb.go new file mode 100644 index 00000000..981f1e3c --- /dev/null +++ b/x/nftmngr/types/v094/opensea_display_option.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/opensea_display_option.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type OpenseaDisplayOption struct { + DisplayType string `protobuf:"bytes,1,opt,name=display_type,json=displayType,proto3" json:"display_type,omitempty"` + TraitType string `protobuf:"bytes,2,opt,name=trait_type,json=traitType,proto3" json:"trait_type,omitempty"` + MaxValue uint64 `protobuf:"varint,3,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` +} + +func (m *OpenseaDisplayOption) Reset() { *m = OpenseaDisplayOption{} } +func (m *OpenseaDisplayOption) String() string { return proto.CompactTextString(m) } +func (*OpenseaDisplayOption) ProtoMessage() {} +func (*OpenseaDisplayOption) Descriptor() ([]byte, []int) { + return fileDescriptor_7be0674fc7f9532d, []int{0} +} +func (m *OpenseaDisplayOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OpenseaDisplayOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OpenseaDisplayOption.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 *OpenseaDisplayOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_OpenseaDisplayOption.Merge(m, src) +} +func (m *OpenseaDisplayOption) XXX_Size() int { + return m.Size() +} +func (m *OpenseaDisplayOption) XXX_DiscardUnknown() { + xxx_messageInfo_OpenseaDisplayOption.DiscardUnknown(m) +} + +var xxx_messageInfo_OpenseaDisplayOption proto.InternalMessageInfo + +func (m *OpenseaDisplayOption) GetDisplayType() string { + if m != nil { + return m.DisplayType + } + return "" +} + +func (m *OpenseaDisplayOption) GetTraitType() string { + if m != nil { + return m.TraitType + } + return "" +} + +func (m *OpenseaDisplayOption) GetMaxValue() uint64 { + if m != nil { + return m.MaxValue + } + return 0 +} + +func init() { + proto.RegisterType((*OpenseaDisplayOption)(nil), "thesixnetwork.sixnft.nftmngr.v094.OpenseaDisplayOption") +} + +func init() { + proto.RegisterFile("nftmngr/v094/opensea_display_option.proto", fileDescriptor_7be0674fc7f9532d) +} + +var fileDescriptor_7be0674fc7f9532d = []byte{ + // 237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcc, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x2f, 0x48, 0xcd, 0x2b, 0x4e, 0x4d, + 0x8c, 0x4f, 0xc9, 0x2c, 0x2e, 0xc8, 0x49, 0xac, 0x8c, 0xcf, 0x2f, 0x28, 0xc9, 0xcc, 0xcf, 0xd3, + 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, + 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, 0xa0, 0xfa, 0xf5, 0x40, 0xfa, 0x95, + 0x4a, 0xb9, 0x44, 0xfc, 0x21, 0x46, 0xb8, 0x40, 0x4c, 0xf0, 0x07, 0x1b, 0x20, 0xa4, 0xc8, 0xc5, + 0x03, 0x33, 0xb2, 0xa4, 0xb2, 0x20, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x88, 0x1b, 0x2a, + 0x16, 0x52, 0x59, 0x90, 0x2a, 0x24, 0xcb, 0xc5, 0x55, 0x52, 0x94, 0x98, 0x59, 0x02, 0x51, 0xc0, + 0x04, 0x56, 0xc0, 0x09, 0x16, 0x01, 0x4b, 0x4b, 0x73, 0x71, 0xe6, 0x26, 0x56, 0xc4, 0x97, 0x25, + 0xe6, 0x94, 0xa6, 0x4a, 0x30, 0x2b, 0x30, 0x6a, 0xb0, 0x04, 0x71, 0xe4, 0x26, 0x56, 0x84, 0x81, + 0xf8, 0x4e, 0x7e, 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, 0x65, 0x92, 0x9e, + 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x8f, 0xe2, 0x7c, 0x7d, 0x88, 0xf3, 0xf5, + 0x2b, 0xf4, 0x61, 0x01, 0x00, 0xb2, 0xb7, 0x18, 0x1c, 0x0c, 0x49, 0x6c, 0x60, 0x0f, 0x1b, 0x03, + 0x02, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xbb, 0x30, 0x71, 0x1d, 0x01, 0x00, 0x00, +} + +func (m *OpenseaDisplayOption) 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 *OpenseaDisplayOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OpenseaDisplayOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MaxValue != 0 { + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(m.MaxValue)) + i-- + dAtA[i] = 0x18 + } + if len(m.TraitType) > 0 { + i -= len(m.TraitType) + copy(dAtA[i:], m.TraitType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.TraitType))) + i-- + dAtA[i] = 0x12 + } + if len(m.DisplayType) > 0 { + i -= len(m.DisplayType) + copy(dAtA[i:], m.DisplayType) + i = encodeVarintOpenseaDisplayOption(dAtA, i, uint64(len(m.DisplayType))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOpenseaDisplayOption(dAtA []byte, offset int, v uint64) int { + offset -= sovOpenseaDisplayOption(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OpenseaDisplayOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DisplayType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + l = len(m.TraitType) + if l > 0 { + n += 1 + l + sovOpenseaDisplayOption(uint64(l)) + } + if m.MaxValue != 0 { + n += 1 + sovOpenseaDisplayOption(uint64(m.MaxValue)) + } + return n +} + +func sovOpenseaDisplayOption(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOpenseaDisplayOption(x uint64) (n int) { + return sovOpenseaDisplayOption(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OpenseaDisplayOption) 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 ErrIntOverflowOpenseaDisplayOption + } + 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: OpenseaDisplayOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenseaDisplayOption: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraitType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + 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 ErrInvalidLengthOpenseaDisplayOption + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraitType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxValue", wireType) + } + m.MaxValue = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOpenseaDisplayOption + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxValue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOpenseaDisplayOption(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOpenseaDisplayOption + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOpenseaDisplayOption(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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrIntOverflowOpenseaDisplayOption + } + 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, ErrInvalidLengthOpenseaDisplayOption + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOpenseaDisplayOption + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOpenseaDisplayOption + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOpenseaDisplayOption = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOpenseaDisplayOption = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOpenseaDisplayOption = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/organization.pb.go b/x/nftmngr/types/v094/organization.pb.go new file mode 100644 index 00000000..335172f9 --- /dev/null +++ b/x/nftmngr/types/v094/organization.pb.go @@ -0,0 +1,367 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/organization.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type Organization struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` +} + +func (m *Organization) Reset() { *m = Organization{} } +func (m *Organization) String() string { return proto.CompactTextString(m) } +func (*Organization) ProtoMessage() {} +func (*Organization) Descriptor() ([]byte, []int) { + return fileDescriptor_f08fbacec31de247, []int{0} +} +func (m *Organization) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Organization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Organization.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 *Organization) XXX_Merge(src proto.Message) { + xxx_messageInfo_Organization.Merge(m, src) +} +func (m *Organization) XXX_Size() int { + return m.Size() +} +func (m *Organization) XXX_DiscardUnknown() { + xxx_messageInfo_Organization.DiscardUnknown(m) +} + +var xxx_messageInfo_Organization proto.InternalMessageInfo + +func (m *Organization) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Organization) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func init() { + proto.RegisterType((*Organization)(nil), "thesixnetwork.sixnft.nftmngr.v094.Organization") +} + +func init() { proto.RegisterFile("nftmngr/v094/organization.proto", fileDescriptor_f08fbacec31de247) } + +var fileDescriptor_f08fbacec31de247 = []byte{ + // 185 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x4b, 0x2b, 0xc9, + 0xcd, 0x4b, 0x2f, 0xd2, 0x2f, 0x33, 0xb0, 0x34, 0xd1, 0xcf, 0x2f, 0x4a, 0x4f, 0xcc, 0xcb, 0xac, + 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x2c, 0xc9, 0x48, + 0x2d, 0xce, 0xac, 0xc8, 0x4b, 0x2d, 0x29, 0xcf, 0x2f, 0xca, 0xd6, 0x03, 0x31, 0xd3, 0x4a, 0xf4, + 0xa0, 0xba, 0xf4, 0x40, 0xba, 0x94, 0x2c, 0xb8, 0x78, 0xfc, 0x91, 0x34, 0x0a, 0x09, 0x71, 0xb1, + 0xe4, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, 0x22, 0x5c, + 0xac, 0xf9, 0xe5, 0x79, 0xa9, 0x45, 0x12, 0x4c, 0x60, 0x41, 0x08, 0xc7, 0xc9, 0xef, 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, 0x4c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, + 0x92, 0xf3, 0x73, 0xf5, 0x51, 0x5c, 0xa0, 0x0f, 0x71, 0x81, 0x7e, 0x85, 0x3e, 0xcc, 0xe5, 0x25, + 0x95, 0x05, 0xa9, 0xc5, 0x60, 0xf7, 0x27, 0xb1, 0x81, 0xdd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, + 0xff, 0xdf, 0x07, 0x6d, 0x83, 0xd6, 0x00, 0x00, 0x00, +} + +func (m *Organization) 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 *Organization) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Organization) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintOrganization(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOrganization(dAtA []byte, offset int, v uint64) int { + offset -= sovOrganization(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Organization) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovOrganization(uint64(l)) + } + return n +} + +func sovOrganization(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOrganization(x uint64) (n int) { + return sovOrganization(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Organization) 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 ErrIntOverflowOrganization + } + 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: Organization: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Organization: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOrganization + } + 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 ErrInvalidLengthOrganization + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOrganization + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipOrganization(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOrganization + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOrganization(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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrIntOverflowOrganization + } + 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, ErrInvalidLengthOrganization + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOrganization + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOrganization + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOrganization = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOrganization = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOrganization = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/origin_data.pb.go b/x/nftmngr/types/v094/origin_data.pb.go new file mode 100644 index 00000000..03aa888a --- /dev/null +++ b/x/nftmngr/types/v094/origin_data.pb.go @@ -0,0 +1,669 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/origin_data.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type AttributeOverriding int32 + +const ( + AttributeOverriding_ORIGIN AttributeOverriding = 0 + AttributeOverriding_CHAIN AttributeOverriding = 1 +) + +var AttributeOverriding_name = map[int32]string{ + 0: "ORIGIN", + 1: "CHAIN", +} + +var AttributeOverriding_value = map[string]int32{ + "ORIGIN": 0, + "CHAIN": 1, +} + +func (x AttributeOverriding) String() string { + return proto.EnumName(AttributeOverriding_name, int32(x)) +} + +func (AttributeOverriding) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24c9b3e95edbfa84, []int{0} +} + +type URIRetrievalMethod int32 + +const ( + URIRetrievalMethod_BASE URIRetrievalMethod = 0 + URIRetrievalMethod_TOKEN URIRetrievalMethod = 1 +) + +var URIRetrievalMethod_name = map[int32]string{ + 0: "BASE", + 1: "TOKEN", +} + +var URIRetrievalMethod_value = map[string]int32{ + "BASE": 0, + "TOKEN": 1, +} + +func (x URIRetrievalMethod) String() string { + return proto.EnumName(URIRetrievalMethod_name, int32(x)) +} + +func (URIRetrievalMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_24c9b3e95edbfa84, []int{1} +} + +type OriginData struct { + OriginChain string `protobuf:"bytes,1,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` + OriginContractAddress string `protobuf:"bytes,2,opt,name=origin_contract_address,json=originContractAddress,proto3" json:"origin_contract_address,omitempty"` + OriginBaseUri string `protobuf:"bytes,3,opt,name=origin_base_uri,json=originBaseUri,proto3" json:"origin_base_uri,omitempty"` + AttributeOverriding AttributeOverriding `protobuf:"varint,4,opt,name=attribute_overriding,json=attributeOverriding,proto3,enum=thesixnetwork.sixnft.nftmngr.v094.AttributeOverriding" json:"attribute_overriding,omitempty"` + MetadataFormat string `protobuf:"bytes,5,opt,name=metadata_format,json=metadataFormat,proto3" json:"metadata_format,omitempty"` + OriginAttributes []*AttributeDefinition `protobuf:"bytes,6,rep,name=origin_attributes,json=originAttributes,proto3" json:"origin_attributes,omitempty"` + UriRetrievalMethod URIRetrievalMethod `protobuf:"varint,7,opt,name=uri_retrieval_method,json=uriRetrievalMethod,proto3,enum=thesixnetwork.sixnft.nftmngr.v094.URIRetrievalMethod" json:"uri_retrieval_method,omitempty"` +} + +func (m *OriginData) Reset() { *m = OriginData{} } +func (m *OriginData) String() string { return proto.CompactTextString(m) } +func (*OriginData) ProtoMessage() {} +func (*OriginData) Descriptor() ([]byte, []int) { + return fileDescriptor_24c9b3e95edbfa84, []int{0} +} +func (m *OriginData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OriginData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OriginData.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 *OriginData) XXX_Merge(src proto.Message) { + xxx_messageInfo_OriginData.Merge(m, src) +} +func (m *OriginData) XXX_Size() int { + return m.Size() +} +func (m *OriginData) XXX_DiscardUnknown() { + xxx_messageInfo_OriginData.DiscardUnknown(m) +} + +var xxx_messageInfo_OriginData proto.InternalMessageInfo + +func (m *OriginData) GetOriginChain() string { + if m != nil { + return m.OriginChain + } + return "" +} + +func (m *OriginData) GetOriginContractAddress() string { + if m != nil { + return m.OriginContractAddress + } + return "" +} + +func (m *OriginData) GetOriginBaseUri() string { + if m != nil { + return m.OriginBaseUri + } + return "" +} + +func (m *OriginData) GetAttributeOverriding() AttributeOverriding { + if m != nil { + return m.AttributeOverriding + } + return AttributeOverriding_ORIGIN +} + +func (m *OriginData) GetMetadataFormat() string { + if m != nil { + return m.MetadataFormat + } + return "" +} + +func (m *OriginData) GetOriginAttributes() []*AttributeDefinition { + if m != nil { + return m.OriginAttributes + } + return nil +} + +func (m *OriginData) GetUriRetrievalMethod() URIRetrievalMethod { + if m != nil { + return m.UriRetrievalMethod + } + return URIRetrievalMethod_BASE +} + +func init() { + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v094.AttributeOverriding", AttributeOverriding_name, AttributeOverriding_value) + proto.RegisterEnum("thesixnetwork.sixnft.nftmngr.v094.URIRetrievalMethod", URIRetrievalMethod_name, URIRetrievalMethod_value) + proto.RegisterType((*OriginData)(nil), "thesixnetwork.sixnft.nftmngr.v094.OriginData") +} + +func init() { proto.RegisterFile("nftmngr/v094/origin_data.proto", fileDescriptor_24c9b3e95edbfa84) } + +var fileDescriptor_24c9b3e95edbfa84 = []byte{ + // 445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x1b, 0xe8, 0x14, 0xda, 0xb0, 0x2d, 0xc2, 0xe2, 0x60, 0xa5, 0x1c, 0x68, 0xa8, + 0x90, 0x8d, 0xa0, 0x54, 0xe2, 0x98, 0xb4, 0x05, 0x22, 0x44, 0x22, 0x19, 0x7a, 0xe1, 0x62, 0x6d, + 0xe2, 0x8d, 0x33, 0x02, 0xef, 0x56, 0xe3, 0x71, 0x28, 0x7f, 0xc1, 0x67, 0x71, 0xec, 0x91, 0x23, + 0x4a, 0xbe, 0x80, 0x3f, 0x40, 0x59, 0xdb, 0x41, 0x25, 0x48, 0xc0, 0x6d, 0xf5, 0xf6, 0xbd, 0x37, + 0xef, 0x8d, 0x06, 0x3c, 0x3d, 0xe6, 0x54, 0x27, 0x14, 0x4c, 0x1f, 0x3f, 0x3f, 0x0c, 0x0c, 0x61, + 0x82, 0x3a, 0x8a, 0x25, 0x4b, 0xff, 0x9c, 0x0c, 0x1b, 0xb1, 0xc7, 0x13, 0x95, 0xe1, 0x85, 0x56, + 0xfc, 0xc9, 0xd0, 0x07, 0x7f, 0xf1, 0x1c, 0xb3, 0x5f, 0x8a, 0xfc, 0x85, 0xe8, 0xde, 0xfe, 0x15, + 0x0b, 0xc9, 0x4c, 0x38, 0xcc, 0x59, 0x45, 0xb1, 0x1a, 0xa3, 0x46, 0x46, 0xa3, 0x0b, 0xaf, 0xfb, + 0x3f, 0xea, 0x00, 0x03, 0x3b, 0xe1, 0x44, 0xb2, 0x14, 0x7b, 0x70, 0xb3, 0x9c, 0x37, 0x9a, 0x48, + 0xd4, 0xae, 0xd3, 0x72, 0xda, 0x1b, 0xe1, 0x66, 0x81, 0x1d, 0x2f, 0x20, 0x71, 0x04, 0x77, 0x2b, + 0x8a, 0xd1, 0x4c, 0x72, 0xc4, 0x91, 0x8c, 0x63, 0x52, 0x59, 0xe6, 0x5e, 0xb3, 0xec, 0x3b, 0x25, + 0xbb, 0xfc, 0xed, 0x14, 0x9f, 0xe2, 0x01, 0x6c, 0x97, 0xba, 0xa1, 0xcc, 0x54, 0x94, 0x13, 0xba, + 0x75, 0xcb, 0xbf, 0x55, 0xc0, 0x5d, 0x99, 0xa9, 0x33, 0x42, 0x81, 0xb0, 0xfb, 0x2b, 0xaf, 0x99, + 0x2a, 0x22, 0x8c, 0x51, 0x27, 0xee, 0x5a, 0xcb, 0x69, 0x6f, 0x3d, 0x39, 0xf2, 0xff, 0x5a, 0xde, + 0xef, 0x54, 0xf2, 0xc1, 0x52, 0x1d, 0xee, 0xc8, 0x55, 0x50, 0xec, 0xc3, 0x76, 0xaa, 0x58, 0x2e, + 0x56, 0x1b, 0x8d, 0x0d, 0xa5, 0x92, 0xdd, 0x75, 0x1b, 0x69, 0xab, 0x82, 0x5f, 0x58, 0x54, 0x8c, + 0xe0, 0x76, 0x99, 0x7d, 0x69, 0x93, 0xb9, 0x8d, 0x56, 0xbd, 0xbd, 0xf9, 0x7f, 0x81, 0x4e, 0x96, + 0xeb, 0x0f, 0x9b, 0x85, 0xe1, 0xf2, 0x2b, 0x13, 0x09, 0xec, 0xe6, 0x84, 0x11, 0x29, 0x26, 0x54, + 0x53, 0xf9, 0x31, 0x4a, 0x15, 0x4f, 0x4c, 0xec, 0x5e, 0xb7, 0xc5, 0x9f, 0xfd, 0xc3, 0x9c, 0xb3, + 0xb0, 0x17, 0x56, 0xea, 0x37, 0x56, 0x1c, 0x8a, 0x9c, 0xf0, 0x37, 0xec, 0xe0, 0x11, 0xec, 0xfc, + 0x61, 0x45, 0x02, 0xa0, 0x31, 0x08, 0x7b, 0x2f, 0x7b, 0xfd, 0x66, 0x4d, 0x6c, 0xc0, 0xfa, 0xf1, + 0xab, 0x4e, 0xaf, 0xdf, 0x74, 0x0e, 0x1e, 0x82, 0x58, 0xf5, 0x15, 0x37, 0x60, 0xad, 0xdb, 0x79, + 0x7b, 0x5a, 0x50, 0xdf, 0x0d, 0x5e, 0x9f, 0xf6, 0x9b, 0x4e, 0xb7, 0xff, 0x75, 0xe6, 0x39, 0x97, + 0x33, 0xcf, 0xf9, 0x3e, 0xf3, 0x9c, 0x2f, 0x73, 0xaf, 0x76, 0x39, 0xf7, 0x6a, 0xdf, 0xe6, 0x5e, + 0xed, 0xfd, 0x61, 0x82, 0x3c, 0xc9, 0x87, 0xfe, 0xc8, 0xa4, 0xc1, 0x95, 0x1e, 0x41, 0xd1, 0x23, + 0xb8, 0x08, 0xaa, 0x8b, 0xe5, 0xcf, 0xe7, 0x2a, 0xb3, 0x77, 0x3b, 0x6c, 0xd8, 0x1b, 0x7d, 0xfa, + 0x33, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x61, 0x50, 0x25, 0x11, 0x03, 0x00, 0x00, +} + +func (m *OriginData) 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 *OriginData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OriginData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UriRetrievalMethod != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.UriRetrievalMethod)) + i-- + dAtA[i] = 0x38 + } + if len(m.OriginAttributes) > 0 { + for iNdEx := len(m.OriginAttributes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OriginAttributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintOriginData(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MetadataFormat) > 0 { + i -= len(m.MetadataFormat) + copy(dAtA[i:], m.MetadataFormat) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.MetadataFormat))) + i-- + dAtA[i] = 0x2a + } + if m.AttributeOverriding != 0 { + i = encodeVarintOriginData(dAtA, i, uint64(m.AttributeOverriding)) + i-- + dAtA[i] = 0x20 + } + if len(m.OriginBaseUri) > 0 { + i -= len(m.OriginBaseUri) + copy(dAtA[i:], m.OriginBaseUri) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginBaseUri))) + i-- + dAtA[i] = 0x1a + } + if len(m.OriginContractAddress) > 0 { + i -= len(m.OriginContractAddress) + copy(dAtA[i:], m.OriginContractAddress) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginContractAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.OriginChain) > 0 { + i -= len(m.OriginChain) + copy(dAtA[i:], m.OriginChain) + i = encodeVarintOriginData(dAtA, i, uint64(len(m.OriginChain))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintOriginData(dAtA []byte, offset int, v uint64) int { + offset -= sovOriginData(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OriginData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.OriginChain) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginContractAddress) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + l = len(m.OriginBaseUri) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if m.AttributeOverriding != 0 { + n += 1 + sovOriginData(uint64(m.AttributeOverriding)) + } + l = len(m.MetadataFormat) + if l > 0 { + n += 1 + l + sovOriginData(uint64(l)) + } + if len(m.OriginAttributes) > 0 { + for _, e := range m.OriginAttributes { + l = e.Size() + n += 1 + l + sovOriginData(uint64(l)) + } + } + if m.UriRetrievalMethod != 0 { + n += 1 + sovOriginData(uint64(m.UriRetrievalMethod)) + } + return n +} + +func sovOriginData(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozOriginData(x uint64) (n int) { + return sovOriginData(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OriginData) 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 ErrIntOverflowOriginData + } + 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: OriginData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OriginData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginChain", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginChain = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginBaseUri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginBaseUri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AttributeOverriding", wireType) + } + m.AttributeOverriding = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AttributeOverriding |= AttributeOverriding(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MetadataFormat", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + 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 ErrInvalidLengthOriginData + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MetadataFormat = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OriginAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthOriginData + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthOriginData + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OriginAttributes = append(m.OriginAttributes, &AttributeDefinition{}) + if err := m.OriginAttributes[len(m.OriginAttributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UriRetrievalMethod", wireType) + } + m.UriRetrievalMethod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowOriginData + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UriRetrievalMethod |= URIRetrievalMethod(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipOriginData(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthOriginData + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipOriginData(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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrIntOverflowOriginData + } + 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, ErrInvalidLengthOriginData + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupOriginData + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthOriginData + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthOriginData = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowOriginData = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupOriginData = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/nftmngr/types/v094/schema_attribute.pb.go b/x/nftmngr/types/v094/schema_attribute.pb.go new file mode 100644 index 00000000..5e4ceff7 --- /dev/null +++ b/x/nftmngr/types/v094/schema_attribute.pb.go @@ -0,0 +1,1025 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: nftmngr/v094/schema_attribute.proto + +package v094 + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/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 + +type SchemaAttribute struct { + NftSchemaCode string `protobuf:"bytes,1,opt,name=nftSchemaCode,proto3" json:"nftSchemaCode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + CurrentValue *SchemaAttributeValue `protobuf:"bytes,4,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"` + Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` +} + +func (m *SchemaAttribute) Reset() { *m = SchemaAttribute{} } +func (m *SchemaAttribute) String() string { return proto.CompactTextString(m) } +func (*SchemaAttribute) ProtoMessage() {} +func (*SchemaAttribute) Descriptor() ([]byte, []int) { + return fileDescriptor_50db3f0a274912ba, []int{0} +} +func (m *SchemaAttribute) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttribute.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 *SchemaAttribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttribute.Merge(m, src) +} +func (m *SchemaAttribute) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttribute) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttribute.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttribute proto.InternalMessageInfo + +func (m *SchemaAttribute) GetNftSchemaCode() string { + if m != nil { + return m.NftSchemaCode + } + return "" +} + +func (m *SchemaAttribute) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaAttribute) GetDataType() string { + if m != nil { + return m.DataType + } + return "" +} + +func (m *SchemaAttribute) GetCurrentValue() *SchemaAttributeValue { + if m != nil { + return m.CurrentValue + } + return nil +} + +func (m *SchemaAttribute) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +type SchemaAttributeValue struct { + // Types that are valid to be assigned to Value: + // *SchemaAttributeValue_NumberAttributeValue + // *SchemaAttributeValue_StringAttributeValue + // *SchemaAttributeValue_BooleanAttributeValue + // *SchemaAttributeValue_FloatAttributeValue + Value isSchemaAttributeValue_Value `protobuf_oneof:"value"` +} + +func (m *SchemaAttributeValue) Reset() { *m = SchemaAttributeValue{} } +func (m *SchemaAttributeValue) String() string { return proto.CompactTextString(m) } +func (*SchemaAttributeValue) ProtoMessage() {} +func (*SchemaAttributeValue) Descriptor() ([]byte, []int) { + return fileDescriptor_50db3f0a274912ba, []int{1} +} +func (m *SchemaAttributeValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SchemaAttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SchemaAttributeValue.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 *SchemaAttributeValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaAttributeValue.Merge(m, src) +} +func (m *SchemaAttributeValue) XXX_Size() int { + return m.Size() +} +func (m *SchemaAttributeValue) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaAttributeValue.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaAttributeValue proto.InternalMessageInfo + +type isSchemaAttributeValue_Value interface { + isSchemaAttributeValue_Value() + MarshalTo([]byte) (int, error) + Size() int +} + +type SchemaAttributeValue_NumberAttributeValue struct { + NumberAttributeValue *NumberAttributeValue `protobuf:"bytes,1,opt,name=number_attribute_value,json=numberAttributeValue,proto3,oneof" json:"number_attribute_value,omitempty"` +} +type SchemaAttributeValue_StringAttributeValue struct { + StringAttributeValue *StringAttributeValue `protobuf:"bytes,2,opt,name=string_attribute_value,json=stringAttributeValue,proto3,oneof" json:"string_attribute_value,omitempty"` +} +type SchemaAttributeValue_BooleanAttributeValue struct { + BooleanAttributeValue *BooleanAttributeValue `protobuf:"bytes,3,opt,name=boolean_attribute_value,json=booleanAttributeValue,proto3,oneof" json:"boolean_attribute_value,omitempty"` +} +type SchemaAttributeValue_FloatAttributeValue struct { + FloatAttributeValue *FloatAttributeValue `protobuf:"bytes,4,opt,name=float_attribute_value,json=floatAttributeValue,proto3,oneof" json:"float_attribute_value,omitempty"` +} + +func (*SchemaAttributeValue_NumberAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_StringAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_BooleanAttributeValue) isSchemaAttributeValue_Value() {} +func (*SchemaAttributeValue_FloatAttributeValue) isSchemaAttributeValue_Value() {} + +func (m *SchemaAttributeValue) GetValue() isSchemaAttributeValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *SchemaAttributeValue) GetNumberAttributeValue() *NumberAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_NumberAttributeValue); ok { + return x.NumberAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetStringAttributeValue() *StringAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_StringAttributeValue); ok { + return x.StringAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetBooleanAttributeValue() *BooleanAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_BooleanAttributeValue); ok { + return x.BooleanAttributeValue + } + return nil +} + +func (m *SchemaAttributeValue) GetFloatAttributeValue() *FloatAttributeValue { + if x, ok := m.GetValue().(*SchemaAttributeValue_FloatAttributeValue); ok { + return x.FloatAttributeValue + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SchemaAttributeValue) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*SchemaAttributeValue_NumberAttributeValue)(nil), + (*SchemaAttributeValue_StringAttributeValue)(nil), + (*SchemaAttributeValue_BooleanAttributeValue)(nil), + (*SchemaAttributeValue_FloatAttributeValue)(nil), + } +} + +func init() { + proto.RegisterType((*SchemaAttribute)(nil), "thesixnetwork.sixnft.nftmngr.v094.SchemaAttribute") + proto.RegisterType((*SchemaAttributeValue)(nil), "thesixnetwork.sixnft.nftmngr.v094.SchemaAttributeValue") +} + +func init() { + proto.RegisterFile("nftmngr/v094/schema_attribute.proto", fileDescriptor_50db3f0a274912ba) +} + +var fileDescriptor_50db3f0a274912ba = []byte{ + // 428 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0xcf, 0x93, 0x40, + 0x10, 0xc6, 0xe1, 0xed, 0xfb, 0xfa, 0xda, 0xd5, 0xc6, 0x64, 0x6d, 0x95, 0xd4, 0x84, 0xb4, 0xd5, + 0x68, 0x4f, 0x60, 0xb4, 0xf1, 0xcf, 0xd1, 0x9a, 0x18, 0x4f, 0x3d, 0x54, 0xe3, 0xc1, 0x98, 0x90, + 0x05, 0x96, 0x76, 0x23, 0xec, 0x92, 0x65, 0xa8, 0xed, 0xb7, 0xf0, 0x63, 0x79, 0xec, 0xd1, 0x63, + 0x53, 0xbe, 0x88, 0x61, 0xa1, 0x69, 0x28, 0x24, 0x72, 0xdb, 0x7d, 0x66, 0xe6, 0xf9, 0x0d, 0xc3, + 0x0e, 0x7a, 0xca, 0x03, 0x88, 0xf8, 0x4a, 0xda, 0x9b, 0x97, 0xef, 0x67, 0x76, 0xe2, 0xad, 0x69, + 0x44, 0x1c, 0x02, 0x20, 0x99, 0x9b, 0x02, 0xb5, 0x62, 0x29, 0x40, 0xe0, 0x31, 0xac, 0x69, 0xc2, + 0xb6, 0x9c, 0xc2, 0x2f, 0x21, 0x7f, 0x5a, 0xf9, 0x31, 0x00, 0xab, 0xac, 0xb4, 0xf2, 0xca, 0xe1, + 0xb8, 0xe2, 0xe3, 0xb3, 0x24, 0x0e, 0xc9, 0xce, 0x11, 0x31, 0x30, 0xc1, 0x0b, 0x97, 0xe1, 0xf3, + 0x4a, 0x0a, 0x0f, 0xe0, 0xcc, 0x71, 0x36, 0x24, 0x4c, 0x4b, 0xda, 0xf0, 0x45, 0x25, 0xef, 0x9c, + 0xe3, 0xd3, 0x80, 0x71, 0x76, 0x36, 0x9c, 0x1c, 0x74, 0xf4, 0xe0, 0x8b, 0xea, 0xf8, 0xc3, 0x29, + 0x09, 0x3f, 0x43, 0x3d, 0x1e, 0x40, 0xa1, 0x7e, 0x14, 0x3e, 0x35, 0xf4, 0x91, 0x3e, 0xed, 0x2e, + 0xab, 0x22, 0xc6, 0xe8, 0x9a, 0x93, 0x88, 0x1a, 0x57, 0x2a, 0xa8, 0xce, 0xf8, 0x09, 0xea, 0xfa, + 0x04, 0x88, 0x03, 0xbb, 0x98, 0x1a, 0x1d, 0x15, 0xb8, 0x9b, 0x0b, 0x5f, 0x77, 0x31, 0xc5, 0x3f, + 0x50, 0xcf, 0x4b, 0xa5, 0xa4, 0x1c, 0x8a, 0x56, 0x8d, 0xeb, 0x91, 0x3e, 0xbd, 0xf7, 0xea, 0xad, + 0xf5, 0xdf, 0xc9, 0x58, 0x17, 0x1d, 0x7e, 0xcb, 0xcb, 0x97, 0xf7, 0x4b, 0x37, 0x75, 0xc3, 0x06, + 0xba, 0xf5, 0x24, 0x25, 0x20, 0xa4, 0x71, 0xa3, 0xc0, 0xa7, 0xeb, 0x24, 0xeb, 0xa0, 0x7e, 0x93, + 0x01, 0x16, 0xe8, 0x11, 0x4f, 0x23, 0x97, 0xca, 0xcb, 0x21, 0xaa, 0x0f, 0x6e, 0xd7, 0xd9, 0x42, + 0x19, 0x54, 0x8d, 0x3f, 0x6b, 0xcb, 0x3e, 0x6f, 0xd0, 0x73, 0x60, 0x02, 0x92, 0xf1, 0x55, 0x0d, + 0x78, 0xd5, 0x7e, 0x14, 0xca, 0xa0, 0x0e, 0x4c, 0x1a, 0x74, 0x2c, 0xd1, 0x63, 0x57, 0x88, 0x90, + 0x12, 0x5e, 0x23, 0x76, 0x14, 0xf1, 0x5d, 0x0b, 0xe2, 0xbc, 0x70, 0xa8, 0x21, 0x07, 0x6e, 0x53, + 0x00, 0x87, 0x68, 0x10, 0x84, 0x82, 0xd4, 0x5e, 0x66, 0xf9, 0xbb, 0xdf, 0xb4, 0x20, 0x7e, 0xca, + 0xeb, 0x6b, 0xbc, 0x87, 0x41, 0x5d, 0x9e, 0xdf, 0xa2, 0x1b, 0xe5, 0x3e, 0x5f, 0xfc, 0x39, 0x9a, + 0xfa, 0xfe, 0x68, 0xea, 0x87, 0xa3, 0xa9, 0xff, 0xce, 0x4c, 0x6d, 0x9f, 0x99, 0xda, 0xdf, 0xcc, + 0xd4, 0xbe, 0xcf, 0x56, 0x0c, 0xd6, 0xa9, 0x6b, 0x79, 0x22, 0xb2, 0x2b, 0x6c, 0xbb, 0x60, 0xdb, + 0x5b, 0xfb, 0xb4, 0x2d, 0xf9, 0xbb, 0x4d, 0xd4, 0xce, 0xb8, 0x77, 0xd4, 0x7e, 0xbc, 0xfe, 0x17, + 0x00, 0x00, 0xff, 0xff, 0x54, 0x2c, 0x7c, 0xac, 0xdd, 0x03, 0x00, 0x00, +} + +func (m *SchemaAttribute) 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 *SchemaAttribute) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttribute) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x2a + } + if m.CurrentValue != nil { + { + size, err := m.CurrentValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.DataType) > 0 { + i -= len(m.DataType) + copy(dAtA[i:], m.DataType) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.DataType))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if len(m.NftSchemaCode) > 0 { + i -= len(m.NftSchemaCode) + copy(dAtA[i:], m.NftSchemaCode) + i = encodeVarintSchemaAttribute(dAtA, i, uint64(len(m.NftSchemaCode))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue) 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 *SchemaAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_NumberAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NumberAttributeValue != nil { + { + size, err := m.NumberAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_StringAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_StringAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.StringAttributeValue != nil { + { + size, err := m.StringAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_BooleanAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BooleanAttributeValue != nil { + { + size, err := m.BooleanAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SchemaAttributeValue_FloatAttributeValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FloatAttributeValue != nil { + { + size, err := m.FloatAttributeValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintSchemaAttribute(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func encodeVarintSchemaAttribute(dAtA []byte, offset int, v uint64) int { + offset -= sovSchemaAttribute(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *SchemaAttribute) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NftSchemaCode) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.DataType) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + if m.CurrentValue != nil { + l = m.CurrentValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func (m *SchemaAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != nil { + n += m.Value.Size() + } + return n +} + +func (m *SchemaAttributeValue_NumberAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NumberAttributeValue != nil { + l = m.NumberAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_StringAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StringAttributeValue != nil { + l = m.StringAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_BooleanAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BooleanAttributeValue != nil { + l = m.BooleanAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} +func (m *SchemaAttributeValue_FloatAttributeValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FloatAttributeValue != nil { + l = m.FloatAttributeValue.Size() + n += 1 + l + sovSchemaAttribute(uint64(l)) + } + return n +} + +func sovSchemaAttribute(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozSchemaAttribute(x uint64) (n int) { + return sovSchemaAttribute(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *SchemaAttribute) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttribute: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttribute: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NftSchemaCode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NftSchemaCode = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CurrentValue == nil { + m.CurrentValue = &SchemaAttributeValue{} + } + if err := m.CurrentValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + 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 ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SchemaAttributeValue) 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 ErrIntOverflowSchemaAttribute + } + 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: SchemaAttributeValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SchemaAttributeValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NumberAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_NumberAttributeValue{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &StringAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_StringAttributeValue{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BooleanAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BooleanAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_BooleanAttributeValue{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FloatAttributeValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSchemaAttribute + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSchemaAttribute + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSchemaAttribute + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FloatAttributeValue{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Value = &SchemaAttributeValue_FloatAttributeValue{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSchemaAttribute(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthSchemaAttribute + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipSchemaAttribute(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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrIntOverflowSchemaAttribute + } + 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, ErrInvalidLengthSchemaAttribute + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupSchemaAttribute + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthSchemaAttribute + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthSchemaAttribute = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowSchemaAttribute = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupSchemaAttribute = fmt.Errorf("proto: unexpected end of group") +)