Skip to content

Commit

Permalink
Merge pull request #8 from okp4/feat/index-objects-in-objectariums
Browse files Browse the repository at this point in the history
Feat/index objects in objectariums
  • Loading branch information
ErikssonJoakim authored Aug 4, 2023
2 parents 964c994 + 6adeca7 commit e803088
Show file tree
Hide file tree
Showing 16 changed files with 509 additions and 716 deletions.
32 changes: 14 additions & 18 deletions project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,27 @@ network:
- https://api.testnet.okp4.network/rpc
dictionary: "https://api.subquery.network/sq/subquery/cosmos-hub-dictionary"
chainTypes:
cosmos.slashing.v1beta1:
file: ./proto/cosmos/slashing/v1beta1/tx.proto
cosmos.base.v1beta1:
file: ./proto/cosmos/base/v1beta1/coin.proto
messages:
- MsgUnjail
cosmos.gov.v1beta1:
file: ./proto/cosmos/gov/v1beta1/tx.proto
- Coin
cosmwasm.wasm.v1:
file: ./proto/cosmwasm/wasm/v1/tx.proto
messages:
- MsgVoteWeighted
cosmos.gov.v1beta1.gov:
file: ./proto/cosmos/gov/v1beta1/gov.proto
messages:
- WeightedVoteOption
- MsgExecuteContract
dataSources:
- kind: cosmos/Runtime
startBlock: 2910000
startBlock: 3492166
mapping:
file: ./dist/index.js
handlers:
- handler: handleEvent
kind: cosmos/EventHandler
- handler: handleStoreObject
kind: cosmos/MessageHandler
filter:
type: transfer
messageFilter:
type: /cosmos.bank.v1beta1.MsgSend
- handler: handleMessage
type: /cosmwasm.wasm.v1.MsgExecuteContract
contractCall: store_object
- handler: handleForgetObject
kind: cosmos/MessageHandler
filter:
type: /cosmos.bank.v1beta1.MsgSend
type: /cosmwasm.wasm.v1.MsgExecuteContract
contractCall: forget_object
48 changes: 48 additions & 0 deletions proto/cosmos/base/v1beta1/coin.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
syntax = "proto3";
package cosmos.base.v1beta1;

import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "amino/amino.proto";

option go_package = "github.com/cosmos/cosmos-sdk/types";
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.stringer_all) = false;

// Coin defines a token with a denomination and an amount.
//
// NOTE: The amount field is an Int which implements the custom method
// signatures required by gogoproto.
message Coin {
option (gogoproto.equal) = true;

string denom = 1;
string amount = 2 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "Int",
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true
];
}

// DecCoin defines a token with a denomination and a decimal amount.
//
// NOTE: The amount field is an Dec which implements the custom method
// signatures required by gogoproto.
message DecCoin {
option (gogoproto.equal) = true;

string denom = 1;
string amount = 2
[(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
}

// IntProto defines a Protobuf wrapper around an Int object.
message IntProto {
string int = 1 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "Int", (gogoproto.nullable) = false];
}

// DecProto defines a Protobuf wrapper around a Dec object.
message DecProto {
string dec = 1 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "Dec", (gogoproto.nullable) = false];
}
200 changes: 0 additions & 200 deletions proto/cosmos/gov/v1beta1/gov.proto

This file was deleted.

99 changes: 0 additions & 99 deletions proto/cosmos/gov/v1beta1/tx.proto

This file was deleted.

Loading

0 comments on commit e803088

Please sign in to comment.