Skip to content

Commit

Permalink
Add the generated exchange api client stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim committed Apr 28, 2021
1 parent 6374bfc commit c8674ee
Show file tree
Hide file tree
Showing 26 changed files with 16,518 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all:

copy-exchange-client:
cp -r ../injective-exchange/api/gen/grpc/injective_exchange_rpc exchange/exchange_rpc
cp -r ../injective-exchange/api/gen/grpc/injective_accounts_rpc exchange/accounts_rpc
cp -r ../injective-exchange/api/gen/grpc/injective_spot_exchange_rpc exchange/spot_exchange_rpc
cp -r ../injective-exchange/api/gen/grpc/injective_derivative_exchange_rpc exchange/derivative_exchange_rpc
rm -rf exchange/exchange_rpc/server
rm -rf exchange/accounts_rpc/server
rm -rf exchange/spot_exchange_rpc/server
rm -rf exchange/derivative_exchange_rpc/server

.PHONY: copy-exchange-client
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ $ go install ./...

---

## Updating Exchange API proto and client

```bash
$ make copy-exchange-client
```

(you have to clone [this repo](https://github.com/InjectiveLabs/injective-exchange) into `../injective-exchange`)

---

## Publishing Tagged Release

```bash
Expand Down
165 changes: 165 additions & 0 deletions exchange/accounts_rpc/client/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

202 changes: 202 additions & 0 deletions exchange/accounts_rpc/client/encode_decode.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c8674ee

Please sign in to comment.