diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 50567c09..85d712f7 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -51048,137 +51048,6 @@ paths: type: string tags: - Query - /rarimo/rarimo-core/oraclemanager/identity_default_transfer: - get: - operationId: RarimoRarimocoreOraclemanagerIdentityDefaultTransfer - responses: - '200': - description: A successful response. - schema: - type: object - properties: - transfer: - type: object - properties: - contract: - type: string - title: Hex 0x - chain: - type: string - GISTHash: - type: string - title: Hex 0x - id: - type: string - title: Hex 0x - stateHash: - type: string - title: Hex 0x - stateCreatedAtTimestamp: - type: string - title: Dec - stateCreatedAtBlock: - type: string - stateReplacedBy: - type: string - title: Hex 0x - GISTReplacedBy: - type: string - GISTCreatedAtTimestamp: - type: string - title: Dec - GISTCreatedAtBlock: - type: string - replacedStateHash: - type: string - title: HEX 0x - replacedGISTHash: - 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: msg.creator - in: query - required: false - type: string - - name: msg.contract - description: Hex 0x - in: query - required: false - type: string - - name: msg.chain - in: query - required: false - type: string - - name: msg.GISTHash - description: Hex 0x - in: query - required: false - type: string - - name: msg.id - description: Hex 0x - in: query - required: false - type: string - - name: msg.stateHash - description: Hex 0x - in: query - required: false - type: string - - name: msg.stateCreatedAtTimestamp - description: Dec - in: query - required: false - type: string - - name: msg.stateCreatedAtBlock - in: query - required: false - type: string - - name: msg.stateReplacedBy - description: Hex 0x - in: query - required: false - type: string - - name: msg.GISTReplacedBy - in: query - required: false - type: string - - name: msg.GISTCreatedAtTimestamp - description: Dec - in: query - required: false - type: string - - name: msg.GISTCreatedAtBlock - in: query - required: false - type: string - - name: msg.replacedStateHash - description: HEx 0x - in: query - required: false - type: string - - name: msg.replacedGISTtHash - in: query - required: false - type: string - tags: - - Query /rarimo/rarimo-core/oraclemanager/identity_gist_transfer: get: operationId: RarimoRarimocoreOraclemanagerIdentityGISTTransfer @@ -52536,7 +52405,11 @@ paths: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated details: title: Corresponding to type details type: object @@ -53027,7 +52900,11 @@ paths: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated details: title: Corresponding to type details type: object @@ -57544,6 +57421,7 @@ paths: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array @@ -58928,6 +58806,7 @@ paths: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array @@ -90134,47 +90013,6 @@ definitions: type: string amount: type: string - rarimo.rarimocore.oraclemanager.MsgCreateIdentityDefaultTransferOp: - type: object - properties: - creator: - type: string - contract: - type: string - title: Hex 0x - chain: - type: string - GISTHash: - type: string - title: Hex 0x - id: - type: string - title: Hex 0x - stateHash: - type: string - title: Hex 0x - stateCreatedAtTimestamp: - type: string - title: Dec - stateCreatedAtBlock: - type: string - stateReplacedBy: - type: string - title: Hex 0x - GISTReplacedBy: - type: string - GISTCreatedAtTimestamp: - type: string - title: Dec - GISTCreatedAtBlock: - type: string - replacedStateHash: - type: string - title: HEx 0x - replacedGISTtHash: - type: string - rarimo.rarimocore.oraclemanager.MsgCreateIdentityDefaultTransferOpResponse: - type: object rarimo.rarimocore.oraclemanager.MsgCreateIdentityGISTTransferOp: type: object properties: @@ -90477,46 +90315,6 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - rarimo.rarimocore.oraclemanager.QueryGetIdentityDefaultTransferResponse: - type: object - properties: - transfer: - type: object - properties: - contract: - type: string - title: Hex 0x - chain: - type: string - GISTHash: - type: string - title: Hex 0x - id: - type: string - title: Hex 0x - stateHash: - type: string - title: Hex 0x - stateCreatedAtTimestamp: - type: string - title: Dec - stateCreatedAtBlock: - type: string - stateReplacedBy: - type: string - title: Hex 0x - GISTReplacedBy: - type: string - GISTCreatedAtTimestamp: - type: string - title: Dec - GISTCreatedAtBlock: - type: string - replacedStateHash: - type: string - title: HEX 0x - replacedGISTHash: - type: string rarimo.rarimocore.oraclemanager.QueryGetIdentityGISTTransferResponse: type: object properties: @@ -90778,43 +90576,6 @@ definitions: voteThreshold: type: string description: QueryParamsResponse is response type for the Query/Params RPC method. - rarimo.rarimocore.rarimocore.IdentityDefaultTransfer: - type: object - properties: - contract: - type: string - title: Hex 0x - chain: - type: string - GISTHash: - type: string - title: Hex 0x - id: - type: string - title: Hex 0x - stateHash: - type: string - title: Hex 0x - stateCreatedAtTimestamp: - type: string - title: Dec - stateCreatedAtBlock: - type: string - stateReplacedBy: - type: string - title: Hex 0x - GISTReplacedBy: - type: string - GISTCreatedAtTimestamp: - type: string - title: Dec - GISTCreatedAtBlock: - type: string - replacedStateHash: - type: string - title: HEX 0x - replacedGISTHash: - type: string rarimo.rarimocore.rarimocore.IdentityGISTTransfer: type: object properties: @@ -91007,7 +90768,11 @@ definitions: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated rarimo.rarimocore.rarimocore.Operation: type: object properties: @@ -91027,7 +90792,11 @@ definitions: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated details: title: Corresponding to type details type: object @@ -91377,7 +91146,11 @@ definitions: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated details: title: Corresponding to type details type: object @@ -91735,7 +91508,11 @@ definitions: - IDENTITY_STATE_TRANSFER - WORLDCOIN_IDENTITY_TRANSFER - CSCA_ROOT_UPDATE + - ARBITRARY default: TRANSFER + title: |- + - CONTRACT_UPGRADE: Deprecated + - IDENTITY_DEFAULT_TRANSFER: Deprecated details: title: Corresponding to type details type: object @@ -92211,6 +91988,7 @@ definitions: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array @@ -92575,6 +92353,7 @@ definitions: - Near - Other - Rarimo + - RarimoEVM default: EVM rarimo.rarimocore.tokenmanager.OnChainItem: type: object @@ -92609,6 +92388,7 @@ definitions: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array @@ -93366,6 +93146,7 @@ definitions: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array @@ -93577,6 +93358,7 @@ definitions: - Near - Other - Rarimo + - RarimoEVM default: EVM params: type: array diff --git a/go.mod b/go.mod index 979e6d52..61a495e5 100644 --- a/go.mod +++ b/go.mod @@ -92,7 +92,6 @@ require ( github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect - github.com/ghodss/yaml v1.0.0 // indirect github.com/gin-gonic/gin v1.8.1 // indirect github.com/github/smimesign v0.2.0 // indirect github.com/go-kit/kit v0.12.0 // indirect diff --git a/go.sum b/go.sum index f6106b77..097fc2a6 100644 --- a/go.sum +++ b/go.sum @@ -808,7 +808,6 @@ github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqG 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 v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= diff --git a/proto/oraclemanager/query.proto b/proto/oraclemanager/query.proto index c0d63b1c..fd95f97a 100644 --- a/proto/oraclemanager/query.proto +++ b/proto/oraclemanager/query.proto @@ -8,7 +8,6 @@ import "oraclemanager/params.proto"; import "oraclemanager/tx.proto"; import "oraclemanager/oracle.proto"; import "rarimocore/op_transfer.proto"; -import "rarimocore/op_identity_default_transfer.proto"; import "rarimocore/op_identity_gist_transfer.proto"; import "rarimocore/op_identity_state_transfer.proto"; import "rarimocore/op_worldcoin_identity_transfer.proto"; @@ -27,10 +26,6 @@ service Query { option (google.api.http).get = "/rarimo/rarimo-core/oraclemanager/transfer"; } - rpc IdentityDefaultTransfer(QueryGetIdentityDefaultTransferRequest) returns (QueryGetIdentityDefaultTransferResponse) { - option (google.api.http).get = "/rarimo/rarimo-core/oraclemanager/identity_default_transfer"; - } - rpc IdentityGISTTransfer(QueryGetIdentityGISTTransferRequest) returns (QueryGetIdentityGISTTransferResponse) { option (google.api.http).get = "/rarimo/rarimo-core/oraclemanager/identity_gist_transfer"; } @@ -75,14 +70,6 @@ message QueryGetTransferResponse { rarimo.rarimocore.rarimocore.Transfer transfer = 1 [(gogoproto.nullable) = false]; } -message QueryGetIdentityDefaultTransferRequest { - rarimo.rarimocore.oraclemanager.MsgCreateIdentityDefaultTransferOp msg = 1 [(gogoproto.nullable) = false]; -} - -message QueryGetIdentityDefaultTransferResponse { - rarimo.rarimocore.rarimocore.IdentityDefaultTransfer transfer = 1 [(gogoproto.nullable) = false]; -} - message QueryGetIdentityGISTTransferRequest { rarimo.rarimocore.oraclemanager.MsgCreateIdentityGISTTransferOp msg = 1 [(gogoproto.nullable) = false]; } diff --git a/proto/oraclemanager/tx.proto b/proto/oraclemanager/tx.proto index 29e8d22b..c1ba42a1 100644 --- a/proto/oraclemanager/tx.proto +++ b/proto/oraclemanager/tx.proto @@ -13,9 +13,6 @@ service Msg { rpc Stake(MsgStake) returns (MsgStakeResponse); rpc Unstake(MsgUnstake) returns (MsgUnstakeResponse); rpc CreateTransferOperation(MsgCreateTransferOp) returns (MsgCreateTransferOpResponse); - // Deprecated: consider using separate state and gist transfer operations. - rpc CreateIdentityDefaultTransferOperation(MsgCreateIdentityDefaultTransferOp) returns (MsgCreateIdentityDefaultTransferOpResponse); - rpc CreateIdentityGISTTransferOperation(MsgCreateIdentityGISTTransferOp) returns (MsgCreateIdentityGISTTransferOpResponse); rpc CreateIdentityStateTransferOperation(MsgCreateIdentityStateTransferOp) returns (MsgCreateIdentityStateTransferOpResponse); rpc CreateWorldCoinIdentityTransferOperation(MsgCreateWorldCoinIdentityTransferOp) returns (MsgCreateWorldCoinIdentityTransferOpResponse); @@ -59,33 +56,6 @@ message MsgCreateTransferOp { message MsgCreateTransferOpResponse {} -message MsgCreateIdentityDefaultTransferOp { - string creator = 1; - // Hex 0x - string contract = 2; - string chain = 3; - // Hex 0x - string GISTHash = 4; - // Hex 0x - string id = 5; - // Hex 0x - string stateHash = 6; - // Dec - string stateCreatedAtTimestamp = 7; - string stateCreatedAtBlock = 8; - // Hex 0x - string stateReplacedBy = 11; - string GISTReplacedBy = 12; - // Dec - string GISTCreatedAtTimestamp = 13; - string GISTCreatedAtBlock = 14; - // HEx 0x - string replacedStateHash = 17; - string replacedGISTtHash = 18; -} - -message MsgCreateIdentityDefaultTransferOpResponse {} - message MsgCreateIdentityGISTTransferOp { string creator = 1; // Hex 0x diff --git a/proto/rarimocore/op_contract_upgrade.proto b/proto/rarimocore/op_contract_upgrade.proto deleted file mode 100644 index 0fd47509..00000000 --- a/proto/rarimocore/op_contract_upgrade.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package rarimo.rarimocore.rarimocore; - -import "gogoproto/gogo.proto"; -import "google/protobuf/any.proto"; -import "tokenmanager/proposal.proto"; - -option go_package = "github.com/rarimo/rarimo-core/x/rarimocore/types"; - -message ContractUpgrade { - // Target contract address upgrade to - string targetContract = 1; - // Chain name according to stored in tokenmanager params - string chain = 2; - // New contract address: used on EVM - string newImplementationContract = 3; - // byte code hash: used on Solana and Near - string hash = 4; - // Solana buffer account - string bufferAccount = 5; - // dec nonce - string nonce = 6; - rarimo.rarimocore.tokenmanager.UpgradeType type = 7; -} \ No newline at end of file diff --git a/proto/rarimocore/op_identity_default_transfer.proto b/proto/rarimocore/op_identity_default_transfer.proto deleted file mode 100644 index a2e37eaf..00000000 --- a/proto/rarimocore/op_identity_default_transfer.proto +++ /dev/null @@ -1,32 +0,0 @@ -syntax = "proto3"; -package rarimo.rarimocore.rarimocore; - -option go_package = "github.com/rarimo/rarimo-core/x/rarimocore/types"; - -import "tokenmanager/item.proto"; -import "gogoproto/gogo.proto"; - -message IdentityDefaultTransfer { - // Hex 0x - string contract = 1; - string chain = 2; - // Hex 0x - string GISTHash = 3; - // Hex 0x - string id = 4; - // Hex 0x - string stateHash = 5; - // Dec - string stateCreatedAtTimestamp = 6; - string stateCreatedAtBlock = 7; - // Hex 0x - string stateReplacedBy = 10; - string GISTReplacedBy = 11; - // Dec - string GISTCreatedAtTimestamp = 12; - string GISTCreatedAtBlock = 13; - // HEX 0x - string replacedStateHash = 16; - string replacedGISTHash = 17; -} - diff --git a/proto/rarimocore/operation.proto b/proto/rarimocore/operation.proto index a8e91451..f1b0e138 100644 --- a/proto/rarimocore/operation.proto +++ b/proto/rarimocore/operation.proto @@ -9,7 +9,9 @@ enum OpType { TRANSFER = 0; CHANGE_PARTIES = 1; FEE_TOKEN_MANAGEMENT = 2; + // Deprecated CONTRACT_UPGRADE = 3; + // Deprecated IDENTITY_DEFAULT_TRANSFER = 4; IDENTITY_AGGREGATED_TRANSFER = 5; IDENTITY_GIST_TRANSFER = 6; diff --git a/proto/tokenmanager/proposal.proto b/proto/tokenmanager/proposal.proto index 22995d1f..101272aa 100644 --- a/proto/tokenmanager/proposal.proto +++ b/proto/tokenmanager/proposal.proto @@ -9,34 +9,6 @@ import "google/protobuf/any.proto"; option go_package = "github.com/rarimo/rarimo-core/x/tokenmanager/types"; -enum UpgradeType { - NONE = 0; - BASIC_IMPLEMENTATION = 1; - OTHER = 2; -} - -message ContractUpgradeDetails { - // Target contract address upgrade to - string targetContract = 1; - // New contract address: used on EVM - string newImplementationContract = 2; - // byte code hash: used on Solana and Near - string hash = 3; - // Solana buffer account - string bufferAccount = 4; - // chain name according to stored in tokenmanager params - string chain = 5; - // dec nonce - string nonce = 6; - UpgradeType type = 7; -} - -message UpgradeContractProposal { - string title = 1; - string description = 2; - ContractUpgradeDetails details = 4 [(gogoproto.nullable) = false]; -} - message AddNetworkProposal { string title = 1; string description = 2; @@ -82,7 +54,6 @@ message WithdrawFeeProposal { string nonce = 6; } - message UpdateTokenItemProposal { string title = 1; string description = 2; diff --git a/x/oraclemanager/README.md b/x/oraclemanager/README.md index 2b98a5ad..a7b09697 100644 --- a/x/oraclemanager/README.md +++ b/x/oraclemanager/README.md @@ -200,38 +200,6 @@ message MsgCreateTransferOp { } ``` -### CreateIdentityDefaultTransferOperation - -**CreateIdentityDefaultTransferOperation** - creates Operation with type `IDENTITY_DEFAULT_TRANSFER` and `INITIALIZED` -status. - -```protobuf -message MsgCreateIdentityDefaultTransferOp { - string creator = 1; - // Hex 0x - string contract = 2; - string chain = 3; - // Hex 0x - string GISTHash = 4; - // Hex 0x - string id = 5; - // Hex 0x - string stateHash = 6; - // Dec - string stateCreatedAtTimestamp = 7; - string stateCreatedAtBlock = 8; - // Hex 0x - string stateReplacedBy = 11; - string GISTReplacedBy = 12; - // Dec - string GISTCreatedAtTimestamp = 13; - string GISTCreatedAtBlock = 14; - // HEx 0x - string replacedStateHash = 17; - string replacedGISTtHash = 18; -} -``` - ### CreateIdentityGISTTransferOperation **CreateIdentityGISTTransferOperation** - creates Operation with type `IDENTITY_GIST_TRANSFER` and `INITIALIZED` diff --git a/x/oraclemanager/handler.go b/x/oraclemanager/handler.go index 6686ab36..aed6d776 100644 --- a/x/oraclemanager/handler.go +++ b/x/oraclemanager/handler.go @@ -28,8 +28,6 @@ func NewHandler(k keeper.Keeper) sdk.Handler { res, err = msgServer.Unjail(sdk.WrapSDKContext(ctx), msg) case *types.MsgCreateTransferOp: res, err = msgServer.CreateTransferOperation(sdk.WrapSDKContext(ctx), msg) - case *types.MsgCreateIdentityDefaultTransferOp: - res, err = msgServer.CreateIdentityDefaultTransferOperation(sdk.WrapSDKContext(ctx), msg) case *types.MsgCreateIdentityGISTTransferOp: res, err = msgServer.CreateIdentityGISTTransferOperation(sdk.WrapSDKContext(ctx), msg) case *types.MsgCreateIdentityStateTransferOp: diff --git a/x/oraclemanager/keeper/abci.go b/x/oraclemanager/keeper/abci.go index 73c27d28..0994d41d 100644 --- a/x/oraclemanager/keeper/abci.go +++ b/x/oraclemanager/keeper/abci.go @@ -139,14 +139,6 @@ func getSourceChain(op rarimotypes.Operation) (string, error) { return transfer.From.Chain, nil - case rarimotypes.OpType_IDENTITY_DEFAULT_TRANSFER: - transfer, err := pkg.GetIdentityDefaultTransfer(op) - if err != nil { - return "", err - } - - return transfer.Chain, nil - case rarimotypes.OpType_IDENTITY_GIST_TRANSFER: transfer, err := pkg.GetIdentityGISTTransfer(op) if err != nil { diff --git a/x/oraclemanager/keeper/grpc_query_identity_default_transfer.go b/x/oraclemanager/keeper/grpc_query_identity_default_transfer.go deleted file mode 100644 index 8299d970..00000000 --- a/x/oraclemanager/keeper/grpc_query_identity_default_transfer.go +++ /dev/null @@ -1,29 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/rarimo/rarimo-core/x/oraclemanager/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) IdentityDefaultTransfer(c context.Context, req *types.QueryGetIdentityDefaultTransferRequest) (*types.QueryGetIdentityDefaultTransferResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - if err := req.Msg.ValidateBody(); err != nil { - return nil, err - } - - ctx := sdk.UnwrapSDKContext(c) - - transfer, err := k.rarimo.GetIdentityDefaultTransfer(ctx, &req.Msg) - if err != nil { - return nil, err - } - - return &types.QueryGetIdentityDefaultTransferResponse{Transfer: *transfer}, nil -} diff --git a/x/oraclemanager/keeper/msg_server_identity_default_transfer.go b/x/oraclemanager/keeper/msg_server_identity_default_transfer.go deleted file mode 100644 index 6237a7c6..00000000 --- a/x/oraclemanager/keeper/msg_server_identity_default_transfer.go +++ /dev/null @@ -1,38 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/rarimo/rarimo-core/x/oraclemanager/types" -) - -func (k msgServer) CreateIdentityDefaultTransferOperation(c context.Context, msg *types.MsgCreateIdentityDefaultTransferOp) (*types.MsgCreateIdentityDefaultTransferOpResponse, error) { - ctx := sdk.UnwrapSDKContext(c) - defer k.disableFee(ctx.GasMeter().GasConsumed(), ctx.GasMeter()) - - transfer, err := k.rarimo.GetIdentityDefaultTransfer(ctx, msg) - if err != nil { - return nil, err - } - - // Checking oracle exists and active. - oracle, ok := k.GetOracle(ctx, &types.OracleIndex{Chain: msg.Chain, Account: msg.Creator}) - if !ok { - return nil, types.ErrOracleNotFound - } - - if oracle.Status != types.OracleStatus_Active { - return nil, types.ErrInactiveOracle - } - - // Creating transfer operation - if err := k.rarimo.CreateIdentityDefaultTransferOperation(ctx, msg.Creator, transfer); err != nil { - return nil, err - } - - oracle.CreateOperationsCount = oracle.CreateOperationsCount + 1 - k.SetOracle(ctx, oracle) - - return &types.MsgCreateIdentityDefaultTransferOpResponse{}, nil -} diff --git a/x/oraclemanager/types/codec.go b/x/oraclemanager/types/codec.go index ceaff51d..1008d5ca 100644 --- a/x/oraclemanager/types/codec.go +++ b/x/oraclemanager/types/codec.go @@ -12,7 +12,6 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgCreateTransferOp{}, "oraclemanager/CreateTransferOp", nil) - cdc.RegisterConcrete(&MsgCreateIdentityDefaultTransferOp{}, "oraclemanager/CreateIdentityDefaultTransferOp", nil) cdc.RegisterConcrete(&MsgCreateIdentityGISTTransferOp{}, "oraclemanager/CreateIdentityGISTTransferOp", nil) cdc.RegisterConcrete(&MsgCreateIdentityStateTransferOp{}, "oraclemanager/CreateIdentityStateTransferOp", nil) cdc.RegisterConcrete(&MsgCreateWorldCoinIdentityTransferOp{}, "oraclemanager/CreateWorldCoinIdentityTransferOp", nil) @@ -29,9 +28,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateTransferOp{}, ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreateIdentityDefaultTransferOp{}, - ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateIdentityGISTTransferOp{}, ) diff --git a/x/oraclemanager/types/expected_keepers.go b/x/oraclemanager/types/expected_keepers.go index 8ddea0c6..b6c62786 100644 --- a/x/oraclemanager/types/expected_keepers.go +++ b/x/oraclemanager/types/expected_keepers.go @@ -26,9 +26,6 @@ type BankKeeper interface { type RarimoKeeper interface { IterateVotes(ctx sdk.Context, operation string, f func(vote rarimotypes.Vote) (stop bool)) - GetIdentityDefaultTransfer(_ sdk.Context, msg *MsgCreateIdentityDefaultTransferOp) (*rarimotypes.IdentityDefaultTransfer, error) - CreateIdentityDefaultTransferOperation(ctx sdk.Context, creator string, transfer *rarimotypes.IdentityDefaultTransfer) error - GetIdentityGISTTransfer(_ sdk.Context, msg *MsgCreateIdentityGISTTransferOp) (*rarimotypes.IdentityGISTTransfer, error) CreateIdentityGISTTransferOperation(ctx sdk.Context, creator string, transfer *rarimotypes.IdentityGISTTransfer) error diff --git a/x/oraclemanager/types/messages_identity_default_transfer_op.go b/x/oraclemanager/types/messages_identity_default_transfer_op.go deleted file mode 100644 index eff895b6..00000000 --- a/x/oraclemanager/types/messages_identity_default_transfer_op.go +++ /dev/null @@ -1,96 +0,0 @@ -package types - -import ( - "math/big" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/ethereum/go-ethereum/common/hexutil" -) - -const ( - TypeMsgCreateIdentityDefaultTransfer = "create_identity_default_transfer_operation" -) - -var _ sdk.Msg = &MsgCreateIdentityDefaultTransferOp{} - -func (msg *MsgCreateIdentityDefaultTransferOp) Route() string { - return RouterKey -} - -func (msg *MsgCreateIdentityDefaultTransferOp) Type() string { - return TypeMsgCreateIdentityDefaultTransfer -} - -func (msg *MsgCreateIdentityDefaultTransferOp) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgCreateIdentityDefaultTransferOp) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgCreateIdentityDefaultTransferOp) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(msg.Creator); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) - } - - return msg.ValidateBody() -} - -func (msg *MsgCreateIdentityDefaultTransferOp) ValidateBody() error { - if _, err := hexutil.Decode(msg.Contract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid contract address (%s)", err) - } - - if _, err := hexutil.Decode(msg.GISTHash); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid gist hash (%s)", err) - } - - if _, err := hexutil.Decode(msg.Id); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid id (%s)", err) - } - - if _, err := hexutil.Decode(msg.StateHash); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid state hash (%s)", err) - } - - if _, err := hexutil.Decode(msg.StateReplacedBy); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid state replaced by (%s)", err) - } - - if _, err := hexutil.Decode(msg.GISTReplacedBy); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid gist replaced by (%s)", err) - } - - if _, ok := new(big.Int).SetString(msg.StateCreatedAtTimestamp, 10); !ok { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid timestamp") - } - - if _, ok := new(big.Int).SetString(msg.StateCreatedAtBlock, 10); !ok { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid timestamp") - } - - if _, ok := new(big.Int).SetString(msg.GISTCreatedAtTimestamp, 10); !ok { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid timestamp") - } - - if _, ok := new(big.Int).SetString(msg.GISTCreatedAtBlock, 10); !ok { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid timestamp") - } - - if _, err := hexutil.Decode(msg.ReplacedStateHash); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid replaced state hash (%s)", err) - } - - if _, err := hexutil.Decode(msg.ReplacedGISTtHash); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid replaced gist hash (%s)", err) - } - - return nil -} diff --git a/x/oraclemanager/types/query.pb.go b/x/oraclemanager/types/query.pb.go index 98b796fb..3200afa9 100644 --- a/x/oraclemanager/types/query.pb.go +++ b/x/oraclemanager/types/query.pb.go @@ -202,98 +202,6 @@ func (m *QueryGetTransferResponse) GetTransfer() types.Transfer { return types.Transfer{} } -type QueryGetIdentityDefaultTransferRequest struct { - Msg MsgCreateIdentityDefaultTransferOp `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` -} - -func (m *QueryGetIdentityDefaultTransferRequest) Reset() { - *m = QueryGetIdentityDefaultTransferRequest{} -} -func (m *QueryGetIdentityDefaultTransferRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetIdentityDefaultTransferRequest) ProtoMessage() {} -func (*QueryGetIdentityDefaultTransferRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{4} -} -func (m *QueryGetIdentityDefaultTransferRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetIdentityDefaultTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetIdentityDefaultTransferRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetIdentityDefaultTransferRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetIdentityDefaultTransferRequest.Merge(m, src) -} -func (m *QueryGetIdentityDefaultTransferRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetIdentityDefaultTransferRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetIdentityDefaultTransferRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetIdentityDefaultTransferRequest proto.InternalMessageInfo - -func (m *QueryGetIdentityDefaultTransferRequest) GetMsg() MsgCreateIdentityDefaultTransferOp { - if m != nil { - return m.Msg - } - return MsgCreateIdentityDefaultTransferOp{} -} - -type QueryGetIdentityDefaultTransferResponse struct { - Transfer types.IdentityDefaultTransfer `protobuf:"bytes,1,opt,name=transfer,proto3" json:"transfer"` -} - -func (m *QueryGetIdentityDefaultTransferResponse) Reset() { - *m = QueryGetIdentityDefaultTransferResponse{} -} -func (m *QueryGetIdentityDefaultTransferResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetIdentityDefaultTransferResponse) ProtoMessage() {} -func (*QueryGetIdentityDefaultTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{5} -} -func (m *QueryGetIdentityDefaultTransferResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetIdentityDefaultTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetIdentityDefaultTransferResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetIdentityDefaultTransferResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetIdentityDefaultTransferResponse.Merge(m, src) -} -func (m *QueryGetIdentityDefaultTransferResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetIdentityDefaultTransferResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetIdentityDefaultTransferResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetIdentityDefaultTransferResponse proto.InternalMessageInfo - -func (m *QueryGetIdentityDefaultTransferResponse) GetTransfer() types.IdentityDefaultTransfer { - if m != nil { - return m.Transfer - } - return types.IdentityDefaultTransfer{} -} - type QueryGetIdentityGISTTransferRequest struct { Msg MsgCreateIdentityGISTTransferOp `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` } @@ -302,7 +210,7 @@ func (m *QueryGetIdentityGISTTransferRequest) Reset() { *m = QueryGetIde func (m *QueryGetIdentityGISTTransferRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetIdentityGISTTransferRequest) ProtoMessage() {} func (*QueryGetIdentityGISTTransferRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{6} + return fileDescriptor_2117d55003291e95, []int{4} } func (m *QueryGetIdentityGISTTransferRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -346,7 +254,7 @@ func (m *QueryGetIdentityGISTTransferResponse) Reset() { *m = QueryGetId func (m *QueryGetIdentityGISTTransferResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetIdentityGISTTransferResponse) ProtoMessage() {} func (*QueryGetIdentityGISTTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{7} + return fileDescriptor_2117d55003291e95, []int{5} } func (m *QueryGetIdentityGISTTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -390,7 +298,7 @@ func (m *QueryGetIdentityStateTransferRequest) Reset() { *m = QueryGetId func (m *QueryGetIdentityStateTransferRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetIdentityStateTransferRequest) ProtoMessage() {} func (*QueryGetIdentityStateTransferRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{8} + return fileDescriptor_2117d55003291e95, []int{6} } func (m *QueryGetIdentityStateTransferRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,7 +342,7 @@ func (m *QueryGetIdentityStateTransferResponse) Reset() { *m = QueryGetI func (m *QueryGetIdentityStateTransferResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetIdentityStateTransferResponse) ProtoMessage() {} func (*QueryGetIdentityStateTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{9} + return fileDescriptor_2117d55003291e95, []int{7} } func (m *QueryGetIdentityStateTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -480,7 +388,7 @@ func (m *QueryGetWorldCoinIdentityTransferRequest) Reset() { func (m *QueryGetWorldCoinIdentityTransferRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetWorldCoinIdentityTransferRequest) ProtoMessage() {} func (*QueryGetWorldCoinIdentityTransferRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{10} + return fileDescriptor_2117d55003291e95, []int{8} } func (m *QueryGetWorldCoinIdentityTransferRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -528,7 +436,7 @@ func (m *QueryGetWorldCoinIdentityTransferResponse) String() string { } func (*QueryGetWorldCoinIdentityTransferResponse) ProtoMessage() {} func (*QueryGetWorldCoinIdentityTransferResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{11} + return fileDescriptor_2117d55003291e95, []int{9} } func (m *QueryGetWorldCoinIdentityTransferResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -572,7 +480,7 @@ func (m *QueryGetAllOracleRequest) Reset() { *m = QueryGetAllOracleReque func (m *QueryGetAllOracleRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetAllOracleRequest) ProtoMessage() {} func (*QueryGetAllOracleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{12} + return fileDescriptor_2117d55003291e95, []int{10} } func (m *QueryGetAllOracleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -617,7 +525,7 @@ func (m *QueryGetAllOracleResponse) Reset() { *m = QueryGetAllOracleResp func (m *QueryGetAllOracleResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetAllOracleResponse) ProtoMessage() {} func (*QueryGetAllOracleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{13} + return fileDescriptor_2117d55003291e95, []int{11} } func (m *QueryGetAllOracleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -669,7 +577,7 @@ func (m *QueryGetOracleRequest) Reset() { *m = QueryGetOracleRequest{} } func (m *QueryGetOracleRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetOracleRequest) ProtoMessage() {} func (*QueryGetOracleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{14} + return fileDescriptor_2117d55003291e95, []int{12} } func (m *QueryGetOracleRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -720,7 +628,7 @@ func (m *QueryGetOracleResponse) Reset() { *m = QueryGetOracleResponse{} func (m *QueryGetOracleResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetOracleResponse) ProtoMessage() {} func (*QueryGetOracleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{15} + return fileDescriptor_2117d55003291e95, []int{13} } func (m *QueryGetOracleResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -764,7 +672,7 @@ func (m *QueryGetOracleForChainRequest) Reset() { *m = QueryGetOracleFor func (m *QueryGetOracleForChainRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetOracleForChainRequest) ProtoMessage() {} func (*QueryGetOracleForChainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{16} + return fileDescriptor_2117d55003291e95, []int{14} } func (m *QueryGetOracleForChainRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -808,7 +716,7 @@ func (m *QueryGetOracleForChainResponse) Reset() { *m = QueryGetOracleFo func (m *QueryGetOracleForChainResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetOracleForChainResponse) ProtoMessage() {} func (*QueryGetOracleForChainResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2117d55003291e95, []int{17} + return fileDescriptor_2117d55003291e95, []int{15} } func (m *QueryGetOracleForChainResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -849,8 +757,6 @@ func init() { proto.RegisterType((*QueryParamsResponse)(nil), "rarimo.rarimocore.oraclemanager.QueryParamsResponse") proto.RegisterType((*QueryGetTransferRequest)(nil), "rarimo.rarimocore.oraclemanager.QueryGetTransferRequest") proto.RegisterType((*QueryGetTransferResponse)(nil), "rarimo.rarimocore.oraclemanager.QueryGetTransferResponse") - proto.RegisterType((*QueryGetIdentityDefaultTransferRequest)(nil), "rarimo.rarimocore.oraclemanager.QueryGetIdentityDefaultTransferRequest") - proto.RegisterType((*QueryGetIdentityDefaultTransferResponse)(nil), "rarimo.rarimocore.oraclemanager.QueryGetIdentityDefaultTransferResponse") proto.RegisterType((*QueryGetIdentityGISTTransferRequest)(nil), "rarimo.rarimocore.oraclemanager.QueryGetIdentityGISTTransferRequest") proto.RegisterType((*QueryGetIdentityGISTTransferResponse)(nil), "rarimo.rarimocore.oraclemanager.QueryGetIdentityGISTTransferResponse") proto.RegisterType((*QueryGetIdentityStateTransferRequest)(nil), "rarimo.rarimocore.oraclemanager.QueryGetIdentityStateTransferRequest") @@ -868,72 +774,67 @@ func init() { func init() { proto.RegisterFile("oraclemanager/query.proto", fileDescriptor_2117d55003291e95) } var fileDescriptor_2117d55003291e95 = []byte{ - // 1034 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x6f, 0xdc, 0x54, - 0x14, 0xcd, 0x6b, 0x69, 0x68, 0x2e, 0x52, 0x17, 0x8f, 0xb4, 0x4d, 0x2c, 0x98, 0x56, 0x06, 0xda, - 0x10, 0xa8, 0xdd, 0x4e, 0x5a, 0x9a, 0xa6, 0x50, 0x92, 0x4c, 0x93, 0x69, 0x10, 0x55, 0xcb, 0x34, - 0xa8, 0x94, 0x0f, 0x45, 0x6f, 0x66, 0x5e, 0x5d, 0x4b, 0x33, 0x7e, 0x53, 0xdb, 0x81, 0x46, 0xa5, - 0x20, 0x2a, 0x81, 0xc4, 0x0e, 0x89, 0xdf, 0xc0, 0x8a, 0x25, 0x6c, 0xd9, 0x57, 0x62, 0x53, 0x89, - 0x0d, 0x2b, 0x84, 0x12, 0x58, 0xb0, 0x42, 0x6c, 0x59, 0x55, 0xf3, 0x3e, 0x3a, 0x7e, 0xfe, 0x18, - 0xdb, 0x93, 0xac, 0x66, 0x1c, 0xdf, 0x7b, 0xee, 0x39, 0xc7, 0x99, 0x7b, 0x9e, 0x61, 0x9a, 0xf9, - 0xa4, 0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24, 0x00, 0x00, - 0xff, 0xff, 0xd5, 0x2f, 0x33, 0x14, 0x50, 0x11, 0x00, 0x00, + // 949 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x18, 0xf5, 0xb4, 0xd4, 0x34, 0x03, 0xe2, 0x30, 0xb8, 0xc5, 0x59, 0x81, 0x5b, 0x2d, 0xbf, 0x42, + 0x80, 0xdd, 0xd6, 0x2e, 0x34, 0x0d, 0xa8, 0xc4, 0x09, 0xb1, 0x09, 0xa2, 0x6a, 0x71, 0x83, 0xa0, + 0x08, 0x64, 0x8d, 0xed, 0x61, 0xbb, 0x92, 0xbd, 0xb3, 0xdd, 0x9d, 0x40, 0xa2, 0x10, 0x10, 0x1c, + 0x90, 0xb8, 0x21, 0xf1, 0x37, 0x70, 0xe2, 0x08, 0x57, 0xee, 0x91, 0xb8, 0x44, 0xe2, 0xc2, 0x09, + 0xa1, 0x04, 0x0e, 0xfc, 0x0b, 0x70, 0x41, 0x9e, 0x1f, 0xb1, 0x67, 0x77, 0xed, 0xdd, 0x75, 0x72, + 0xf2, 0x6e, 0x66, 0xbe, 0xf7, 0xbd, 0xf7, 0x56, 0xf3, 0xbd, 0x09, 0x9c, 0xa7, 0x01, 0xee, 0xf6, + 0xc9, 0x00, 0x7b, 0xd8, 0x21, 0x81, 0xfd, 0x60, 0x8b, 0x04, 0x3b, 0x96, 0x1f, 0x50, 0x46, 0xd1, + 0xa5, 0x00, 0x07, 0xee, 0x80, 0x5a, 0xe2, 0xa7, 0x4b, 0x03, 0x62, 0x69, 0x9b, 0x8d, 0x92, 0x43, + 0x1d, 0xca, 0xf7, 0xda, 0xc3, 0x27, 0x51, 0x66, 0x3c, 0xe9, 0x50, 0xea, 0xf4, 0x89, 0x8d, 0x7d, + 0xd7, 0xc6, 0x9e, 0x47, 0x19, 0x66, 0x2e, 0xf5,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e, 0x56, 0xc0, 0x77, 0x47, 0x95, 0xc2, 0xc1, 0x51, 0xa5, 0xf0, 0xfb, 0x51, 0xa5, 0xf0, 0x61, + 0xcd, 0x71, 0xd9, 0xfd, 0xad, 0x8e, 0xd5, 0xa5, 0x83, 0x24, 0xd4, 0xed, 0xe8, 0x9c, 0xdd, 0xf1, + 0x49, 0xd8, 0x29, 0xf2, 0x7f, 0xc5, 0x6a, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x3e, 0x57, + 0x41, 0x20, 0x0f, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -951,7 +852,6 @@ type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Transfer(ctx context.Context, in *QueryGetTransferRequest, opts ...grpc.CallOption) (*QueryGetTransferResponse, error) - IdentityDefaultTransfer(ctx context.Context, in *QueryGetIdentityDefaultTransferRequest, opts ...grpc.CallOption) (*QueryGetIdentityDefaultTransferResponse, error) IdentityGISTTransfer(ctx context.Context, in *QueryGetIdentityGISTTransferRequest, opts ...grpc.CallOption) (*QueryGetIdentityGISTTransferResponse, error) IdentityStateTransfer(ctx context.Context, in *QueryGetIdentityStateTransferRequest, opts ...grpc.CallOption) (*QueryGetIdentityStateTransferResponse, error) WorldCoinIdentityTransfer(ctx context.Context, in *QueryGetWorldCoinIdentityTransferRequest, opts ...grpc.CallOption) (*QueryGetWorldCoinIdentityTransferResponse, error) @@ -986,15 +886,6 @@ func (c *queryClient) Transfer(ctx context.Context, in *QueryGetTransferRequest, return out, nil } -func (c *queryClient) IdentityDefaultTransfer(ctx context.Context, in *QueryGetIdentityDefaultTransferRequest, opts ...grpc.CallOption) (*QueryGetIdentityDefaultTransferResponse, error) { - out := new(QueryGetIdentityDefaultTransferResponse) - err := c.cc.Invoke(ctx, "/rarimo.rarimocore.oraclemanager.Query/IdentityDefaultTransfer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) IdentityGISTTransfer(ctx context.Context, in *QueryGetIdentityGISTTransferRequest, opts ...grpc.CallOption) (*QueryGetIdentityGISTTransferResponse, error) { out := new(QueryGetIdentityGISTTransferResponse) err := c.cc.Invoke(ctx, "/rarimo.rarimocore.oraclemanager.Query/IdentityGISTTransfer", in, out, opts...) @@ -1054,7 +945,6 @@ type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Transfer(context.Context, *QueryGetTransferRequest) (*QueryGetTransferResponse, error) - IdentityDefaultTransfer(context.Context, *QueryGetIdentityDefaultTransferRequest) (*QueryGetIdentityDefaultTransferResponse, error) IdentityGISTTransfer(context.Context, *QueryGetIdentityGISTTransferRequest) (*QueryGetIdentityGISTTransferResponse, error) IdentityStateTransfer(context.Context, *QueryGetIdentityStateTransferRequest) (*QueryGetIdentityStateTransferResponse, error) WorldCoinIdentityTransfer(context.Context, *QueryGetWorldCoinIdentityTransferRequest) (*QueryGetWorldCoinIdentityTransferResponse, error) @@ -1073,9 +963,6 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq func (*UnimplementedQueryServer) Transfer(ctx context.Context, req *QueryGetTransferRequest) (*QueryGetTransferResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") } -func (*UnimplementedQueryServer) IdentityDefaultTransfer(ctx context.Context, req *QueryGetIdentityDefaultTransferRequest) (*QueryGetIdentityDefaultTransferResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IdentityDefaultTransfer not implemented") -} func (*UnimplementedQueryServer) IdentityGISTTransfer(ctx context.Context, req *QueryGetIdentityGISTTransferRequest) (*QueryGetIdentityGISTTransferResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IdentityGISTTransfer not implemented") } @@ -1135,24 +1022,6 @@ func _Query_Transfer_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } -func _Query_IdentityDefaultTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetIdentityDefaultTransferRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).IdentityDefaultTransfer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/rarimo.rarimocore.oraclemanager.Query/IdentityDefaultTransfer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).IdentityDefaultTransfer(ctx, req.(*QueryGetIdentityDefaultTransferRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_IdentityGISTTransfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetIdentityGISTTransferRequest) if err := dec(in); err != nil { @@ -1273,10 +1142,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Transfer", Handler: _Query_Transfer_Handler, }, - { - MethodName: "IdentityDefaultTransfer", - Handler: _Query_IdentityDefaultTransfer_Handler, - }, { MethodName: "IdentityGISTTransfer", Handler: _Query_IdentityGISTTransfer_Handler, @@ -1428,72 +1293,6 @@ func (m *QueryGetTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryGetIdentityDefaultTransferRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetIdentityDefaultTransferRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetIdentityDefaultTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetIdentityDefaultTransferResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetIdentityDefaultTransferResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetIdentityDefaultTransferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Transfer.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func (m *QueryGetIdentityGISTTransferRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1966,28 +1765,6 @@ func (m *QueryGetTransferResponse) Size() (n int) { return n } -func (m *QueryGetIdentityDefaultTransferRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Msg.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetIdentityDefaultTransferResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Transfer.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - func (m *QueryGetIdentityGISTTransferRequest) Size() (n int) { if m == nil { return 0 @@ -2447,172 +2224,6 @@ func (m *QueryGetTransferResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetIdentityDefaultTransferRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetIdentityDefaultTransferRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetIdentityDefaultTransferRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetIdentityDefaultTransferResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetIdentityDefaultTransferResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetIdentityDefaultTransferResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Transfer", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Transfer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *QueryGetIdentityGISTTransferRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/oraclemanager/types/query.pb.gw.go b/x/oraclemanager/types/query.pb.gw.go index 134b9bdf..cb591346 100644 --- a/x/oraclemanager/types/query.pb.gw.go +++ b/x/oraclemanager/types/query.pb.gw.go @@ -87,42 +87,6 @@ func local_request_Query_Transfer_0(ctx context.Context, marshaler runtime.Marsh } -var ( - filter_Query_IdentityDefaultTransfer_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_IdentityDefaultTransfer_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetIdentityDefaultTransferRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_IdentityDefaultTransfer_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.IdentityDefaultTransfer(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_IdentityDefaultTransfer_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetIdentityDefaultTransferRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_IdentityDefaultTransfer_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.IdentityDefaultTransfer(ctx, &protoReq) - return msg, metadata, err - -} - var ( filter_Query_IdentityGISTTransfer_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -449,29 +413,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_IdentityDefaultTransfer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_IdentityDefaultTransfer_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_IdentityDefaultTransfer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IdentityGISTTransfer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -691,26 +632,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_IdentityDefaultTransfer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_IdentityDefaultTransfer_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_IdentityDefaultTransfer_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IdentityGISTTransfer_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -839,8 +760,6 @@ var ( pattern_Query_Transfer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"rarimo", "rarimo-core", "oraclemanager", "transfer"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_IdentityDefaultTransfer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"rarimo", "rarimo-core", "oraclemanager", "identity_default_transfer"}, "", runtime.AssumeColonVerbOpt(true))) - pattern_Query_IdentityGISTTransfer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"rarimo", "rarimo-core", "oraclemanager", "identity_gist_transfer"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Query_IdentityStateTransfer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"rarimo", "rarimo-core", "oraclemanager", "identity_state_transfer"}, "", runtime.AssumeColonVerbOpt(true))) @@ -859,8 +778,6 @@ var ( forward_Query_Transfer_0 = runtime.ForwardResponseMessage - forward_Query_IdentityDefaultTransfer_0 = runtime.ForwardResponseMessage - forward_Query_IdentityGISTTransfer_0 = runtime.ForwardResponseMessage forward_Query_IdentityStateTransfer_0 = runtime.ForwardResponseMessage diff --git a/x/oraclemanager/types/tx.pb.go b/x/oraclemanager/types/tx.pb.go index 586f0148..4d25b82b 100644 --- a/x/oraclemanager/types/tx.pb.go +++ b/x/oraclemanager/types/tx.pb.go @@ -377,202 +377,6 @@ func (m *MsgCreateTransferOpResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateTransferOpResponse proto.InternalMessageInfo -type MsgCreateIdentityDefaultTransferOp struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - // Hex 0x - Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` - Chain string `protobuf:"bytes,3,opt,name=chain,proto3" json:"chain,omitempty"` - // Hex 0x - GISTHash string `protobuf:"bytes,4,opt,name=GISTHash,proto3" json:"GISTHash,omitempty"` - // Hex 0x - Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` - // Hex 0x - StateHash string `protobuf:"bytes,6,opt,name=stateHash,proto3" json:"stateHash,omitempty"` - // Dec - StateCreatedAtTimestamp string `protobuf:"bytes,7,opt,name=stateCreatedAtTimestamp,proto3" json:"stateCreatedAtTimestamp,omitempty"` - StateCreatedAtBlock string `protobuf:"bytes,8,opt,name=stateCreatedAtBlock,proto3" json:"stateCreatedAtBlock,omitempty"` - // Hex 0x - StateReplacedBy string `protobuf:"bytes,11,opt,name=stateReplacedBy,proto3" json:"stateReplacedBy,omitempty"` - GISTReplacedBy string `protobuf:"bytes,12,opt,name=GISTReplacedBy,proto3" json:"GISTReplacedBy,omitempty"` - // Dec - GISTCreatedAtTimestamp string `protobuf:"bytes,13,opt,name=GISTCreatedAtTimestamp,proto3" json:"GISTCreatedAtTimestamp,omitempty"` - GISTCreatedAtBlock string `protobuf:"bytes,14,opt,name=GISTCreatedAtBlock,proto3" json:"GISTCreatedAtBlock,omitempty"` - // HEx 0x - ReplacedStateHash string `protobuf:"bytes,17,opt,name=replacedStateHash,proto3" json:"replacedStateHash,omitempty"` - ReplacedGISTtHash string `protobuf:"bytes,18,opt,name=replacedGISTtHash,proto3" json:"replacedGISTtHash,omitempty"` -} - -func (m *MsgCreateIdentityDefaultTransferOp) Reset() { *m = MsgCreateIdentityDefaultTransferOp{} } -func (m *MsgCreateIdentityDefaultTransferOp) String() string { return proto.CompactTextString(m) } -func (*MsgCreateIdentityDefaultTransferOp) ProtoMessage() {} -func (*MsgCreateIdentityDefaultTransferOp) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{6} -} -func (m *MsgCreateIdentityDefaultTransferOp) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateIdentityDefaultTransferOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateIdentityDefaultTransferOp.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgCreateIdentityDefaultTransferOp) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateIdentityDefaultTransferOp.Merge(m, src) -} -func (m *MsgCreateIdentityDefaultTransferOp) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateIdentityDefaultTransferOp) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateIdentityDefaultTransferOp.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateIdentityDefaultTransferOp proto.InternalMessageInfo - -func (m *MsgCreateIdentityDefaultTransferOp) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetContract() string { - if m != nil { - return m.Contract - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetGISTHash() string { - if m != nil { - return m.GISTHash - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetStateHash() string { - if m != nil { - return m.StateHash - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetStateCreatedAtTimestamp() string { - if m != nil { - return m.StateCreatedAtTimestamp - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetStateCreatedAtBlock() string { - if m != nil { - return m.StateCreatedAtBlock - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetStateReplacedBy() string { - if m != nil { - return m.StateReplacedBy - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetGISTReplacedBy() string { - if m != nil { - return m.GISTReplacedBy - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetGISTCreatedAtTimestamp() string { - if m != nil { - return m.GISTCreatedAtTimestamp - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetGISTCreatedAtBlock() string { - if m != nil { - return m.GISTCreatedAtBlock - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetReplacedStateHash() string { - if m != nil { - return m.ReplacedStateHash - } - return "" -} - -func (m *MsgCreateIdentityDefaultTransferOp) GetReplacedGISTtHash() string { - if m != nil { - return m.ReplacedGISTtHash - } - return "" -} - -type MsgCreateIdentityDefaultTransferOpResponse struct { -} - -func (m *MsgCreateIdentityDefaultTransferOpResponse) Reset() { - *m = MsgCreateIdentityDefaultTransferOpResponse{} -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) String() string { - return proto.CompactTextString(m) -} -func (*MsgCreateIdentityDefaultTransferOpResponse) ProtoMessage() {} -func (*MsgCreateIdentityDefaultTransferOpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{7} -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateIdentityDefaultTransferOpResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateIdentityDefaultTransferOpResponse.Merge(m, src) -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateIdentityDefaultTransferOpResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateIdentityDefaultTransferOpResponse proto.InternalMessageInfo - type MsgCreateIdentityGISTTransferOp struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // Hex 0x @@ -591,7 +395,7 @@ func (m *MsgCreateIdentityGISTTransferOp) Reset() { *m = MsgCreateIdenti func (m *MsgCreateIdentityGISTTransferOp) String() string { return proto.CompactTextString(m) } func (*MsgCreateIdentityGISTTransferOp) ProtoMessage() {} func (*MsgCreateIdentityGISTTransferOp) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{8} + return fileDescriptor_d374eae837d744eb, []int{6} } func (m *MsgCreateIdentityGISTTransferOp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -678,7 +482,7 @@ func (m *MsgCreateIdentityGISTTransferOpResponse) Reset() { func (m *MsgCreateIdentityGISTTransferOpResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateIdentityGISTTransferOpResponse) ProtoMessage() {} func (*MsgCreateIdentityGISTTransferOpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{9} + return fileDescriptor_d374eae837d744eb, []int{7} } func (m *MsgCreateIdentityGISTTransferOpResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -727,7 +531,7 @@ func (m *MsgCreateIdentityStateTransferOp) Reset() { *m = MsgCreateIdent func (m *MsgCreateIdentityStateTransferOp) String() string { return proto.CompactTextString(m) } func (*MsgCreateIdentityStateTransferOp) ProtoMessage() {} func (*MsgCreateIdentityStateTransferOp) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{10} + return fileDescriptor_d374eae837d744eb, []int{8} } func (m *MsgCreateIdentityStateTransferOp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -821,7 +625,7 @@ func (m *MsgCreateIdentityStateTransferOpResponse) Reset() { func (m *MsgCreateIdentityStateTransferOpResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateIdentityStateTransferOpResponse) ProtoMessage() {} func (*MsgCreateIdentityStateTransferOpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{11} + return fileDescriptor_d374eae837d744eb, []int{9} } func (m *MsgCreateIdentityStateTransferOpResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -867,7 +671,7 @@ func (m *MsgCreateWorldCoinIdentityTransferOp) Reset() { *m = MsgCreateW func (m *MsgCreateWorldCoinIdentityTransferOp) String() string { return proto.CompactTextString(m) } func (*MsgCreateWorldCoinIdentityTransferOp) ProtoMessage() {} func (*MsgCreateWorldCoinIdentityTransferOp) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{12} + return fileDescriptor_d374eae837d744eb, []int{10} } func (m *MsgCreateWorldCoinIdentityTransferOp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -956,7 +760,7 @@ func (m *MsgCreateWorldCoinIdentityTransferOpResponse) String() string { } func (*MsgCreateWorldCoinIdentityTransferOpResponse) ProtoMessage() {} func (*MsgCreateWorldCoinIdentityTransferOpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{13} + return fileDescriptor_d374eae837d744eb, []int{11} } func (m *MsgCreateWorldCoinIdentityTransferOpResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -995,7 +799,7 @@ func (m *MsgVote) Reset() { *m = MsgVote{} } func (m *MsgVote) String() string { return proto.CompactTextString(m) } func (*MsgVote) ProtoMessage() {} func (*MsgVote) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{14} + return fileDescriptor_d374eae837d744eb, []int{12} } func (m *MsgVote) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1052,7 +856,7 @@ func (m *MsgVoteResponse) Reset() { *m = MsgVoteResponse{} } func (m *MsgVoteResponse) String() string { return proto.CompactTextString(m) } func (*MsgVoteResponse) ProtoMessage() {} func (*MsgVoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{15} + return fileDescriptor_d374eae837d744eb, []int{13} } func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1089,7 +893,7 @@ func (m *MsgUnjail) Reset() { *m = MsgUnjail{} } func (m *MsgUnjail) String() string { return proto.CompactTextString(m) } func (*MsgUnjail) ProtoMessage() {} func (*MsgUnjail) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{16} + return fileDescriptor_d374eae837d744eb, []int{14} } func (m *MsgUnjail) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1132,7 +936,7 @@ func (m *MsgUnjailResponse) Reset() { *m = MsgUnjailResponse{} } func (m *MsgUnjailResponse) String() string { return proto.CompactTextString(m) } func (*MsgUnjailResponse) ProtoMessage() {} func (*MsgUnjailResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d374eae837d744eb, []int{17} + return fileDescriptor_d374eae837d744eb, []int{15} } func (m *MsgUnjailResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1168,8 +972,6 @@ func init() { proto.RegisterType((*MsgUnstakeResponse)(nil), "rarimo.rarimocore.oraclemanager.MsgUnstakeResponse") proto.RegisterType((*MsgCreateTransferOp)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateTransferOp") proto.RegisterType((*MsgCreateTransferOpResponse)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateTransferOpResponse") - proto.RegisterType((*MsgCreateIdentityDefaultTransferOp)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateIdentityDefaultTransferOp") - proto.RegisterType((*MsgCreateIdentityDefaultTransferOpResponse)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateIdentityDefaultTransferOpResponse") proto.RegisterType((*MsgCreateIdentityGISTTransferOp)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateIdentityGISTTransferOp") proto.RegisterType((*MsgCreateIdentityGISTTransferOpResponse)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateIdentityGISTTransferOpResponse") proto.RegisterType((*MsgCreateIdentityStateTransferOp)(nil), "rarimo.rarimocore.oraclemanager.MsgCreateIdentityStateTransferOp") @@ -1185,74 +987,68 @@ func init() { func init() { proto.RegisterFile("oraclemanager/tx.proto", fileDescriptor_d374eae837d744eb) } var fileDescriptor_d374eae837d744eb = []byte{ - // 1064 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6e, 0x23, 0xc5, - 0x13, 0xce, 0x38, 0xfe, 0x13, 0x57, 0x7e, 0xbf, 0x2c, 0xe9, 0x84, 0xc4, 0x1a, 0x82, 0x13, 0x0d, - 0xab, 0xe0, 0x0d, 0xc1, 0x0e, 0x09, 0x42, 0x08, 0x71, 0xd8, 0x75, 0x16, 0x58, 0x83, 0x4c, 0x24, - 0x27, 0x80, 0xc4, 0xad, 0x3d, 0xd3, 0xb1, 0x87, 0x78, 0xa6, 0xad, 0x9e, 0x76, 0xe4, 0xf0, 0x0e, - 0x48, 0xbc, 0x01, 0x12, 0x17, 0xce, 0x48, 0x88, 0x03, 0x70, 0xe0, 0xb8, 0xc7, 0x3d, 0x72, 0x42, - 0x28, 0x91, 0x78, 0x0e, 0xd4, 0x3d, 0x3d, 0xed, 0xb1, 0x63, 0xc7, 0x93, 0x8d, 0x57, 0x70, 0xf2, - 0x54, 0xd5, 0x57, 0x55, 0xdf, 0x7c, 0x55, 0xe9, 0xb4, 0x0d, 0x6b, 0x94, 0x61, 0xbb, 0x43, 0x3c, - 0xec, 0xe3, 0x16, 0x61, 0x15, 0xde, 0x2f, 0x77, 0x19, 0xe5, 0x14, 0x6d, 0x32, 0xcc, 0x5c, 0x8f, - 0x96, 0xc3, 0x0f, 0x9b, 0x32, 0x52, 0x1e, 0x42, 0x9a, 0xeb, 0x9c, 0x9e, 0x11, 0x3f, 0xca, 0x73, - 0x39, 0xf1, 0xc2, 0x4c, 0xf3, 0xe5, 0x41, 0x4a, 0xe5, 0x9c, 0x72, 0xa2, 0xdc, 0xe6, 0x70, 0xa3, - 0xd0, 0x52, 0xb1, 0xd5, 0x16, 0x6d, 0x51, 0xf9, 0x58, 0x11, 0x4f, 0xa1, 0xd7, 0xfa, 0x1a, 0x16, - 0xea, 0x41, 0xeb, 0x98, 0xe3, 0x33, 0x82, 0xaa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0x4d, 0x87, 0x0b, 0x99, 0x4f, 0xee, 0x5a, 0x41, 0x73, 0xfe, 0xc9, 0x80, 0xfb, 0x37, 0x1e, 0xa1, - 0x11, 0xe9, 0x47, 0xb7, 0x6f, 0x39, 0x52, 0xc9, 0xac, 0xdd, 0xb9, 0x84, 0xa6, 0xfd, 0xbb, 0x01, - 0xa5, 0xa9, 0x87, 0x5c, 0x44, 0xfd, 0x83, 0xe4, 0x7d, 0x6f, 0xa8, 0x66, 0xd6, 0x67, 0x52, 0x46, - 0xbf, 0x42, 0x13, 0xd2, 0xf2, 0xd4, 0x2d, 0x25, 0x29, 0x2b, 0x90, 0xe6, 0x5e, 0x52, 0xa4, 0xee, - 0xd1, 0x86, 0xac, 0x3a, 0x1d, 0x77, 0x92, 0x9d, 0x0e, 0x02, 0x6b, 0xee, 0x27, 0xc7, 0x46, 0x9d, - 0xaa, 0xf5, 0xa7, 0x97, 0x45, 0xe3, 0xd9, 0x65, 0xd1, 0xf8, 0xeb, 0xb2, 0x68, 0x7c, 0x7b, 0x55, - 0x9c, 0x7b, 0x76, 0x55, 0x9c, 0xfb, 0xe3, 0xaa, 0x38, 0xf7, 0xe5, 0x41, 0xcb, 0xe5, 0xed, 0x5e, - 0xb3, 0x6c, 0x53, 0xaf, 0x12, 0x16, 0x54, 0x1f, 0x6f, 0xca, 0xaf, 0xf8, 0xfd, 0xca, 0xc8, 0x2f, - 0x08, 0x17, 0x5d, 0x12, 0x34, 0xb3, 0xf2, 0x2b, 0xfc, 0xc1, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x92, 0x07, 0x98, 0xaf, 0x5f, 0x10, 0x00, 0x00, + // 967 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4d, 0x6f, 0xe3, 0x44, + 0x18, 0xae, 0xdd, 0xb4, 0x4d, 0xde, 0x4a, 0x85, 0x4e, 0x4b, 0x6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 0x0f, 0x97, 0x61, 0xf3, 0xd2, 0x77, + 0xd1, 0x59, 0x42, 0xd2, 0xde, 0xbc, 0xfc, 0x30, 0xd9, 0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x0a, + 0x16, 0xc6, 0x8f, 0x35, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1270,8 +1066,6 @@ type MsgClient interface { Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) CreateTransferOperation(ctx context.Context, in *MsgCreateTransferOp, opts ...grpc.CallOption) (*MsgCreateTransferOpResponse, error) - // Deprecated: consider using separate state and gist transfer operations. - CreateIdentityDefaultTransferOperation(ctx context.Context, in *MsgCreateIdentityDefaultTransferOp, opts ...grpc.CallOption) (*MsgCreateIdentityDefaultTransferOpResponse, error) CreateIdentityGISTTransferOperation(ctx context.Context, in *MsgCreateIdentityGISTTransferOp, opts ...grpc.CallOption) (*MsgCreateIdentityGISTTransferOpResponse, error) CreateIdentityStateTransferOperation(ctx context.Context, in *MsgCreateIdentityStateTransferOp, opts ...grpc.CallOption) (*MsgCreateIdentityStateTransferOpResponse, error) CreateWorldCoinIdentityTransferOperation(ctx context.Context, in *MsgCreateWorldCoinIdentityTransferOp, opts ...grpc.CallOption) (*MsgCreateWorldCoinIdentityTransferOpResponse, error) @@ -1314,15 +1108,6 @@ func (c *msgClient) CreateTransferOperation(ctx context.Context, in *MsgCreateTr return out, nil } -func (c *msgClient) CreateIdentityDefaultTransferOperation(ctx context.Context, in *MsgCreateIdentityDefaultTransferOp, opts ...grpc.CallOption) (*MsgCreateIdentityDefaultTransferOpResponse, error) { - out := new(MsgCreateIdentityDefaultTransferOpResponse) - err := c.cc.Invoke(ctx, "/rarimo.rarimocore.oraclemanager.Msg/CreateIdentityDefaultTransferOperation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) CreateIdentityGISTTransferOperation(ctx context.Context, in *MsgCreateIdentityGISTTransferOp, opts ...grpc.CallOption) (*MsgCreateIdentityGISTTransferOpResponse, error) { out := new(MsgCreateIdentityGISTTransferOpResponse) err := c.cc.Invoke(ctx, "/rarimo.rarimocore.oraclemanager.Msg/CreateIdentityGISTTransferOperation", in, out, opts...) @@ -1373,8 +1158,6 @@ type MsgServer interface { Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) CreateTransferOperation(context.Context, *MsgCreateTransferOp) (*MsgCreateTransferOpResponse, error) - // Deprecated: consider using separate state and gist transfer operations. - CreateIdentityDefaultTransferOperation(context.Context, *MsgCreateIdentityDefaultTransferOp) (*MsgCreateIdentityDefaultTransferOpResponse, error) CreateIdentityGISTTransferOperation(context.Context, *MsgCreateIdentityGISTTransferOp) (*MsgCreateIdentityGISTTransferOpResponse, error) CreateIdentityStateTransferOperation(context.Context, *MsgCreateIdentityStateTransferOp) (*MsgCreateIdentityStateTransferOpResponse, error) CreateWorldCoinIdentityTransferOperation(context.Context, *MsgCreateWorldCoinIdentityTransferOp) (*MsgCreateWorldCoinIdentityTransferOpResponse, error) @@ -1395,9 +1178,6 @@ func (*UnimplementedMsgServer) Unstake(ctx context.Context, req *MsgUnstake) (*M func (*UnimplementedMsgServer) CreateTransferOperation(ctx context.Context, req *MsgCreateTransferOp) (*MsgCreateTransferOpResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTransferOperation not implemented") } -func (*UnimplementedMsgServer) CreateIdentityDefaultTransferOperation(ctx context.Context, req *MsgCreateIdentityDefaultTransferOp) (*MsgCreateIdentityDefaultTransferOpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateIdentityDefaultTransferOperation not implemented") -} func (*UnimplementedMsgServer) CreateIdentityGISTTransferOperation(ctx context.Context, req *MsgCreateIdentityGISTTransferOp) (*MsgCreateIdentityGISTTransferOpResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateIdentityGISTTransferOperation not implemented") } @@ -1472,24 +1252,6 @@ func _Msg_CreateTransferOperation_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_CreateIdentityDefaultTransferOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateIdentityDefaultTransferOp) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateIdentityDefaultTransferOperation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/rarimo.rarimocore.oraclemanager.Msg/CreateIdentityDefaultTransferOperation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateIdentityDefaultTransferOperation(ctx, req.(*MsgCreateIdentityDefaultTransferOp)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_CreateIdentityGISTTransferOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCreateIdentityGISTTransferOp) if err := dec(in); err != nil { @@ -1596,10 +1358,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "CreateTransferOperation", Handler: _Msg_CreateTransferOperation_Handler, }, - { - MethodName: "CreateIdentityDefaultTransferOperation", - Handler: _Msg_CreateIdentityDefaultTransferOperation_Handler, - }, { MethodName: "CreateIdentityGISTTransferOperation", Handler: _Msg_CreateIdentityGISTTransferOperation_Handler, @@ -1896,7 +1654,7 @@ func (m *MsgCreateTransferOpResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgCreateIdentityDefaultTransferOp) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateIdentityGISTTransferOp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1906,12 +1664,12 @@ func (m *MsgCreateIdentityDefaultTransferOp) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgCreateIdentityDefaultTransferOp) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityGISTTransferOp) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateIdentityDefaultTransferOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityGISTTransferOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1921,73 +1679,20 @@ func (m *MsgCreateIdentityDefaultTransferOp) MarshalToSizedBuffer(dAtA []byte) ( copy(dAtA[i:], m.ReplacedGISTtHash) i = encodeVarintTx(dAtA, i, uint64(len(m.ReplacedGISTtHash))) i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if len(m.ReplacedStateHash) > 0 { - i -= len(m.ReplacedStateHash) - copy(dAtA[i:], m.ReplacedStateHash) - i = encodeVarintTx(dAtA, i, uint64(len(m.ReplacedStateHash))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA[i] = 0x3a } if len(m.GISTCreatedAtBlock) > 0 { i -= len(m.GISTCreatedAtBlock) copy(dAtA[i:], m.GISTCreatedAtBlock) i = encodeVarintTx(dAtA, i, uint64(len(m.GISTCreatedAtBlock))) i-- - dAtA[i] = 0x72 + dAtA[i] = 0x32 } if len(m.GISTCreatedAtTimestamp) > 0 { i -= len(m.GISTCreatedAtTimestamp) copy(dAtA[i:], m.GISTCreatedAtTimestamp) i = encodeVarintTx(dAtA, i, uint64(len(m.GISTCreatedAtTimestamp))) i-- - dAtA[i] = 0x6a - } - if len(m.GISTReplacedBy) > 0 { - i -= len(m.GISTReplacedBy) - copy(dAtA[i:], m.GISTReplacedBy) - i = encodeVarintTx(dAtA, i, uint64(len(m.GISTReplacedBy))) - i-- - dAtA[i] = 0x62 - } - if len(m.StateReplacedBy) > 0 { - i -= len(m.StateReplacedBy) - copy(dAtA[i:], m.StateReplacedBy) - i = encodeVarintTx(dAtA, i, uint64(len(m.StateReplacedBy))) - i-- - dAtA[i] = 0x5a - } - if len(m.StateCreatedAtBlock) > 0 { - i -= len(m.StateCreatedAtBlock) - copy(dAtA[i:], m.StateCreatedAtBlock) - i = encodeVarintTx(dAtA, i, uint64(len(m.StateCreatedAtBlock))) - i-- - dAtA[i] = 0x42 - } - if len(m.StateCreatedAtTimestamp) > 0 { - i -= len(m.StateCreatedAtTimestamp) - copy(dAtA[i:], m.StateCreatedAtTimestamp) - i = encodeVarintTx(dAtA, i, uint64(len(m.StateCreatedAtTimestamp))) - i-- - dAtA[i] = 0x3a - } - if len(m.StateHash) > 0 { - i -= len(m.StateHash) - copy(dAtA[i:], m.StateHash) - i = encodeVarintTx(dAtA, i, uint64(len(m.StateHash))) - i-- - dAtA[i] = 0x32 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintTx(dAtA, i, uint64(len(m.Id))) - i-- dAtA[i] = 0x2a } if len(m.GISTHash) > 0 { @@ -2021,7 +1726,7 @@ func (m *MsgCreateIdentityDefaultTransferOp) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *MsgCreateIdentityDefaultTransferOpResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateIdentityGISTTransferOpResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2031,12 +1736,12 @@ func (m *MsgCreateIdentityDefaultTransferOpResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *MsgCreateIdentityDefaultTransferOpResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityGISTTransferOpResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateIdentityDefaultTransferOpResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityGISTTransferOpResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2044,7 +1749,7 @@ func (m *MsgCreateIdentityDefaultTransferOpResponse) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *MsgCreateIdentityGISTTransferOp) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateIdentityStateTransferOp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2054,119 +1759,24 @@ func (m *MsgCreateIdentityGISTTransferOp) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateIdentityGISTTransferOp) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityStateTransferOp) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateIdentityGISTTransferOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateIdentityStateTransferOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ReplacedGISTtHash) > 0 { - i -= len(m.ReplacedGISTtHash) - copy(dAtA[i:], m.ReplacedGISTtHash) - i = encodeVarintTx(dAtA, i, uint64(len(m.ReplacedGISTtHash))) + if len(m.ReplacedStateHash) > 0 { + i -= len(m.ReplacedStateHash) + copy(dAtA[i:], m.ReplacedStateHash) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReplacedStateHash))) i-- - dAtA[i] = 0x3a - } - if len(m.GISTCreatedAtBlock) > 0 { - i -= len(m.GISTCreatedAtBlock) - copy(dAtA[i:], m.GISTCreatedAtBlock) - i = encodeVarintTx(dAtA, i, uint64(len(m.GISTCreatedAtBlock))) - i-- - dAtA[i] = 0x32 - } - if len(m.GISTCreatedAtTimestamp) > 0 { - i -= len(m.GISTCreatedAtTimestamp) - copy(dAtA[i:], m.GISTCreatedAtTimestamp) - i = encodeVarintTx(dAtA, i, uint64(len(m.GISTCreatedAtTimestamp))) - i-- - dAtA[i] = 0x2a - } - if len(m.GISTHash) > 0 { - i -= len(m.GISTHash) - copy(dAtA[i:], m.GISTHash) - i = encodeVarintTx(dAtA, i, uint64(len(m.GISTHash))) - i-- - dAtA[i] = 0x22 - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintTx(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x1a - } - if len(m.Contract) > 0 { - i -= len(m.Contract) - copy(dAtA[i:], m.Contract) - i = encodeVarintTx(dAtA, i, uint64(len(m.Contract))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateIdentityGISTTransferOpResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgCreateIdentityGISTTransferOpResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateIdentityGISTTransferOpResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgCreateIdentityStateTransferOp) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgCreateIdentityStateTransferOp) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateIdentityStateTransferOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReplacedStateHash) > 0 { - i -= len(m.ReplacedStateHash) - copy(dAtA[i:], m.ReplacedStateHash) - i = encodeVarintTx(dAtA, i, uint64(len(m.ReplacedStateHash))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } if len(m.StateCreatedAtBlock) > 0 { i -= len(m.StateCreatedAtBlock) @@ -2589,80 +2199,6 @@ func (m *MsgCreateTransferOpResponse) Size() (n int) { return n } -func (m *MsgCreateIdentityDefaultTransferOp) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Contract) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.GISTHash) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.StateHash) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.StateCreatedAtTimestamp) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.StateCreatedAtBlock) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.StateReplacedBy) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.GISTReplacedBy) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.GISTCreatedAtTimestamp) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.GISTCreatedAtBlock) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ReplacedStateHash) - if l > 0 { - n += 2 + l + sovTx(uint64(l)) - } - l = len(m.ReplacedGISTtHash) - if l > 0 { - n += 2 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgCreateIdentityDefaultTransferOpResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func (m *MsgCreateIdentityGISTTransferOp) Size() (n int) { if m == nil { return 0 @@ -3687,554 +3223,6 @@ func (m *MsgCreateTransferOpResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateIdentityDefaultTransferOp) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateIdentityDefaultTransferOp: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateIdentityDefaultTransferOp: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 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.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", 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.Contract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", 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.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTHash", 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.GISTHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", 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.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateHash", 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.StateHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateCreatedAtTimestamp", 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.StateCreatedAtTimestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateCreatedAtBlock", 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.StateCreatedAtBlock = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateReplacedBy", 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.StateReplacedBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTReplacedBy", 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.GISTReplacedBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTCreatedAtTimestamp", 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.GISTCreatedAtTimestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTCreatedAtBlock", 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.GISTCreatedAtBlock = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplacedStateHash", 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.ReplacedStateHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplacedGISTtHash", 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.ReplacedGISTtHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgCreateIdentityDefaultTransferOpResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateIdentityDefaultTransferOpResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateIdentityDefaultTransferOpResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *MsgCreateIdentityGISTTransferOp) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/rarimocore/README.md b/x/rarimocore/README.md index 0e0971c0..08724388 100644 --- a/x/rarimocore/README.md +++ b/x/rarimocore/README.md @@ -32,14 +32,12 @@ In such case operation can be already approved. - Transfer operation: `HASH(tx, event, chain)` - Change parties: `HASH(new set, new key, signature)` - Fee contract management: `HASH(block height, chain, fee token contract, fee amount)` -- Contract upgrade: `HASH(block, content [depends on chain])` -- Identity default - transfer: `HASH(source contract, id, state hash, state timestamps, state replaced by, GIST hash, GIST replaced by, GIST timestamps, replaced state hash, replaced GIST hash)` - Identity state transfer: `HASH(source contract, id, state hash, state timestamps, replaced state hash)` -- Identity GIST transfer: `HASH(source contract, id, GIST hash, GIST timestamps, replaced GIST hash)` +- Identity GIST transfer: `HASH(source contract, GIST hash, GIST timestamps, replaced GIST hash)` - Identity aggregated transfer: `HASH(GIST, timestamp, states root, contract address, chain)` - WorldCoin identity transfer: `HASH(source contract, old state, new state, timestamp)` - CSCA root update: `HASH(hashPrefix, root, timestamp)`, where `hashPrefix="Rarimo CSCA root"` +- Arbitrary: `HASH(data)` To add new operation check the following [manual](../../docs/common/core/001-adding-operation.md). @@ -359,20 +357,6 @@ Flow: - Check operation status (should be `INITIALIZED`) - Save vote -### CreateIdentityDefaultTransferOperation/CreateIdentityStateTransferOperation/CreateIdentityGISTTransferOperation/CreateWorldCoinIdentityTransferOperation - -**CreateIdentityDefaultTransferOperation** - used by `oraclemanager` module to create identity transfer operations - -Definition: -`CreateIdentityDefaultTransferOperation(ctx sdk.Context, creator string, transfer *types.IdentityDefaultTransfer) error` - -Flow: - -- Get source network from `tokenmanager` module. Check that bridge transfers are acceptable for that network. -- Create operation entry and check that operation does not exist. -- Only not approved operation can be replaced. If operation already exists and need to be replaced then we have to clear - all existing votes. - ### CreateFeeTokenManagementOperation **CreateFeeTokenManagementOperation** - used by `tokenmanager` module to create fee management operation after proposal @@ -397,10 +381,11 @@ Also, use **CreateCSCARootUpdateOperation** - used by `cscalist` module to create CSCA root update operation after proposal pass -Definition: +Definition: `CreateCSCARootUpdateOperation(ctx sdk.Context, creator string, update *rarimo.CSCARootUpdate) (string, error)` Flow: + - Create proposal to replace/edit CSCA list (see [x/cscalist/README.md](../cscalist/README.md)) - When proposal is accepted, root key is updated - On the end block operation with **Merkle root** is created @@ -592,4 +577,18 @@ message DropPartiesProposal { } ``` +### ArbitrarySigningProposal + +**ArbitrarySigningProposal** - will be used for most kinds of admin operations, where the sign data should be defined +out of protocol definitions. Most common use case - contract upgrades. + +```protobuf +message ArbitrarySigningProposal { + string title = 1; + string description = 2; + // Hex encoded data to be signed. AWARE do not make collisions with existing operations. + string data = 3; +} +``` + ---- diff --git a/x/rarimocore/crypto/operation/op_contract_upgrade.go b/x/rarimocore/crypto/operation/op_contract_upgrade.go deleted file mode 100644 index 45bca3c7..00000000 --- a/x/rarimocore/crypto/operation/op_contract_upgrade.go +++ /dev/null @@ -1,49 +0,0 @@ -package operation - -import ( - "bytes" - - "github.com/ethereum/go-ethereum/common/hexutil" - eth "github.com/ethereum/go-ethereum/crypto" - merkle "github.com/rarimo/go-merkle" - tokenmanagermoduletypes "github.com/rarimo/rarimo-core/x/tokenmanager/types" -) - -// ContractUpgradeContent implements the Content interface provided by go-merkle and represents the content stored in the tree. -type ContractUpgradeContent struct { - Type tokenmanagermoduletypes.UpgradeType - ChainName string - Contract string - NewImplementationContract string - ByteCodeHash string - BufferAccount string - Nonce string -} - -var _ merkle.Content = ContractUpgradeContent{} - -func (c ContractUpgradeContent) CalculateHash() []byte { - // Solana: HASH(chain name, nonce, contract address, buffer address) - // Near: HASH(contract hash, chain name, nonce, contract address) - // EVM: HASH(upgrade type, new implementation address, chain name, nonce, contract address) - - upgradeTypeBytes := make([]byte, 0, 1) - if c.Type != tokenmanagermoduletypes.UpgradeType_NONE { - upgradeTypeBytes = append(upgradeTypeBytes, byte(c.Type)) - } - - return eth.Keccak256(upgradeTypeBytes, decodeOmitemptyHex(c.ByteCodeHash), decodeOmitemptyHex(c.NewImplementationContract), []byte(c.ChainName), To32Bytes(AmountBytes(c.Nonce)), decodeOmitemptyHex(c.Contract), decodeOmitemptyHex(c.BufferAccount)) -} - -// Equals tests for equality of two Contents -func (c ContractUpgradeContent) Equals(other merkle.Content) bool { - return bytes.Equal(other.CalculateHash(), c.CalculateHash()) -} - -func decodeOmitemptyHex(hex string) []byte { - if hex == "" { - return []byte{} - } - - return hexutil.MustDecode(hex) -} diff --git a/x/rarimocore/crypto/operation/op_identity_default_transfer.go b/x/rarimocore/crypto/operation/op_identity_default_transfer.go deleted file mode 100644 index e7bb546e..00000000 --- a/x/rarimocore/crypto/operation/op_identity_default_transfer.go +++ /dev/null @@ -1,48 +0,0 @@ -package operation - -import ( - "bytes" - - eth "github.com/ethereum/go-ethereum/crypto" - merkle "github.com/rarimo/go-merkle" -) - -// IdentityDefaultTransferContent implements the Content interface provided by go-merkle and represents the content stored in the tree. -type IdentityDefaultTransferContent struct { - Contract []byte - GISTHash []byte - Id []byte - StateHash []byte - StateCreatedAtTimestamp []byte - StateCreatedAtBlock []byte - StateReplacedBy []byte - GISTReplacedBy []byte - GISTCreatedAtTimestamp []byte - GISTCreatedAtBlock []byte - ReplacedStateHash []byte - ReplacedGISTHash []byte -} - -var _ merkle.Content = IdentityDefaultTransferContent{} - -func (c IdentityDefaultTransferContent) CalculateHash() []byte { - return eth.Keccak256( - c.Contract, - c.Id, - c.StateHash, - c.StateReplacedBy, - c.StateCreatedAtTimestamp, - c.StateCreatedAtBlock, - c.GISTHash, - c.GISTReplacedBy, - c.GISTCreatedAtTimestamp, - c.GISTCreatedAtBlock, - c.ReplacedStateHash, - c.ReplacedGISTHash, - ) -} - -// Equals tests for equality of two Contents -func (c IdentityDefaultTransferContent) Equals(other merkle.Content) bool { - return bytes.Equal(other.CalculateHash(), c.CalculateHash()) -} diff --git a/x/rarimocore/crypto/pkg/content/main.go b/x/rarimocore/crypto/pkg/content/main.go index 412f9b8d..52f718f8 100644 --- a/x/rarimocore/crypto/pkg/content/main.go +++ b/x/rarimocore/crypto/pkg/content/main.go @@ -43,24 +43,6 @@ func GetContents(client *grpc.ClientConn, operations ...*types.Operation) ([]mer return nil, err } - if content != nil { - contents = append(contents, content) - } - case types.OpType_CONTRACT_UPGRADE: - content, err := GetContractUpgradeContent(client, op) - if err != nil { - return nil, err - } - - if content != nil { - contents = append(contents, content) - } - case types.OpType_IDENTITY_DEFAULT_TRANSFER: - content, err := GetIdentityDefaultTransferContent(op) - if err != nil { - return nil, err - } - if content != nil { contents = append(contents, content) } @@ -186,31 +168,6 @@ func GetFeeManagementContent(client *grpc.ClientConn, op *types.Operation) (merk return content, errors.Wrap(err, "error creating content") } -func GetContractUpgradeContent(client *grpc.ClientConn, op *types.Operation) (merkle.Content, error) { - upgrade, err := pkg.GetContractUpgrade(*op) - if err != nil { - return nil, errors.Wrap(err, "error parsing operation details") - } - - networkResp, err := token.NewQueryClient(client).NetworkParams(context.TODO(), &token.QueryNetworkParamsRequest{Name: upgrade.Chain}) - if err != nil { - return nil, errors.Wrap(err, "error getting network param entry") - } - - content, err := pkg.GetContractUpgradeContent(networkResp.Params, upgrade) - return content, errors.Wrap(err, "error creating content") -} - -func GetIdentityDefaultTransferContent(op *types.Operation) (merkle.Content, error) { - transfer, err := pkg.GetIdentityDefaultTransfer(*op) - if err != nil { - return nil, errors.Wrap(err, "error parsing operation details") - } - - content, err := pkg.GetIdentityDefaultTransferContent(transfer) - return content, errors.Wrap(err, "error creating content") -} - func GetIdentityGISTTransferContent(op *types.Operation) (merkle.Content, error) { transfer, err := pkg.GetIdentityGISTTransfer(*op) if err != nil { diff --git a/x/rarimocore/crypto/pkg/op_contract_upgrade.go b/x/rarimocore/crypto/pkg/op_contract_upgrade.go deleted file mode 100644 index fde1e0dd..00000000 --- a/x/rarimocore/crypto/pkg/op_contract_upgrade.go +++ /dev/null @@ -1,50 +0,0 @@ -package pkg - -import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/gogo/protobuf/proto" - "github.com/rarimo/rarimo-core/x/rarimocore/crypto/operation" - "github.com/rarimo/rarimo-core/x/rarimocore/types" - tokentypes "github.com/rarimo/rarimo-core/x/tokenmanager/types" -) - -func GetContractUpgrade(operation types.Operation) (*types.ContractUpgrade, error) { - if operation.OperationType == types.OpType_CONTRACT_UPGRADE { - op := new(types.ContractUpgrade) - return op, proto.Unmarshal(operation.Details.Value, op) - } - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "invalid operation type") -} - -func GetContractUpgradeContent(params tokentypes.Network, op *types.ContractUpgrade) (*operation.ContractUpgradeContent, error) { - if params.Name != op.Chain { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "network names missmatch") - } - - switch params.Type { - case tokentypes.NetworkType_EVM: - return &operation.ContractUpgradeContent{ - ChainName: op.Chain, - Contract: op.TargetContract, - NewImplementationContract: op.NewImplementationContract, - Nonce: op.Nonce, - Type: op.Type, - }, nil - case tokentypes.NetworkType_Solana: - return &operation.ContractUpgradeContent{ - ChainName: op.Chain, - Contract: op.TargetContract, - BufferAccount: op.BufferAccount, - Nonce: op.Nonce, - }, nil - case tokentypes.NetworkType_Near: - return &operation.ContractUpgradeContent{ - ChainName: op.Chain, - Contract: op.TargetContract, - ByteCodeHash: op.Hash, - Nonce: op.Nonce, - }, nil - } - - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "invalid network type") -} diff --git a/x/rarimocore/crypto/pkg/op_identity_default_transfer.go b/x/rarimocore/crypto/pkg/op_identity_default_transfer.go deleted file mode 100644 index bfc70202..00000000 --- a/x/rarimocore/crypto/pkg/op_identity_default_transfer.go +++ /dev/null @@ -1,34 +0,0 @@ -package pkg - -import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/gogo/protobuf/proto" - "github.com/rarimo/rarimo-core/x/rarimocore/crypto/operation" - "github.com/rarimo/rarimo-core/x/rarimocore/types" -) - -func GetIdentityDefaultTransfer(operation types.Operation) (*types.IdentityDefaultTransfer, error) { - if operation.OperationType == types.OpType_IDENTITY_DEFAULT_TRANSFER { - change := new(types.IdentityDefaultTransfer) - return change, proto.Unmarshal(operation.Details.Value, change) - } - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidType, "invalid operation type") -} - -func GetIdentityDefaultTransferContent(op *types.IdentityDefaultTransfer) (*operation.IdentityDefaultTransferContent, error) { - return &operation.IdentityDefaultTransferContent{ - Contract: hexutil.MustDecode(op.Contract), - GISTHash: operation.To32Bytes(hexutil.MustDecode(op.GISTHash)), - Id: operation.To32Bytes(hexutil.MustDecode(op.Id)), - StateHash: operation.To32Bytes(hexutil.MustDecode(op.StateHash)), - StateCreatedAtTimestamp: operation.To32Bytes(operation.AmountBytes(op.StateCreatedAtTimestamp)), - StateCreatedAtBlock: operation.To32Bytes(operation.AmountBytes(op.StateCreatedAtBlock)), - StateReplacedBy: operation.To32Bytes(hexutil.MustDecode(op.StateReplacedBy)), - GISTReplacedBy: operation.To32Bytes(hexutil.MustDecode(op.GISTReplacedBy)), - GISTCreatedAtTimestamp: operation.To32Bytes(operation.AmountBytes(op.GISTCreatedAtTimestamp)), - GISTCreatedAtBlock: operation.To32Bytes(operation.AmountBytes(op.GISTCreatedAtBlock)), - ReplacedStateHash: operation.To32Bytes(hexutil.MustDecode(op.ReplacedStateHash)), - ReplacedGISTHash: operation.To32Bytes(hexutil.MustDecode(op.ReplacedGISTHash)), - }, nil -} diff --git a/x/rarimocore/keeper/keeper.go b/x/rarimocore/keeper/keeper.go index 3f31ac31..4bf5c167 100644 --- a/x/rarimocore/keeper/keeper.go +++ b/x/rarimocore/keeper/keeper.go @@ -54,67 +54,6 @@ func (k Keeper) Logger(ctx sdk.Context) log.Logger { return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) } -func (k Keeper) CreateContractUpgradeOperation(ctx sdk.Context, upgradeDetails *tokenmanagertypes.ContractUpgradeDetails) error { - network, ok := k.tm.GetNetwork(ctx, upgradeDetails.Chain) - if !ok { - return sdkerrors.Wrap(sdkerrors.ErrNotFound, "network not found") - } - - upgrade := &types.ContractUpgrade{ - TargetContract: upgradeDetails.TargetContract, - Chain: upgradeDetails.Chain, - NewImplementationContract: upgradeDetails.NewImplementationContract, - Hash: upgradeDetails.Hash, - BufferAccount: upgradeDetails.BufferAccount, - Nonce: upgradeDetails.Nonce, - Type: upgradeDetails.Type, - } - - content, err := pkg.GetContractUpgradeContent(network, upgrade) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "error creating content %s", err.Error()) - } - - details, err := cosmostypes.NewAnyWithValue(upgrade) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "error parsing details %s", err.Error()) - } - - // Index is HASH(block, content [depending on chain]) - index := hexutil.Encode(crypto.Keccak256(big.NewInt(ctx.BlockHeight()).Bytes(), content.CalculateHash())) - - var operation = types.Operation{ - Index: index, - OperationType: types.OpType_CONTRACT_UPGRADE, - Details: details, - Status: types.OpStatus_INITIALIZED, - Creator: types.ModuleName, - Timestamp: uint64(ctx.BlockTime().Unix()), - } - - // Mostly impossible case cause operation index depends on block height. - if _, ok := k.GetOperation(ctx, operation.Index); ok { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "can not recreate operation with type: %s", operation.OperationType.String()) - } - - k.SetOperation( - ctx, - operation, - ) - - ctx.EventManager().EmitEvent(sdk.NewEvent(types.EventTypeNewOperation, - sdk.NewAttribute(types.AttributeKeyOperationId, operation.Index), - sdk.NewAttribute(types.AttributeKeyOperationType, operation.OperationType.String()), - )) - - // Operation is auto-approved (cause created by proposal) - if err := k.ApproveOperation(ctx, operation); err != nil { - return sdkerrors.Wrap(err, "failed to auto-approve operation") - } - - return nil -} - func (k Keeper) CreateFeeTokenManagementOperation(ctx sdk.Context, op *types.FeeTokenManagement) error { // Index is HASH(block height, chain, fee token contract, fee amount) index := hexutil.Encode(crypto.Keccak256(big.NewInt(ctx.BlockHeight()).Bytes(), []byte(op.Chain), []byte(op.Token.Contract), []byte(op.Token.Amount))) @@ -292,64 +231,6 @@ func (k Keeper) CreateIdentityAggregatedTransferOperation(ctx sdk.Context, creat return operation.Index, nil } -// Deprecated: consider using separate state and gist transfer operations. -func (k Keeper) CreateIdentityDefaultTransferOperation(ctx sdk.Context, creator string, transfer *types.IdentityDefaultTransfer) error { - network, ok := k.tm.GetNetwork(ctx, transfer.Chain) - if !ok { - return sdkerrors.Wrap(sdkerrors.ErrNotFound, "source network not found") - } - - if network.GetIdentityParams() == nil { - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "identity transfers is not supported due to lack of parameters") - } - - // TODO validate state contract using saver one in identity params - - details, err := cosmostypes.NewAnyWithValue(transfer) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "error parsing details %s", err.Error()) - } - - content, err := pkg.GetIdentityDefaultTransferContent(transfer) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "error creating content %s", err.Error()) - } - - var operation = types.Operation{ - Index: hexutil.Encode(content.CalculateHash()), - OperationType: types.OpType_IDENTITY_DEFAULT_TRANSFER, - Details: details, - Status: types.OpStatus_INITIALIZED, - Creator: creator, - Timestamp: uint64(ctx.BlockTime().Unix()), - } - - // Only not approved operation can be changed - if op, ok := k.GetOperation(ctx, operation.Index); ok { - if op.Status != types.OpStatus_NOT_APPROVED { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "to change operation it should be unapproved") - } - - // Otherwise - clear votes - k.IterateVotes(ctx, op.Index, func(vote types.Vote) (stop bool) { - k.RemoveVote(ctx, vote.Index) - return false - }) - } - - k.SetOperation( - ctx, - operation, - ) - - ctx.EventManager().EmitEvent(sdk.NewEvent(types.EventTypeNewOperation, - sdk.NewAttribute(types.AttributeKeyOperationId, operation.Index), - sdk.NewAttribute(types.AttributeKeyOperationType, operation.OperationType.String()), - )) - - return nil -} - func (k Keeper) CreateIdentityGISTTransferOperation(ctx sdk.Context, creator string, transfer *types.IdentityGISTTransfer) error { network, ok := k.tm.GetNetwork(ctx, transfer.Chain) if !ok { @@ -614,24 +495,6 @@ func (k Keeper) GetTransfer(ctx sdk.Context, msg *oracletypes.MsgCreateTransferO }, nil } -func (k Keeper) GetIdentityDefaultTransfer(_ sdk.Context, msg *oracletypes.MsgCreateIdentityDefaultTransferOp) (*types.IdentityDefaultTransfer, error) { - return &types.IdentityDefaultTransfer{ - Contract: msg.Contract, - Chain: msg.Chain, - GISTHash: msg.GISTHash, - Id: msg.Id, - StateHash: msg.StateHash, - StateCreatedAtTimestamp: msg.StateCreatedAtTimestamp, - StateCreatedAtBlock: msg.StateCreatedAtBlock, - StateReplacedBy: msg.StateReplacedBy, - GISTReplacedBy: msg.GISTReplacedBy, - GISTCreatedAtTimestamp: msg.GISTCreatedAtTimestamp, - GISTCreatedAtBlock: msg.GISTCreatedAtBlock, - ReplacedStateHash: msg.ReplacedStateHash, - ReplacedGISTHash: msg.ReplacedGISTtHash, - }, nil -} - func (k Keeper) GetIdentityGISTTransfer(_ sdk.Context, msg *oracletypes.MsgCreateIdentityGISTTransferOp) (*types.IdentityGISTTransfer, error) { return &types.IdentityGISTTransfer{ Contract: msg.Contract, diff --git a/x/rarimocore/keeper/msg_server_confirmation.go b/x/rarimocore/keeper/msg_server_confirmation.go index 72956f7c..79284b83 100644 --- a/x/rarimocore/keeper/msg_server_confirmation.go +++ b/x/rarimocore/keeper/msg_server_confirmation.go @@ -187,18 +187,6 @@ func (k Keeper) getContent(ctx sdk.Context, op types.Operation) (merkle.Content, return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "failed to unmarshal details") } return k.getFeeTokenManagementContent(ctx, manage) - case types.OpType_CONTRACT_UPGRADE: - upgrade, err := pkg.GetContractUpgrade(op) - if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "failed to unmarshal details") - } - return k.getContractUpgradeContent(ctx, upgrade) - case types.OpType_IDENTITY_DEFAULT_TRANSFER: - transfer, err := pkg.GetIdentityDefaultTransfer(op) - if err != nil { - return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "failed to unmarshal details") - } - return k.getIdentityDefaultTransferContent(ctx, transfer) case types.OpType_IDENTITY_GIST_TRANSFER: transfer, err := pkg.GetIdentityGISTTransfer(op) if err != nil { @@ -288,19 +276,6 @@ func (k Keeper) getFeeTokenManagementContent(ctx sdk.Context, manage *types.FeeT return pkg.GetFeeTokenManagementContent(feeparams, manage) } -func (k Keeper) getContractUpgradeContent(ctx sdk.Context, upgrade *types.ContractUpgrade) (*operation.ContractUpgradeContent, error) { - networkParams, ok := k.tm.GetNetwork(ctx, upgrade.Chain) - if !ok { - return nil, sdkerrors.Wrap(sdkerrors.ErrNotFound, "network params not found") - } - - return pkg.GetContractUpgradeContent(networkParams, upgrade) -} - -func (k Keeper) getIdentityDefaultTransferContent(_ sdk.Context, transfer *types.IdentityDefaultTransfer) (*operation.IdentityDefaultTransferContent, error) { - return pkg.GetIdentityDefaultTransferContent(transfer) -} - func (k Keeper) getIdentityGISTTransferContent(_ sdk.Context, transfer *types.IdentityGISTTransfer) (*operation.IdentityGISTTransferContent, error) { return pkg.GetIdentityGISTTransferContent(transfer) } diff --git a/x/rarimocore/types/codec.go b/x/rarimocore/types/codec.go index 5a44d6d3..5240a41b 100644 --- a/x/rarimocore/types/codec.go +++ b/x/rarimocore/types/codec.go @@ -20,8 +20,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&Transfer{}, "rarimocore/Transfer", nil) cdc.RegisterConcrete(&ChangeParties{}, "rarimocore/ChangeParties", nil) cdc.RegisterConcrete(&FeeTokenManagement{}, "rarimocore/FeeTokenManagement", nil) - cdc.RegisterConcrete(&ContractUpgrade{}, "rarimocore/ContractUpgrade", nil) - cdc.RegisterConcrete(&IdentityDefaultTransfer{}, "rarimocore/IdentityDefaultTransfer", nil) cdc.RegisterConcrete(&IdentityAggregatedTransfer{}, "rarimocore/IdentityAggregatedTransfer", nil) cdc.RegisterConcrete(&IdentityGISTTransfer{}, "rarimocore/IdentityGISTTransfer", nil) cdc.RegisterConcrete(&IdentityStateTransfer{}, "rarimocore/IdentityStateTransfer", nil) @@ -98,18 +96,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &FeeTokenManagement{}, ) - registry.RegisterInterface( - "rarimo.rarimocore.rarimocore.ContractUpgrade", - (*proto.Message)(nil), - &ContractUpgrade{}, - ) - - registry.RegisterInterface( - "rarimo.rarimocore.rarimocore.IdentityDefaultTransfer", - (*proto.Message)(nil), - &IdentityDefaultTransfer{}, - ) - registry.RegisterInterface( "rarimo.rarimocore.rarimocore.IdentityGISTTransfer", (*proto.Message)(nil), diff --git a/x/rarimocore/types/op_contract_upgrade.pb.go b/x/rarimocore/types/op_contract_upgrade.pb.go deleted file mode 100644 index 6a2fcfc4..00000000 --- a/x/rarimocore/types/op_contract_upgrade.pb.go +++ /dev/null @@ -1,626 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: rarimocore/op_contract_upgrade.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - types "github.com/rarimo/rarimo-core/x/tokenmanager/types" - 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 ContractUpgrade struct { - // Target contract address upgrade to - TargetContract string `protobuf:"bytes,1,opt,name=targetContract,proto3" json:"targetContract,omitempty"` - // Chain name according to stored in tokenmanager params - Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` - // New contract address: used on EVM - NewImplementationContract string `protobuf:"bytes,3,opt,name=newImplementationContract,proto3" json:"newImplementationContract,omitempty"` - // byte code hash: used on Solana and Near - Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` - // Solana buffer account - BufferAccount string `protobuf:"bytes,5,opt,name=bufferAccount,proto3" json:"bufferAccount,omitempty"` - // dec nonce - Nonce string `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"` - Type types.UpgradeType `protobuf:"varint,7,opt,name=type,proto3,enum=rarimo.rarimocore.tokenmanager.UpgradeType" json:"type,omitempty"` -} - -func (m *ContractUpgrade) Reset() { *m = ContractUpgrade{} } -func (m *ContractUpgrade) String() string { return proto.CompactTextString(m) } -func (*ContractUpgrade) ProtoMessage() {} -func (*ContractUpgrade) Descriptor() ([]byte, []int) { - return fileDescriptor_c9fcb7f3cf0bf891, []int{0} -} -func (m *ContractUpgrade) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContractUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContractUpgrade.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ContractUpgrade) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContractUpgrade.Merge(m, src) -} -func (m *ContractUpgrade) XXX_Size() int { - return m.Size() -} -func (m *ContractUpgrade) XXX_DiscardUnknown() { - xxx_messageInfo_ContractUpgrade.DiscardUnknown(m) -} - -var xxx_messageInfo_ContractUpgrade proto.InternalMessageInfo - -func (m *ContractUpgrade) GetTargetContract() string { - if m != nil { - return m.TargetContract - } - return "" -} - -func (m *ContractUpgrade) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *ContractUpgrade) GetNewImplementationContract() string { - if m != nil { - return m.NewImplementationContract - } - return "" -} - -func (m *ContractUpgrade) GetHash() string { - if m != nil { - return m.Hash - } - return "" -} - -func (m *ContractUpgrade) GetBufferAccount() string { - if m != nil { - return m.BufferAccount - } - return "" -} - -func (m *ContractUpgrade) GetNonce() string { - if m != nil { - return m.Nonce - } - return "" -} - -func (m *ContractUpgrade) GetType() types.UpgradeType { - if m != nil { - return m.Type - } - return types.UpgradeType_NONE -} - -func init() { - proto.RegisterType((*ContractUpgrade)(nil), "rarimo.rarimocore.rarimocore.ContractUpgrade") -} - -func init() { - proto.RegisterFile("rarimocore/op_contract_upgrade.proto", fileDescriptor_c9fcb7f3cf0bf891) -} - -var fileDescriptor_c9fcb7f3cf0bf891 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4a, 0x3b, 0x31, - 0x10, 0xc6, 0xbb, 0xfd, 0xb7, 0xfd, 0x63, 0xc0, 0x0a, 0xa1, 0x87, 0x6d, 0x95, 0xa5, 0x48, 0x91, - 0x82, 0xb8, 0x11, 0xbd, 0x0a, 0xa2, 0x9e, 0xf4, 0x58, 0xf4, 0xe2, 0xa5, 0x64, 0xe3, 0x34, 0xbb, - 0xd8, 0xcd, 0x84, 0x34, 0x8b, 0xf6, 0x2d, 0x7c, 0x02, 0x9f, 0xc7, 0x63, 0x8f, 0x1e, 0xa5, 0x7d, - 0x11, 0xd9, 0x64, 0xd5, 0xaa, 0x78, 0xca, 0x4c, 0xbe, 0xdf, 0x0c, 0x1f, 0xdf, 0x90, 0x81, 0xe1, - 0x26, 0xcb, 0x51, 0xa0, 0x01, 0x86, 0x7a, 0x2c, 0x50, 0x59, 0xc3, 0x85, 0x1d, 0x17, 0x5a, 0x1a, - 0x7e, 0x07,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 0x14, 0x3c, 0xad, 0xa2, 0xda, 0x62, 0x15, 0xd5, - 0x5e, 0x57, 0x51, 0xed, 0xf6, 0x50, 0x66, 0x36, 0x2d, 0x92, 0x58, 0x60, 0xce, 0xfc, 0xbe, 0xea, - 0x39, 0x70, 0xf7, 0x7d, 0x64, 0x6b, 0xc7, 0x2e, 0x57, 0xcd, 0x92, 0x96, 0xcb, 0xfc, 0xf8, 0x3d, - 0x00, 0x00, 0xff, 0xff, 0x03, 0xfd, 0xa9, 0x0e, 0x07, 0x02, 0x00, 0x00, -} - -func (m *ContractUpgrade) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContractUpgrade) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContractUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Type != 0 { - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x38 - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0x32 - } - if len(m.BufferAccount) > 0 { - i -= len(m.BufferAccount) - copy(dAtA[i:], m.BufferAccount) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.BufferAccount))) - i-- - dAtA[i] = 0x2a - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0x22 - } - if len(m.NewImplementationContract) > 0 { - i -= len(m.NewImplementationContract) - copy(dAtA[i:], m.NewImplementationContract) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.NewImplementationContract))) - i-- - dAtA[i] = 0x1a - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x12 - } - if len(m.TargetContract) > 0 { - i -= len(m.TargetContract) - copy(dAtA[i:], m.TargetContract) - i = encodeVarintOpContractUpgrade(dAtA, i, uint64(len(m.TargetContract))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintOpContractUpgrade(dAtA []byte, offset int, v uint64) int { - offset -= sovOpContractUpgrade(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ContractUpgrade) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TargetContract) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - l = len(m.NewImplementationContract) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - l = len(m.BufferAccount) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovOpContractUpgrade(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovOpContractUpgrade(uint64(m.Type)) - } - return n -} - -func sovOpContractUpgrade(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozOpContractUpgrade(x uint64) (n int) { - return sovOpContractUpgrade(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ContractUpgrade) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContractUpgrade: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContractUpgrade: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetContract", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetContract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewImplementationContract", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewImplementationContract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BufferAccount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BufferAccount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpContractUpgrade - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpContractUpgrade - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= types.UpgradeType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipOpContractUpgrade(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthOpContractUpgrade - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipOpContractUpgrade(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, ErrIntOverflowOpContractUpgrade - } - 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, ErrIntOverflowOpContractUpgrade - } - 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, ErrIntOverflowOpContractUpgrade - } - 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, ErrInvalidLengthOpContractUpgrade - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupOpContractUpgrade - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthOpContractUpgrade - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthOpContractUpgrade = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowOpContractUpgrade = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupOpContractUpgrade = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/rarimocore/types/op_identity_default_transfer.pb.go b/x/rarimocore/types/op_identity_default_transfer.pb.go deleted file mode 100644 index 97de3938..00000000 --- a/x/rarimocore/types/op_identity_default_transfer.pb.go +++ /dev/null @@ -1,957 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: rarimocore/op_identity_default_transfer.proto - -package types - -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/rarimo/rarimo-core/x/tokenmanager/types" - 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 IdentityDefaultTransfer struct { - // Hex 0x - Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` - Chain string `protobuf:"bytes,2,opt,name=chain,proto3" json:"chain,omitempty"` - // Hex 0x - GISTHash string `protobuf:"bytes,3,opt,name=GISTHash,proto3" json:"GISTHash,omitempty"` - // Hex 0x - Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"` - // Hex 0x - StateHash string `protobuf:"bytes,5,opt,name=stateHash,proto3" json:"stateHash,omitempty"` - // Dec - StateCreatedAtTimestamp string `protobuf:"bytes,6,opt,name=stateCreatedAtTimestamp,proto3" json:"stateCreatedAtTimestamp,omitempty"` - StateCreatedAtBlock string `protobuf:"bytes,7,opt,name=stateCreatedAtBlock,proto3" json:"stateCreatedAtBlock,omitempty"` - // Hex 0x - StateReplacedBy string `protobuf:"bytes,10,opt,name=stateReplacedBy,proto3" json:"stateReplacedBy,omitempty"` - GISTReplacedBy string `protobuf:"bytes,11,opt,name=GISTReplacedBy,proto3" json:"GISTReplacedBy,omitempty"` - // Dec - GISTCreatedAtTimestamp string `protobuf:"bytes,12,opt,name=GISTCreatedAtTimestamp,proto3" json:"GISTCreatedAtTimestamp,omitempty"` - GISTCreatedAtBlock string `protobuf:"bytes,13,opt,name=GISTCreatedAtBlock,proto3" json:"GISTCreatedAtBlock,omitempty"` - // HEX 0x - ReplacedStateHash string `protobuf:"bytes,16,opt,name=replacedStateHash,proto3" json:"replacedStateHash,omitempty"` - ReplacedGISTHash string `protobuf:"bytes,17,opt,name=replacedGISTHash,proto3" json:"replacedGISTHash,omitempty"` -} - -func (m *IdentityDefaultTransfer) Reset() { *m = IdentityDefaultTransfer{} } -func (m *IdentityDefaultTransfer) String() string { return proto.CompactTextString(m) } -func (*IdentityDefaultTransfer) ProtoMessage() {} -func (*IdentityDefaultTransfer) Descriptor() ([]byte, []int) { - return fileDescriptor_0a957d0fc92995af, []int{0} -} -func (m *IdentityDefaultTransfer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *IdentityDefaultTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_IdentityDefaultTransfer.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *IdentityDefaultTransfer) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdentityDefaultTransfer.Merge(m, src) -} -func (m *IdentityDefaultTransfer) XXX_Size() int { - return m.Size() -} -func (m *IdentityDefaultTransfer) XXX_DiscardUnknown() { - xxx_messageInfo_IdentityDefaultTransfer.DiscardUnknown(m) -} - -var xxx_messageInfo_IdentityDefaultTransfer proto.InternalMessageInfo - -func (m *IdentityDefaultTransfer) GetContract() string { - if m != nil { - return m.Contract - } - return "" -} - -func (m *IdentityDefaultTransfer) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *IdentityDefaultTransfer) GetGISTHash() string { - if m != nil { - return m.GISTHash - } - return "" -} - -func (m *IdentityDefaultTransfer) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *IdentityDefaultTransfer) GetStateHash() string { - if m != nil { - return m.StateHash - } - return "" -} - -func (m *IdentityDefaultTransfer) GetStateCreatedAtTimestamp() string { - if m != nil { - return m.StateCreatedAtTimestamp - } - return "" -} - -func (m *IdentityDefaultTransfer) GetStateCreatedAtBlock() string { - if m != nil { - return m.StateCreatedAtBlock - } - return "" -} - -func (m *IdentityDefaultTransfer) GetStateReplacedBy() string { - if m != nil { - return m.StateReplacedBy - } - return "" -} - -func (m *IdentityDefaultTransfer) GetGISTReplacedBy() string { - if m != nil { - return m.GISTReplacedBy - } - return "" -} - -func (m *IdentityDefaultTransfer) GetGISTCreatedAtTimestamp() string { - if m != nil { - return m.GISTCreatedAtTimestamp - } - return "" -} - -func (m *IdentityDefaultTransfer) GetGISTCreatedAtBlock() string { - if m != nil { - return m.GISTCreatedAtBlock - } - return "" -} - -func (m *IdentityDefaultTransfer) GetReplacedStateHash() string { - if m != nil { - return m.ReplacedStateHash - } - return "" -} - -func (m *IdentityDefaultTransfer) GetReplacedGISTHash() string { - if m != nil { - return m.ReplacedGISTHash - } - return "" -} - -func init() { - proto.RegisterType((*IdentityDefaultTransfer)(nil), "rarimo.rarimocore.rarimocore.IdentityDefaultTransfer") -} - -func init() { - proto.RegisterFile("rarimocore/op_identity_default_transfer.proto", fileDescriptor_0a957d0fc92995af) -} - -var fileDescriptor_0a957d0fc92995af = []byte{ - // 392 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6e, 0xda, 0x40, - 0x10, 0xc6, 0x31, 0x05, 0x5a, 0xb6, 0x2d, 0x85, 0x2d, 0x2a, 0x16, 0x42, 0x56, 0xd5, 0x43, 0x85, - 0xaa, 0x62, 0x23, 0x55, 0xaa, 0x7a, 0x2d, 0x89, 0x94, 0x90, 0x23, 0x70, 0xca, 0x05, 0x2d, 0xf6, - 0x62, 0x56, 0x60, 0xaf, 0xb5, 0x1e, 0xa4, 0xf0, 0x16, 0xb9, 0xe4, 0x9d, 0x72, 0xe4, 0x98, 0x63, - 0x04, 0x2f, 0x12, 0x79, 0xd6, 0xfc, 0x87, 0x93, 0x67, 0x7e, 0xdf, 0xf7, 0x69, 0xc6, 0xf6, 0x90, - 0x96, 0x62, 0x4a, 0x04, 0xd2, 0x95, 0x8a, 0x3b, 0x32, 0x1a, 0x0a, 0x8f, 0x87, 0x20, 0x60, 0x31, - 0xf4, 0xf8, 0x98, 0xcd, 0x67, 0x30, 0x04, 0xc5, 0xc2, 0x78, 0xcc, 0x95, 0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b, 0x2a, 0xb5, 0x09, 0x3d, 0x50, 0xf4, 0xea, 0x9f, 0x31, 0x73, 0x46, 0xa1, 0xbf, - 0x49, 0x45, 0xa5, 0x53, 0xfb, 0xdb, 0x6f, 0x59, 0x46, 0xfb, 0xa9, 0x40, 0x7f, 0x91, 0xf2, 0x06, - 0x6e, 0xff, 0x52, 0x05, 0xcd, 0x27, 0xbc, 0x73, 0xf7, 0xbc, 0xb2, 0x8c, 0xe5, 0xca, 0x32, 0x5e, - 0x57, 0x96, 0xf1, 0xb8, 0xb6, 0x32, 0xcb, 0xb5, 0x95, 0x79, 0x59, 0x5b, 0x99, 0xfb, 0xb6, 0x2f, - 0x60, 0x32, 0x1f, 0xd9, 0xae, 0x0c, 0x1c, 0x7d, 0x77, 0xe9, 0xa3, 0x85, 0x07, 0xfc, 0xe0, 0xec, - 0x5d, 0x33, 0x2c, 0x22, 0x1e, 0x8f, 0x0a, 0x78, 0x6a, 0x7f, 0xde, 0x02, 0x00, 0x00, 0xff, 0xff, - 0x2b, 0x8b, 0xca, 0x44, 0xe8, 0x02, 0x00, 0x00, -} - -func (m *IdentityDefaultTransfer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *IdentityDefaultTransfer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *IdentityDefaultTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ReplacedGISTHash) > 0 { - i -= len(m.ReplacedGISTHash) - copy(dAtA[i:], m.ReplacedGISTHash) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.ReplacedGISTHash))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - if len(m.ReplacedStateHash) > 0 { - i -= len(m.ReplacedStateHash) - copy(dAtA[i:], m.ReplacedStateHash) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.ReplacedStateHash))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(m.GISTCreatedAtBlock) > 0 { - i -= len(m.GISTCreatedAtBlock) - copy(dAtA[i:], m.GISTCreatedAtBlock) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.GISTCreatedAtBlock))) - i-- - dAtA[i] = 0x6a - } - if len(m.GISTCreatedAtTimestamp) > 0 { - i -= len(m.GISTCreatedAtTimestamp) - copy(dAtA[i:], m.GISTCreatedAtTimestamp) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.GISTCreatedAtTimestamp))) - i-- - dAtA[i] = 0x62 - } - if len(m.GISTReplacedBy) > 0 { - i -= len(m.GISTReplacedBy) - copy(dAtA[i:], m.GISTReplacedBy) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.GISTReplacedBy))) - i-- - dAtA[i] = 0x5a - } - if len(m.StateReplacedBy) > 0 { - i -= len(m.StateReplacedBy) - copy(dAtA[i:], m.StateReplacedBy) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.StateReplacedBy))) - i-- - dAtA[i] = 0x52 - } - if len(m.StateCreatedAtBlock) > 0 { - i -= len(m.StateCreatedAtBlock) - copy(dAtA[i:], m.StateCreatedAtBlock) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.StateCreatedAtBlock))) - i-- - dAtA[i] = 0x3a - } - if len(m.StateCreatedAtTimestamp) > 0 { - i -= len(m.StateCreatedAtTimestamp) - copy(dAtA[i:], m.StateCreatedAtTimestamp) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.StateCreatedAtTimestamp))) - i-- - dAtA[i] = 0x32 - } - if len(m.StateHash) > 0 { - i -= len(m.StateHash) - copy(dAtA[i:], m.StateHash) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.StateHash))) - i-- - dAtA[i] = 0x2a - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0x22 - } - if len(m.GISTHash) > 0 { - i -= len(m.GISTHash) - copy(dAtA[i:], m.GISTHash) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.GISTHash))) - i-- - dAtA[i] = 0x1a - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x12 - } - if len(m.Contract) > 0 { - i -= len(m.Contract) - copy(dAtA[i:], m.Contract) - i = encodeVarintOpIdentityDefaultTransfer(dAtA, i, uint64(len(m.Contract))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintOpIdentityDefaultTransfer(dAtA []byte, offset int, v uint64) int { - offset -= sovOpIdentityDefaultTransfer(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *IdentityDefaultTransfer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Contract) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.GISTHash) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.StateHash) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.StateCreatedAtTimestamp) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.StateCreatedAtBlock) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.StateReplacedBy) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.GISTReplacedBy) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.GISTCreatedAtTimestamp) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.GISTCreatedAtBlock) - if l > 0 { - n += 1 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.ReplacedStateHash) - if l > 0 { - n += 2 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - l = len(m.ReplacedGISTHash) - if l > 0 { - n += 2 + l + sovOpIdentityDefaultTransfer(uint64(l)) - } - return n -} - -func sovOpIdentityDefaultTransfer(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozOpIdentityDefaultTransfer(x uint64) (n int) { - return sovOpIdentityDefaultTransfer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *IdentityDefaultTransfer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: IdentityDefaultTransfer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IdentityDefaultTransfer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Contract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GISTHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateCreatedAtTimestamp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateCreatedAtTimestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateCreatedAtBlock", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateCreatedAtBlock = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StateReplacedBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StateReplacedBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTReplacedBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GISTReplacedBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTCreatedAtTimestamp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GISTCreatedAtTimestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GISTCreatedAtBlock", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GISTCreatedAtBlock = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplacedStateHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplacedStateHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplacedGISTHash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOpIdentityDefaultTransfer - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplacedGISTHash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipOpIdentityDefaultTransfer(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthOpIdentityDefaultTransfer - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipOpIdentityDefaultTransfer(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, ErrIntOverflowOpIdentityDefaultTransfer - } - 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, ErrIntOverflowOpIdentityDefaultTransfer - } - 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, ErrIntOverflowOpIdentityDefaultTransfer - } - 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, ErrInvalidLengthOpIdentityDefaultTransfer - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupOpIdentityDefaultTransfer - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthOpIdentityDefaultTransfer - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthOpIdentityDefaultTransfer = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowOpIdentityDefaultTransfer = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupOpIdentityDefaultTransfer = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/rarimocore/types/operation.pb.go b/x/rarimocore/types/operation.pb.go index b4ab3860..67e912ac 100644 --- a/x/rarimocore/types/operation.pb.go +++ b/x/rarimocore/types/operation.pb.go @@ -26,10 +26,12 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type OpType int32 const ( - OpType_TRANSFER OpType = 0 - OpType_CHANGE_PARTIES OpType = 1 - OpType_FEE_TOKEN_MANAGEMENT OpType = 2 - OpType_CONTRACT_UPGRADE OpType = 3 + OpType_TRANSFER OpType = 0 + OpType_CHANGE_PARTIES OpType = 1 + OpType_FEE_TOKEN_MANAGEMENT OpType = 2 + // Deprecated + OpType_CONTRACT_UPGRADE OpType = 3 + // Deprecated OpType_IDENTITY_DEFAULT_TRANSFER OpType = 4 OpType_IDENTITY_AGGREGATED_TRANSFER OpType = 5 OpType_IDENTITY_GIST_TRANSFER OpType = 6 diff --git a/x/tokenmanager/keeper/proposal_networks.go b/x/tokenmanager/keeper/proposal_networks.go index 7c2aae8b..a2003ced 100644 --- a/x/tokenmanager/keeper/proposal_networks.go +++ b/x/tokenmanager/keeper/proposal_networks.go @@ -1,90 +1,11 @@ package keeper import ( - "math/big" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/ethereum/go-ethereum/common/hexutil" "github.com/rarimo/rarimo-core/x/tokenmanager/types" ) -var upgradeVerifiers = map[types.NetworkType]func(details *types.ContractUpgradeDetails) error{ - types.NetworkType_EVM: func(details *types.ContractUpgradeDetails) error { - if _, err := hexutil.Decode(details.TargetContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid target contract address %s", err.Error()) - } - - if _, err := hexutil.Decode(details.NewImplementationContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid new contract address %s", err.Error()) - } - - if _, ok := new(big.Int).SetString(details.Nonce, 10); !ok { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid nonce") - } - - return nil - }, - types.NetworkType_Solana: func(details *types.ContractUpgradeDetails) error { - if _, err := hexutil.Decode(details.TargetContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid target contract address %s", err.Error()) - } - - if _, err := hexutil.Decode(details.BufferAccount); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid buffer address %s", err.Error()) - } - - if _, ok := new(big.Int).SetString(details.Nonce, 10); !ok { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid nonce") - } - - return nil - }, - types.NetworkType_Near: func(details *types.ContractUpgradeDetails) error { - if _, err := hexutil.Decode(details.TargetContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid target contract address %s", err.Error()) - } - - if _, err := hexutil.Decode(details.Hash); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid hash %s", err.Error()) - } - - if _, ok := new(big.Int).SetString(details.Nonce, 10); !ok { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid nonce") - } - - return nil - }, - types.NetworkType_RarimoEVM: func(details *types.ContractUpgradeDetails) error { - if _, err := hexutil.Decode(details.TargetContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid target contract address %s", err.Error()) - } - - if _, err := hexutil.Decode(details.NewImplementationContract); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid new contract address %s", err.Error()) - } - - if _, ok := new(big.Int).SetString(details.Nonce, 10); !ok { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid nonce") - } - - return nil - }, -} - -func (k Keeper) HandleUpgradeContractProposal(ctx sdk.Context, proposal *types.UpgradeContractProposal) error { - network, ok := k.GetNetwork(ctx, proposal.Details.Chain) - if !ok { - return sdkerrors.Wrap(sdkerrors.ErrNotFound, "network not found") - } - - if err := upgradeVerifiers[network.Type](&proposal.Details); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "proposal validation failed %s", err.Error()) - } - - return k.rarimo.CreateContractUpgradeOperation(ctx, &proposal.Details) -} - func (k Keeper) HandleAddNetworkProposal(ctx sdk.Context, proposal *types.AddNetworkProposal) error { params := k.GetParams(ctx) params.Networks = append(params.Networks, &proposal.Network) diff --git a/x/tokenmanager/proposal_handler.go b/x/tokenmanager/proposal_handler.go index d14a04fc..a2724801 100644 --- a/x/tokenmanager/proposal_handler.go +++ b/x/tokenmanager/proposal_handler.go @@ -11,8 +11,6 @@ import ( func NewProposalHandler(k keeper.Keeper) govv1beta1.Handler { return func(ctx sdk.Context, content govv1beta1.Content) error { switch c := content.(type) { - case *types.UpgradeContractProposal: - return k.HandleUpgradeContractProposal(ctx, c) case *types.AddNetworkProposal: return k.HandleAddNetworkProposal(ctx, c) case *types.RemoveNetworkProposal: diff --git a/x/tokenmanager/types/codec.go b/x/tokenmanager/types/codec.go index 4b92db43..998c7109 100644 --- a/x/tokenmanager/types/codec.go +++ b/x/tokenmanager/types/codec.go @@ -9,7 +9,6 @@ import ( ) func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&UpgradeContractProposal{}, "tokenmanager/UpgradeContractProposal", nil) cdc.RegisterConcrete(&AddNetworkProposal{}, "tokenmanager/AddNetworkProposal", nil) cdc.RegisterConcrete(&RemoveNetworkProposal{}, "tokenmanager/RemoveNetworkProposal", nil) @@ -36,7 +35,6 @@ func RegisterCodec(cdc *codec.LegacyAmino) { func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations( (*govtypes.Content)(nil), - &UpgradeContractProposal{}, &AddNetworkProposal{}, &RemoveNetworkProposal{}, diff --git a/x/tokenmanager/types/expected_keepers.go b/x/tokenmanager/types/expected_keepers.go index 3c65f70b..60715d0e 100644 --- a/x/tokenmanager/types/expected_keepers.go +++ b/x/tokenmanager/types/expected_keepers.go @@ -22,5 +22,4 @@ type RarimocoreKeeper interface { CreateRemoveFeeTokenOperation(ctx sdk.Context, token FeeToken, chain string, nonce string) error CreateUpdateFeeTokenOperation(ctx sdk.Context, token FeeToken, chain string, nonce string) error CreateWithdrawFeeOperation(ctx sdk.Context, token FeeToken, chain string, receiver string, nonce string) error - CreateContractUpgradeOperation(ctx sdk.Context, upgradeDetails *ContractUpgradeDetails) error } diff --git a/x/tokenmanager/types/proposal.go b/x/tokenmanager/types/proposal.go index 127c0c97..1b5f1412 100644 --- a/x/tokenmanager/types/proposal.go +++ b/x/tokenmanager/types/proposal.go @@ -5,7 +5,6 @@ import ( ) const ( - ProposalTypeUpgradeContract = "tokenmanager/UpgradeContract" ProposalTypeAddNetwork = "tokenmanager/AddNetwork" ProposalTypeRemoveNetwork = "tokenmanager/RemoveNetwork" ProposalTypeUpdateContractAddress = "tokenmanager/UpdateContractAddressNetwork" @@ -24,7 +23,6 @@ const ( ) func init() { - gov.RegisterProposalType(ProposalTypeUpgradeContract) gov.RegisterProposalType(ProposalTypeAddNetwork) gov.RegisterProposalType(ProposalTypeRemoveNetwork) gov.RegisterProposalType(ProposalTypeUpdateContractAddress) @@ -42,7 +40,6 @@ func init() { gov.RegisterProposalType(ProposalTypeRemoveCollectionData) gov.RegisterProposalType(ProposalTypeRemoveCollection) - gov.ModuleCdc.RegisterConcrete(&UpgradeContractProposal{}, "tokenmanager/UpgradeContractProposal", nil) gov.ModuleCdc.RegisterConcrete(&AddNetworkProposal{}, "tokenmanager/AddNetworkProposal", nil) gov.ModuleCdc.RegisterConcrete(&RemoveNetworkProposal{}, "tokenmanager/RemoveNetworkProposal", nil) @@ -60,20 +57,6 @@ func init() { gov.ModuleCdc.RegisterConcrete(&RemoveCollectionProposal{}, "tokenmanager/RemoveCollectionProposal", nil) } -// Implements Proposal Interface -var _ gov.Content = &UpgradeContractProposal{} - -func (m *UpgradeContractProposal) ProposalRoute() string { return RouterKey } -func (m *UpgradeContractProposal) ProposalType() string { return ProposalTypeUpgradeContract } - -func (m *UpgradeContractProposal) ValidateBasic() error { - if err := gov.ValidateAbstract(m); err != nil { - return err - } - - return nil -} - // Implements Proposal Interface var _ gov.Content = &AddNetworkProposal{} diff --git a/x/tokenmanager/types/proposal.pb.go b/x/tokenmanager/types/proposal.pb.go index fd78cb3d..f5e61d0d 100644 --- a/x/tokenmanager/types/proposal.pb.go +++ b/x/tokenmanager/types/proposal.pb.go @@ -24,192 +24,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type UpgradeType int32 - -const ( - UpgradeType_NONE UpgradeType = 0 - UpgradeType_BASIC_IMPLEMENTATION UpgradeType = 1 - UpgradeType_OTHER UpgradeType = 2 -) - -var UpgradeType_name = map[int32]string{ - 0: "NONE", - 1: "BASIC_IMPLEMENTATION", - 2: "OTHER", -} - -var UpgradeType_value = map[string]int32{ - "NONE": 0, - "BASIC_IMPLEMENTATION": 1, - "OTHER": 2, -} - -func (x UpgradeType) String() string { - return proto.EnumName(UpgradeType_name, int32(x)) -} - -func (UpgradeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{0} -} - -type ContractUpgradeDetails struct { - // Target contract address upgrade to - TargetContract string `protobuf:"bytes,1,opt,name=targetContract,proto3" json:"targetContract,omitempty"` - // New contract address: used on EVM - NewImplementationContract string `protobuf:"bytes,2,opt,name=newImplementationContract,proto3" json:"newImplementationContract,omitempty"` - // byte code hash: used on Solana and Near - Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` - // Solana buffer account - BufferAccount string `protobuf:"bytes,4,opt,name=bufferAccount,proto3" json:"bufferAccount,omitempty"` - // chain name according to stored in tokenmanager params - Chain string `protobuf:"bytes,5,opt,name=chain,proto3" json:"chain,omitempty"` - // dec nonce - Nonce string `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"` - Type UpgradeType `protobuf:"varint,7,opt,name=type,proto3,enum=rarimo.rarimocore.tokenmanager.UpgradeType" json:"type,omitempty"` -} - -func (m *ContractUpgradeDetails) Reset() { *m = ContractUpgradeDetails{} } -func (m *ContractUpgradeDetails) String() string { return proto.CompactTextString(m) } -func (*ContractUpgradeDetails) ProtoMessage() {} -func (*ContractUpgradeDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{0} -} -func (m *ContractUpgradeDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContractUpgradeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContractUpgradeDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ContractUpgradeDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContractUpgradeDetails.Merge(m, src) -} -func (m *ContractUpgradeDetails) XXX_Size() int { - return m.Size() -} -func (m *ContractUpgradeDetails) XXX_DiscardUnknown() { - xxx_messageInfo_ContractUpgradeDetails.DiscardUnknown(m) -} - -var xxx_messageInfo_ContractUpgradeDetails proto.InternalMessageInfo - -func (m *ContractUpgradeDetails) GetTargetContract() string { - if m != nil { - return m.TargetContract - } - return "" -} - -func (m *ContractUpgradeDetails) GetNewImplementationContract() string { - if m != nil { - return m.NewImplementationContract - } - return "" -} - -func (m *ContractUpgradeDetails) GetHash() string { - if m != nil { - return m.Hash - } - return "" -} - -func (m *ContractUpgradeDetails) GetBufferAccount() string { - if m != nil { - return m.BufferAccount - } - return "" -} - -func (m *ContractUpgradeDetails) GetChain() string { - if m != nil { - return m.Chain - } - return "" -} - -func (m *ContractUpgradeDetails) GetNonce() string { - if m != nil { - return m.Nonce - } - return "" -} - -func (m *ContractUpgradeDetails) GetType() UpgradeType { - if m != nil { - return m.Type - } - return UpgradeType_NONE -} - -type UpgradeContractProposal struct { - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Details ContractUpgradeDetails `protobuf:"bytes,4,opt,name=details,proto3" json:"details"` -} - -func (m *UpgradeContractProposal) Reset() { *m = UpgradeContractProposal{} } -func (m *UpgradeContractProposal) String() string { return proto.CompactTextString(m) } -func (*UpgradeContractProposal) ProtoMessage() {} -func (*UpgradeContractProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{1} -} -func (m *UpgradeContractProposal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UpgradeContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UpgradeContractProposal.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UpgradeContractProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpgradeContractProposal.Merge(m, src) -} -func (m *UpgradeContractProposal) XXX_Size() int { - return m.Size() -} -func (m *UpgradeContractProposal) XXX_DiscardUnknown() { - xxx_messageInfo_UpgradeContractProposal.DiscardUnknown(m) -} - -var xxx_messageInfo_UpgradeContractProposal proto.InternalMessageInfo - -func (m *UpgradeContractProposal) GetTitle() string { - if m != nil { - return m.Title - } - return "" -} - -func (m *UpgradeContractProposal) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *UpgradeContractProposal) GetDetails() ContractUpgradeDetails { - if m != nil { - return m.Details - } - return ContractUpgradeDetails{} -} - type AddNetworkProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` @@ -220,7 +34,7 @@ func (m *AddNetworkProposal) Reset() { *m = AddNetworkProposal{} } func (m *AddNetworkProposal) String() string { return proto.CompactTextString(m) } func (*AddNetworkProposal) ProtoMessage() {} func (*AddNetworkProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{2} + return fileDescriptor_095086fc1f73fe4b, []int{0} } func (m *AddNetworkProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -280,7 +94,7 @@ func (m *RemoveNetworkProposal) Reset() { *m = RemoveNetworkProposal{} } func (m *RemoveNetworkProposal) String() string { return proto.CompactTextString(m) } func (*RemoveNetworkProposal) ProtoMessage() {} func (*RemoveNetworkProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{3} + return fileDescriptor_095086fc1f73fe4b, []int{1} } func (m *RemoveNetworkProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -342,7 +156,7 @@ func (m *AddFeeTokenProposal) Reset() { *m = AddFeeTokenProposal{} } func (m *AddFeeTokenProposal) String() string { return proto.CompactTextString(m) } func (*AddFeeTokenProposal) ProtoMessage() {} func (*AddFeeTokenProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{4} + return fileDescriptor_095086fc1f73fe4b, []int{2} } func (m *AddFeeTokenProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +232,7 @@ func (m *UpdateFeeTokenProposal) Reset() { *m = UpdateFeeTokenProposal{} func (m *UpdateFeeTokenProposal) String() string { return proto.CompactTextString(m) } func (*UpdateFeeTokenProposal) ProtoMessage() {} func (*UpdateFeeTokenProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{5} + return fileDescriptor_095086fc1f73fe4b, []int{3} } func (m *UpdateFeeTokenProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -494,7 +308,7 @@ func (m *RemoveFeeTokenProposal) Reset() { *m = RemoveFeeTokenProposal{} func (m *RemoveFeeTokenProposal) String() string { return proto.CompactTextString(m) } func (*RemoveFeeTokenProposal) ProtoMessage() {} func (*RemoveFeeTokenProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{6} + return fileDescriptor_095086fc1f73fe4b, []int{4} } func (m *RemoveFeeTokenProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -571,7 +385,7 @@ func (m *WithdrawFeeProposal) Reset() { *m = WithdrawFeeProposal{} } func (m *WithdrawFeeProposal) String() string { return proto.CompactTextString(m) } func (*WithdrawFeeProposal) ProtoMessage() {} func (*WithdrawFeeProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{7} + return fileDescriptor_095086fc1f73fe4b, []int{5} } func (m *WithdrawFeeProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -652,7 +466,7 @@ func (m *UpdateTokenItemProposal) Reset() { *m = UpdateTokenItemProposal func (m *UpdateTokenItemProposal) String() string { return proto.CompactTextString(m) } func (*UpdateTokenItemProposal) ProtoMessage() {} func (*UpdateTokenItemProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{8} + return fileDescriptor_095086fc1f73fe4b, []int{6} } func (m *UpdateTokenItemProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -712,7 +526,7 @@ func (m *RemoveTokenItemProposal) Reset() { *m = RemoveTokenItemProposal func (m *RemoveTokenItemProposal) String() string { return proto.CompactTextString(m) } func (*RemoveTokenItemProposal) ProtoMessage() {} func (*RemoveTokenItemProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{9} + return fileDescriptor_095086fc1f73fe4b, []int{7} } func (m *RemoveTokenItemProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -777,7 +591,7 @@ func (m *CreateCollectionProposal) Reset() { *m = CreateCollectionPropos func (m *CreateCollectionProposal) String() string { return proto.CompactTextString(m) } func (*CreateCollectionProposal) ProtoMessage() {} func (*CreateCollectionProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{10} + return fileDescriptor_095086fc1f73fe4b, []int{8} } func (m *CreateCollectionProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -865,7 +679,7 @@ func (m *UpdateCollectionDataProposal) Reset() { *m = UpdateCollectionDa func (m *UpdateCollectionDataProposal) String() string { return proto.CompactTextString(m) } func (*UpdateCollectionDataProposal) ProtoMessage() {} func (*UpdateCollectionDataProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{11} + return fileDescriptor_095086fc1f73fe4b, []int{9} } func (m *UpdateCollectionDataProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -925,7 +739,7 @@ func (m *AddCollectionDataProposal) Reset() { *m = AddCollectionDataProp func (m *AddCollectionDataProposal) String() string { return proto.CompactTextString(m) } func (*AddCollectionDataProposal) ProtoMessage() {} func (*AddCollectionDataProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{12} + return fileDescriptor_095086fc1f73fe4b, []int{10} } func (m *AddCollectionDataProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -985,7 +799,7 @@ func (m *RemoveCollectionDataProposal) Reset() { *m = RemoveCollectionDa func (m *RemoveCollectionDataProposal) String() string { return proto.CompactTextString(m) } func (*RemoveCollectionDataProposal) ProtoMessage() {} func (*RemoveCollectionDataProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{13} + return fileDescriptor_095086fc1f73fe4b, []int{11} } func (m *RemoveCollectionDataProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1045,7 +859,7 @@ func (m *RemoveCollectionProposal) Reset() { *m = RemoveCollectionPropos func (m *RemoveCollectionProposal) String() string { return proto.CompactTextString(m) } func (*RemoveCollectionProposal) ProtoMessage() {} func (*RemoveCollectionProposal) Descriptor() ([]byte, []int) { - return fileDescriptor_095086fc1f73fe4b, []int{14} + return fileDescriptor_095086fc1f73fe4b, []int{12} } func (m *RemoveCollectionProposal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1096,9 +910,6 @@ func (m *RemoveCollectionProposal) GetIndex() string { } func init() { - proto.RegisterEnum("rarimo.rarimocore.tokenmanager.UpgradeType", UpgradeType_name, UpgradeType_value) - proto.RegisterType((*ContractUpgradeDetails)(nil), "rarimo.rarimocore.tokenmanager.ContractUpgradeDetails") - proto.RegisterType((*UpgradeContractProposal)(nil), "rarimo.rarimocore.tokenmanager.UpgradeContractProposal") proto.RegisterType((*AddNetworkProposal)(nil), "rarimo.rarimocore.tokenmanager.AddNetworkProposal") proto.RegisterType((*RemoveNetworkProposal)(nil), "rarimo.rarimocore.tokenmanager.RemoveNetworkProposal") proto.RegisterType((*AddFeeTokenProposal)(nil), "rarimo.rarimocore.tokenmanager.AddFeeTokenProposal") @@ -1117,177 +928,47 @@ func init() { func init() { proto.RegisterFile("tokenmanager/proposal.proto", fileDescriptor_095086fc1f73fe4b) } var fileDescriptor_095086fc1f73fe4b = []byte{ - // 843 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x8f, 0xdb, 0x54, - 0x10, 0xcf, 0xdb, 0x38, 0xfb, 0x67, 0x2c, 0xaa, 0xd5, 0xeb, 0xb2, 0xeb, 0x5d, 0x4a, 0x58, 0x59, - 0x15, 0xac, 0x40, 0x24, 0x92, 0x2b, 0x21, 0x0e, 0x95, 0x50, 0x36, 0xbb, 0x85, 0x48, 0x4d, 0x52, - 0x99, 0x14, 0x24, 0x2e, 0xe8, 0xc5, 0x9e, 0x75, 0xac, 0xc6, 0x7e, 0xd6, 0xcb, 0x4b, 0xb7, 0xfb, - 0x19, 0x7a, 0xe1, 0x82, 0x40, 0xdc, 0x38, 0x70, 0xe0, 0x53, 0x20, 0x71, 0xea, 0xb1, 0x47, 0x24, - 0x24, 0x84, 0x76, 0xbf, 0x08, 0xf2, 0x7b, 0xb6, 0xd7, 0xa9, 0x0a, 0xa1, 0x24, 0x91, 0xe8, 0xc9, - 0x9e, 0x99, 0x37, 0x33, 0xbf, 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0x15, 0x00, - 0x00, 0xff, 0xff, 0xeb, 0xa3, 0xa7, 0xd9, 0xf2, 0x0b, 0x00, 0x00, -} - -func (m *ContractUpgradeDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContractUpgradeDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContractUpgradeDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Type != 0 { - i = encodeVarintProposal(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x38 - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0x32 - } - if len(m.Chain) > 0 { - i -= len(m.Chain) - copy(dAtA[i:], m.Chain) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Chain))) - i-- - dAtA[i] = 0x2a - } - if len(m.BufferAccount) > 0 { - i -= len(m.BufferAccount) - copy(dAtA[i:], m.BufferAccount) - i = encodeVarintProposal(dAtA, i, uint64(len(m.BufferAccount))) - i-- - dAtA[i] = 0x22 - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0x1a - } - if len(m.NewImplementationContract) > 0 { - i -= len(m.NewImplementationContract) - copy(dAtA[i:], m.NewImplementationContract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.NewImplementationContract))) - i-- - dAtA[i] = 0x12 - } - if len(m.TargetContract) > 0 { - i -= len(m.TargetContract) - copy(dAtA[i:], m.TargetContract) - i = encodeVarintProposal(dAtA, i, uint64(len(m.TargetContract))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *UpgradeContractProposal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UpgradeContractProposal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpgradeContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProposal(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x12 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintProposal(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + // 636 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0xcd, 0x92, 0xb8, 0x1f, 0x93, 0x9b, 0x1b, 0x5a, 0xb7, 0x14, 0x13, 0x59, 0x48, 0x44, 0x42, + 0xd8, 0x52, 0x7a, 0xe1, 0xda, 0xa6, 0x2a, 0x8a, 0x44, 0x01, 0x59, 0x45, 0x48, 0xdc, 0x36, 0xf6, + 0xe0, 0x58, 0x8d, 0xbd, 0xd6, 0x66, 0xfb, 0xf5, 0x1b, 0x7a, 0xe1, 0x82, 0x40, 0xdc, 0xf8, 0x25, + 0x48, 0x9c, 0x7a, 0xec, 0x11, 0x09, 0x09, 0xa1, 0xe4, 0x8f, 0x20, 0xef, 0x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, 0x98, 0xd5, 0x40, 0xf3, 0xba, 0x34, 0x8c, 0x25, 0xaf, 0x55, 0x57, 0x05, 0xd6, 0x67, + 0x02, 0x6b, 0xbb, 0xbe, 0x7f, 0x80, 0x78, 0x94, 0x92, 0x5a, 0x4c, 0x97, 0x74, 0x35, 0x66, 0xb1, + 0x87, 0x46, 0x45, 0xad, 0xca, 0x40, 0xdf, 0x07, 0x4d, 0x3a, 0x61, 0x68, 0xd2, 0xa9, 0xc6, 0x34, + 0xa7, 0x46, 0x24, 0x33, 0xab, 0x14, 0xd8, 0xfa, 0x42, 0x60, 0xfd, 0x65, 0xe2, 0x53, 0x81, 0xff, + 0xb1, 0x88, 0x0f, 0x04, 0xd6, 0xd5, 0xb8, 0x17, 0x2c, 0x62, 0x0b, 0x56, 0x3c, 0x16, 0x0b, 0x4e, + 0x3d, 0x91, 0xe9, 0xc8, 0xe3, 0xb1, 0x40, 0xad, 0x20, 0xd0, 0xfa, 0x46, 0x60, 0xed, 0x55, 0x28, + 0xba, 0x3e, 0xa7, 0x67, 0x07, 0x88, 0x0b, 0xe2, 0x95, 0xdb, 0x58, 0x99, 0xc1, 0xc6, 0x54, 0x1d, + 0x47, 0x0f, 0xc3, 0x53, 0xe4, 0x99, 0x88, 0x3c, 0x1e, 0xab, 0x5b, 0x2a, 0xaa, 0xbb, 0x24, 0xb0, + 0xa1, 0x76, 0x8f, 0x2c, 0xd7, 0x16, 0x18, 0xcd, 0xac, 0xf0, 0x31, 0x54, 0xd2, 0xdf, 0x92, 0x51, + 0xae, 0x97, 0x1b, 0xd5, 0xe6, 0xfd, 0x69, 0x52, 0xd2, 0x9e, 0xae, 0x44, 0x58, 0x01, 0x6c, 0xa8, + 0x5d, 0x30, 0x3f, 0x32, 0x35, 0xd0, 0xc2, 0xd8, 0xc7, 0x73, 0xc9, 0x66, 0xd5, 0x55, 0x81, 0x75, + 0x59, 0x06, 0xa3, 0xc5, 0x91, 0x0a, 0x6c, 0xe5, 0xff, 0xd7, 0x79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x00, 0xff, 0xff, 0x47, 0x40, 0x93, 0x97, 0xe0, 0x09, 0x00, 0x00, } func (m *AddNetworkProposal) Marshal() (dAtA []byte, err error) { @@ -2030,43 +1711,47 @@ func encodeVarintProposal(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *ContractUpgradeDetails) Size() (n int) { +func (m *AddNetworkProposal) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.TargetContract) + l = len(m.Title) if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - l = len(m.NewImplementationContract) + l = len(m.Description) if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) + l = m.Network.Size() + n += 1 + l + sovProposal(uint64(l)) + return n +} + +func (m *RemoveNetworkProposal) Size() (n int) { + if m == nil { + return 0 } - l = len(m.BufferAccount) + var l int + _ = l + l = len(m.Title) if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - l = len(m.Chain) + l = len(m.Description) if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - l = len(m.Nonce) + l = len(m.Chain) if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - if m.Type != 0 { - n += 1 + sovProposal(uint64(m.Type)) - } return n } -func (m *UpgradeContractProposal) Size() (n int) { +func (m *AddFeeTokenProposal) Size() (n int) { if m == nil { return 0 } @@ -2080,79 +1765,20 @@ func (m *UpgradeContractProposal) Size() (n int) { if l > 0 { n += 1 + l + sovProposal(uint64(l)) } - l = m.Details.Size() + l = len(m.Chain) + if l > 0 { + n += 1 + l + sovProposal(uint64(l)) + } + l = len(m.Nonce) + if l > 0 { + n += 1 + l + sovProposal(uint64(l)) + } + l = m.Token.Size() n += 1 + l + sovProposal(uint64(l)) return n } -func (m *AddNetworkProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = m.Network.Size() - n += 1 + l + sovProposal(uint64(l)) - return n -} - -func (m *RemoveNetworkProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - return n -} - -func (m *AddFeeTokenProposal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Title) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Chain) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovProposal(uint64(l)) - } - l = m.Token.Size() - n += 1 + l + sovProposal(uint64(l)) - return n -} - -func (m *UpdateFeeTokenProposal) Size() (n int) { +func (m *UpdateFeeTokenProposal) Size() (n int) { if m == nil { return 0 } @@ -2422,414 +2048,6 @@ func sovProposal(x uint64) (n int) { func sozProposal(x uint64) (n int) { return sovProposal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *ContractUpgradeDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContractUpgradeDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContractUpgradeDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetContract", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TargetContract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewImplementationContract", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewImplementationContract = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BufferAccount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BufferAccount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Chain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Chain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= UpgradeType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpgradeContractProposal) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpgradeContractProposal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpgradeContractProposal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProposal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProposal - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProposal - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProposal(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProposal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func (m *AddNetworkProposal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0