Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
Added new protobuf generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
demondayza committed Oct 20, 2022
1 parent 7f2d10a commit 0c059d6
Show file tree
Hide file tree
Showing 75 changed files with 67,900 additions and 7,524 deletions.
28,916 changes: 28,916 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"format": "prettier \"src/**/*.ts\" --write",
"format:check": "prettier \"src/**/*.ts\" --check",
"lint": "eslint src --ext .ts --fix",
"genproto": "bash ./src/proto/genproto.sh",
"lint:check": "eslint src --ext .ts",
"test": "jest tests/index.spec.ts --forceExit",
"test:coverage": "nyc ava && nyc report --reporter=html",
Expand All @@ -57,6 +58,7 @@
"lodash.memoize": "4.1.2",
"sovrin-did": "1.4.0",
"ts-proto": "^1.110.2",
"ts-protoc-gen": "^0.15.0",
"tweetnacl": "^1.0.3",
"typedoc": "^0.23.9"
},
Expand Down
Empty file modified src/proto/bonds/bonds.proto
100755 → 100644
Empty file.
Empty file modified src/proto/bonds/genesis.proto
100755 → 100644
Empty file.
17 changes: 17 additions & 0 deletions src/proto/bonds/query.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ service Query {
rpc AlphaMaximums(QueryAlphaMaximumsRequest) returns (QueryAlphaMaximumsResponse) {
option (google.api.http).get = "/ixo/bonds/{bond_did}/alpha_maximums";
}

// rpc BondAccountDetails(QueryAlphaMaximumsRequest) returns (QueryBondAccountDetailsResponse) {
// option (google.api.http).get = "/ixo/bonds/{bond_did}/bond_account_details";
// }
}

// QueryBondsRequest is the request type for the Query/Bonds RPC method.
Expand Down Expand Up @@ -223,6 +227,19 @@ message QueryAlphaMaximumsResponse {
string max_system_alpha = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"max_system_alpha\""];
}


// message QueryBondAccountDetailsRequest {
// string bond_did = 1 [(gogoproto.moretags) = "yaml:\"bond_did\""];
// }

// QueryAlphaMaximumsResponse is the response type for the Query/AlphaMaximums RPC method.
// message QueryBondAccountDetailsResponse {
// string fee_account = 1 [(gogoproto.moretags) = "yaml:\"fee_address\""];
// string withdraw_reserve_account = 2 [(gogoproto.moretags) = "yaml:\"withdraw_reserve_account\""];
// string outcome_payment_account = 3 [(gogoproto.moretags) = "yaml:\"outcome_payment_account\""];
// string reserve_account = 4 [(gogoproto.moretags) = "yaml:\"reserve_account\""];
// }

// QueryParamsRequest is the request type for the Query/Params RPC method.
message QueryParamsRequest {}

Expand Down
11 changes: 11 additions & 0 deletions src/proto/bonds/tx.proto
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ message MsgCreateBond {
bool alpha_bond = 20 [(gogoproto.moretags) = "yaml:\"alpha_bond\""];
string batch_blocks = 21 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"batch_blocks\""];
string outcome_payment = 22 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outcome_payment\""];
string creator_address = 23 [(gogoproto.jsontag) = "creator_address", (gogoproto.moretags) = "yaml:\"creator_address\""];
}

// MsgCreateBondResponse defines the Msg/CreateBond response type.
Expand All @@ -78,6 +79,7 @@ message MsgEditBond {
string sanity_rate = 5 [(gogoproto.moretags) = "yaml:\"sanity_rate\""];
string sanity_margin_percentage = 6 [(gogoproto.moretags) = "yaml:\"sanity_margin_percentage\""];
string editor_did = 7 [(gogoproto.moretags) = "yaml:\"editor_did\""];
string editor_address = 8 [(gogoproto.jsontag) = "editor_address", (gogoproto.moretags) = "yaml:\"editor_address\""];
}

// MsgEditBondResponse defines the Msg/EditBond response type.
Expand All @@ -88,6 +90,7 @@ message MsgSetNextAlpha {
string bond_did = 1 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string alpha = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"alpha\""];
string editor_did = 3 [(gogoproto.moretags) = "yaml:\"editor_did\""];
string editor_address = 4 [(gogoproto.jsontag) = "editor_address", (gogoproto.moretags) = "yaml:\"editor_address\""];
}

message MsgSetNextAlphaResponse {}
Expand All @@ -97,6 +100,7 @@ message MsgUpdateBondState {
string bond_did = 1 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string state = 2 [(gogoproto.moretags) = "yaml:\"state\""];
string editor_did = 3 [(gogoproto.moretags) = "yaml:\"editor_did\""];
string editor_address = 4 [(gogoproto.jsontag) = "editor_address", (gogoproto.moretags) = "yaml:\"editor_address\""];
}

// MsgUpdateBondStateResponse defines the Msg/UpdateBondState response type.
Expand All @@ -108,6 +112,7 @@ message MsgBuy {
cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"amount\""];
repeated cosmos.base.v1beta1.Coin max_prices = 3 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"max_prices\""];
string bond_did = 4 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string buyer_address = 5 [(gogoproto.jsontag) = "buyer_address", (gogoproto.moretags) = "yaml:\"buyer_address\""];
}

// MsgBuyResponse defines the Msg/Buy response type.
Expand All @@ -118,6 +123,8 @@ message MsgSell {
string seller_did = 1 [(gogoproto.moretags) = "yaml:\"seller_did\""];
cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"amount\""];
string bond_did = 3 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string seller_address = 4 [(gogoproto.jsontag) = "seller_address", (gogoproto.moretags) = "yaml:\"seller_address\""];

}

// MsgSellResponse defines the Msg/Sell response type.
Expand All @@ -129,6 +136,7 @@ message MsgSwap {
string bond_did = 2 [(gogoproto.moretags) = "yaml:\"bond_did\""];
cosmos.base.v1beta1.Coin from = 3 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"from\""];
string to_token = 4 [(gogoproto.moretags) = "yaml:\"to_token\""];
string swapper_address = 5 [(gogoproto.jsontag) = "swapper_address", (gogoproto.moretags) = "yaml:\"swapper_address\""];
}

// MsgSwapResponse defines the Msg/Swap response type.
Expand All @@ -139,6 +147,7 @@ message MsgMakeOutcomePayment {
string sender_did = 1 [(gogoproto.moretags) = "yaml:\"sender_did\""];
string amount = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"amount\""];
string bond_did = 3 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string sender_address = 4 [(gogoproto.jsontag) = "sender_address", (gogoproto.moretags) = "yaml:\"sender_address\""];
}

// MsgMakeOutcomePaymentResponse defines the Msg/MakeOutcomePayment response type.
Expand All @@ -148,6 +157,7 @@ message MsgMakeOutcomePaymentResponse {}
message MsgWithdrawShare {
string recipient_did = 1 [(gogoproto.moretags) = "yaml:\"recipient_did\""];
string bond_did = 2 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string recipient_address = 3 [(gogoproto.jsontag) = "recipient_address", (gogoproto.moretags) = "yaml:\"recipient_address\""];
}

// MsgWithdrawShareResponse defines the Msg/WithdrawShare response type.
Expand All @@ -158,6 +168,7 @@ message MsgWithdrawReserve {
string withdrawer_did = 1 [(gogoproto.moretags) = "yaml:\"withdrawer_did\""];
repeated cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"amount\""];
string bond_did = 3 [(gogoproto.moretags) = "yaml:\"bond_did\""];
string withdrawer_address = 4 [(gogoproto.jsontag) = "withdrawer_address", (gogoproto.moretags) = "yaml:\"withdrawer_address\""];
}

// MsgWithdrawReserveResponse defines the Msg/WithdrawReserve response type.
Expand Down
Loading

0 comments on commit 0c059d6

Please sign in to comment.