Skip to content

Commit

Permalink
Merge pull request #3 from MinterTeam/1.3
Browse files Browse the repository at this point in the history
wip: v1.3
  • Loading branch information
Klimov Sergey authored Apr 12, 2021
2 parents c70c333 + df8990d commit eb83ce1
Show file tree
Hide file tree
Showing 12 changed files with 11,351 additions and 4,773 deletions.
108 changes: 102 additions & 6 deletions api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ service ApiService {
option (google.api.http) = {
get: "/subscribe"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "WebSockets";
}

// Halts
Expand All @@ -26,15 +27,17 @@ service ApiService {
option (google.api.http) = {
get: "/halts/{height}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Vote";
}

// Genesis
//
// Genesis returns genesis file.
rpc Genesis (google.protobuf.Empty) returns (GenesisResponse) {
option (google.api.http) = {
get: "/genesis"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// MinGasPrice
Expand All @@ -44,6 +47,7 @@ service ApiService {
option (google.api.http) = {
get: "/min_gas_price"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Price";
}

// NetInfo
Expand All @@ -53,6 +57,7 @@ service ApiService {
option (google.api.http) = {
get: "/net_info"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Status
Expand All @@ -62,6 +67,7 @@ service ApiService {
option (google.api.http) = {
get: "/status"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Address
Expand All @@ -71,6 +77,7 @@ service ApiService {
option (google.api.http) = {
get: "/address/{address}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Balance";
}

// Addresses
Expand All @@ -80,6 +87,7 @@ service ApiService {
option (google.api.http) = {
get: "/addresses"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Balance";
}

// Block
Expand All @@ -89,6 +97,7 @@ service ApiService {
option (google.api.http) = {
get: "/block/{height}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Candidate
Expand All @@ -100,6 +109,7 @@ service ApiService {
option (google.api.http) = {
get: "/candidate/{public_key}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Validator";
}

// Candidates
Expand All @@ -109,6 +119,7 @@ service ApiService {
option (google.api.http) = {
get: "/candidates"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Validator";
}

// CoinInfoById
Expand All @@ -118,6 +129,7 @@ service ApiService {
option (google.api.http) = {
get: "/coin_info_by_id/{id}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// CoinInfo
Expand All @@ -127,6 +139,7 @@ service ApiService {
option (google.api.http) = {
get: "/coin_info/{symbol}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// EstimateCoinBuy
Expand All @@ -136,6 +149,7 @@ service ApiService {
option (google.api.http) = {
get: "/estimate_coin_buy"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// EstimateCoinSell
Expand All @@ -145,6 +159,7 @@ service ApiService {
option (google.api.http) = {
get: "/estimate_coin_sell"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// EstimateCoinSellAll
Expand All @@ -154,6 +169,7 @@ service ApiService {
option (google.api.http) = {
get: "/estimate_coin_sell_all"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// EstimateTxCommission
Expand All @@ -163,6 +179,7 @@ service ApiService {
option (google.api.http) = {
get: "/estimate_tx_commission/{tx}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Price";
}

// Events
Expand All @@ -172,6 +189,7 @@ service ApiService {
option (google.api.http) = {
get: "/events/{height}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Event";
}

// MaxGasPrice
Expand All @@ -181,6 +199,7 @@ service ApiService {
option (google.api.http) = {
get: "/max_gas_price"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Price";
}

// MissedBlocks
Expand All @@ -190,6 +209,7 @@ service ApiService {
option (google.api.http) = {
get: "/missed_blocks/{public_key}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Validator";
}

// SendTransaction
Expand All @@ -204,12 +224,11 @@ service ApiService {
body: "*"
}
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
external_docs: {
url: "https://www.minter.network/docs#transactions"
description: "More about Minter transactions"
}
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).external_docs = {
url: "https://www.minter.network/docs#transactions"
description: "More about Minter transactions"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Transaction
Expand All @@ -219,6 +238,7 @@ service ApiService {
option (google.api.http) = {
get: "/transaction/{hash}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Transactions
Expand All @@ -228,6 +248,7 @@ service ApiService {
option (google.api.http) = {
get: "/transactions"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// UnconfirmedTxs
Expand All @@ -237,6 +258,7 @@ service ApiService {
option (google.api.http) = {
get: "/unconfirmed_txs"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// Validators
Expand All @@ -246,6 +268,7 @@ service ApiService {
option (google.api.http) = {
get: "/validators"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Validator";
}

// Frozen
Expand All @@ -255,6 +278,7 @@ service ApiService {
option (google.api.http) = {
get: "/frozen/{address}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Balance";
}

// WaitList
Expand All @@ -264,6 +288,7 @@ service ApiService {
option (google.api.http) = {
get: "/waitlist/{address}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Balance";
}

// TestBlock
Expand All @@ -273,5 +298,76 @@ service ApiService {
option (google.api.http) = {
get: "/test/block"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Test";
}

// SwapPool
//
//
rpc SwapPool (SwapPoolRequest) returns (SwapPoolResponse) {
option (google.api.http) = {
get: "/swap_pool/{coin0}/{coin1}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// SwapPoolProvider
//
//
rpc SwapPoolProvider (SwapPoolProviderRequest) returns (SwapPoolResponse) {
option (google.api.http) = {
get: "/swap_pool/{coin0}/{coin1}/{provider}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Coin";
}

// PriceCommission
//
//
rpc PriceCommission (PriceCommissionRequest) returns (PriceCommissionResponse) {
option (google.api.http) = {
get: "/price_commissions"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Price";
}

// VersionNetwork
//
//
rpc VersionNetwork (VersionNetworkRequest) returns (VersionNetworkResponse) {
option (google.api.http) = {
get: "/version_network"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}

// CommissionVotes
//
//
rpc CommissionVotes (CommissionVotesRequest) returns (CommissionVotesResponse) {
option (google.api.http) = {
get: "/commission_votes/{target_version}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Vote";
}

// UpdateVotes
//
//
rpc UpdateVotes (UpdateVotesRequest) returns (UpdateVotesResponse) {
option (google.api.http) = {
get: "/update_votes/{target_version}"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Vote";
}

// Blocks
//
//
rpc Blocks (BlocksRequest) returns (BlocksResponse) {
option (google.api.http) = {
get: "/blocks"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation).tags = "Blockchain";
}
}
Loading

0 comments on commit eb83ce1

Please sign in to comment.