Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
ac12ca4
(feat) Created the API component for the auction module (with the uni…
Jun 21, 2023
cf4dc61
(feat) Created the API class for the bank module (with its unit tests)
Jun 22, 2023
011b9ee
(feat) Created the API component for the auth module. Created also th…
Jun 23, 2023
80c97ff
(feat) Regenerated proto files based on Injective Core with support f…
Sep 6, 2023
605986d
(feat) Finished implementation to support chain streams. Added more d…
Sep 7, 2023
364d78c
(feat) Finished configuraton of chain stream example module
Sep 7, 2023
afac173
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Sep 20, 2023
74140e9
(fix) Fixed issues found by Black
Sep 20, 2023
69fcd5a
(feat) Moved all changelog info from README.md into its own file
Sep 27, 2023
a29b821
(feat) Upgraded proto definitions to the version required to use the …
Oct 4, 2023
537294b
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Oct 4, 2023
33b4d1b
(fix) Increase version number
Oct 4, 2023
4c5d090
(fix) Updated CHANGELOG file
Oct 4, 2023
87b0af7
(feat) Added example for liquidable positions request. Also removed s…
Oct 6, 2023
f4f56ca
Merge pull request #255 from InjectiveLabs/feat/add_deriv_positions_e…
aarmoa Oct 6, 2023
4e97c01
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Oct 9, 2023
b70150b
(feat) Updated proto files requirements from the latest injective-cor…
Oct 9, 2023
1941ecc
(fix) Addressed comment made during PR review
Oct 11, 2023
fc0e683
(feat) Added example for liquidable positions request. Also removed s…
Oct 6, 2023
322a7ec
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Oct 11, 2023
8048f0c
Merge pull request #258 from InjectiveLabs/fix/sync_dev_with_master_092
aarmoa Oct 11, 2023
f376401
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Oct 11, 2023
a5040cd
(feat) Created the API component for the auction module (with the uni…
Jun 21, 2023
df4436d
(feat) Created the API class for the bank module (with its unit tests)
Jun 22, 2023
42c3cb4
(feat) Created the API component for the auth module. Created also th…
Jun 23, 2023
cb666b3
Merge branch 'feat/create_api_components' of https://github.com/Injec…
Oct 11, 2023
d4b51d1
(fix) Fix Network imports in tests after synchronizing the refactorin…
Oct 11, 2023
76687cd
(fix) Fixed issue in the logic that creates subaccount deposits filte…
Oct 16, 2023
20c966b
(feat) Added example for liquidable positions request. Also removed s…
Oct 6, 2023
33e4b01
(feat) Remove aiocron dependency. Use pure asyncio task to update the…
Oct 16, 2023
a9f6842
(fix) Undo inclusion of Python 3.12 to tests execution GitHub workflow
Oct 16, 2023
aa0fc44
chore: remove example
achilleas-kal Oct 17, 2023
1d0e795
Merge branch 'dev' into feat/remove_chrone_dependency
aarmoa Oct 17, 2023
cb38b09
Merge pull request #260 from InjectiveLabs/feat/remove_chrone_dependency
aarmoa Oct 17, 2023
ba7c0ab
(feat) Implemented Indexer Account low level API component. Created n…
Oct 20, 2023
45a4b7e
(feat) Implemented the AuthZ low level API component
Oct 20, 2023
f49d7c5
(feat) Implemented low level API component for Transactions module. A…
Oct 24, 2023
78612f6
(fix) Update urllib3 requirement to solve dependabot issue
Oct 24, 2023
0a51a5e
(feat) Migrated proto files to latest `dev` version to support Client…
Oct 25, 2023
f12c856
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Oct 25, 2023
e0831ba
(fix) Modified required test coverage
Oct 25, 2023
9407224
(fix) Updated poetry.lock file
Oct 25, 2023
2a53d22
(feat) Added cid to all messages used to cancel orders in spot, deriv…
Oct 25, 2023
520b793
(fix) Updated version number
Oct 26, 2023
125c94b
(feat) Created Indexer Meta API components. Created new functions in …
Oct 30, 2023
58ee139
(feat) Implemented the low level API component for Indexer Oracle mod…
Oct 31, 2023
7801216
(feat) Implemented low level API components for Indexer Insurance mod…
Oct 31, 2023
bd46412
(feat) Implemented the low level API components for the Indexer Aucti…
Oct 31, 2023
1f053da
(fix) Removed k8s node support for testnet. Synchronized all proto de…
Nov 1, 2023
75b7807
Merge pull request #243 from InjectiveLabs/feat/add_chain_streams_sup…
aarmoa Nov 1, 2023
e080b0f
(feat) Started implementing the Indexer Spot Exchange low level API c…
Nov 3, 2023
a9a25c6
(feat) Updated buffer gas amount for fee in all examples
Nov 3, 2023
fbbedf0
Merge pull request #262 from InjectiveLabs/feat/update_gas_fee_buffer…
aarmoa Nov 3, 2023
4c371e8
Merge branch 'feat/sync_denoms_ini_files' of https://github.com/Injec…
Nov 6, 2023
df2f01b
(fix) Updated proto definitions
Nov 7, 2023
05505fe
Merge pull request #265 from InjectiveLabs/fix/sync_dev_with_master_095
aarmoa Nov 7, 2023
14bfbb7
(fix) Updated proto definitions based on injective-core v1.12.4-testn…
Nov 8, 2023
96e7f4c
(fix) Updated version number
Nov 8, 2023
e4beb6e
Merge pull request #266 from InjectiveLabs/fix/add_missing_parameters…
aarmoa Nov 8, 2023
caaec5d
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Nov 9, 2023
c7c1b53
(feat) Implemented request endpoints for spot exchange in the low lev…
Nov 13, 2023
675d71f
(feat) Implemented low level API for all stream endpoints of the spot…
Nov 15, 2023
01e5c3d
(fix) Changed the proto compilation code in Makefile to point to Inje…
Nov 15, 2023
38da231
(fix) Updated version number in pyproject.toml
Nov 15, 2023
4b9e3e2
(fix) Added pytest configuration to pyproject.toml, sepcifying the te…
Nov 15, 2023
d89245a
Merge branch 'fix/use_injective_forks_proto_definitions' of https://g…
Nov 15, 2023
1738f0f
Merge pull request #267 from InjectiveLabs/fix/use_injective_forks_pr…
aarmoa Nov 16, 2023
70bde90
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Nov 17, 2023
a549e62
(feat) Added exchange derivative module gRPC requests to the low leve…
Nov 17, 2023
c57e1ce
Merge pull request #269 from InjectiveLabs/feat/synchronize_with_mast…
aarmoa Nov 20, 2023
f5d44a5
(feat) Improved markets and tokens parsing to ensure there are no dup…
Nov 22, 2023
a3d1eba
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Nov 22, 2023
d717d96
Merge pull request #272 from InjectiveLabs/feat/ensure_tokens_uniqueness
aarmoa Nov 22, 2023
1d815fb
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Nov 22, 2023
c03b55b
Merge pull request #273 from InjectiveLabs/feat/synchronize_with_mast…
aarmoa Nov 22, 2023
0edbb81
(feat) Added low level API component for exchange derivative streams.…
Nov 27, 2023
cfb507e
(feat) Added low level API components for the exchange portfolio modu…
Nov 29, 2023
25adca0
(feat) Added low level API components for the exchange explorer modu…
Dec 1, 2023
d65cb2e
(feat) Added low level API component for exchange explorer streams. A…
Dec 1, 2023
f32ec5e
(feat) Added low level API component for chain stream. Added unit tes…
Dec 2, 2023
d89e637
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Dec 3, 2023
c1c8089
Merge pull request #276 from InjectiveLabs/feat/synchronize_dev_with_…
aarmoa Dec 3, 2023
8e2a66e
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Dec 3, 2023
4de1701
(fix) Fixed failing deprecation warning tests
Dec 4, 2023
e72eedf
(fix) Updated coverage requirement from 50% to 65%
Dec 4, 2023
7672c35
(fix) Fixed scripts still referencing deprecated functions in AsyncCl…
Dec 4, 2023
0204942
Merge pull request #277 from InjectiveLabs/feat/create_api_components
aarmoa Dec 4, 2023
b44ebd2
(feat) Added support for spot and derivative TradesV2 and StreamTrade…
Dec 7, 2023
99f3021
(fix) Fixed failing unit test
Dec 7, 2023
b0ffc20
Merge pull request #279 from InjectiveLabs/feat/add_trade_v2_indexer_…
aarmoa Dec 7, 2023
07a78f9
(feat) Changed default gas price from 500000000 to 160000000
Dec 11, 2023
a9f2362
(feat) Update Poetry.lock file to solve GitHub tests workflow issues
Dec 11, 2023
33436cc
(feat) Added logic to provide access to the new `AccountPortfolioBala…
Dec 20, 2023
8da302a
(feat) Added all endpoint for chain bank module
Dec 25, 2023
50d93a4
(feat) Added logic to initialize tokens in AsyncClient using the deno…
Dec 26, 2023
2aeca6a
Merge pull request #284 from InjectiveLabs/feat/add_new_indexer_posit…
aarmoa Dec 26, 2023
ff3aa9d
(feat) Added all endpoint for chain bank module
Dec 25, 2023
6528188
(feat) Added logic to initialize tokens in AsyncClient using the deno…
Dec 26, 2023
9591291
Merge branch 'feat/initialize_tokens_from_chain_denoms' of https://gi…
Dec 26, 2023
cfeb5b4
(feat) Changed default gas price from 500000000 to 160000000
Dec 11, 2023
2638031
(feat) Update Poetry.lock file to solve GitHub tests workflow issues
Dec 11, 2023
49cd55c
Merge branch 'feat/change_default_gas_price' of https://github.com/In…
Dec 28, 2023
3261b40
Merge pull request #280 from InjectiveLabs/feat/change_default_gas_price
aarmoa Dec 28, 2023
e6a54dd
(feat) Added all endpoint for chain bank module
Dec 25, 2023
3528145
(feat) Added logic to initialize tokens in AsyncClient using the deno…
Dec 26, 2023
7143944
Merge branch 'feat/initialize_tokens_from_chain_denoms' of https://gi…
Jan 1, 2024
ffd1928
Merge pull request #286 from InjectiveLabs/feat/initialize_tokens_fro…
aarmoa Jan 2, 2024
f72b7dc
(feat) Added support for missing bank module endpoints
Jan 2, 2024
4f14a69
(feat) Implemented all TokenFactory query module endpoints
Jan 3, 2024
e733927
(feat) Added logic in Composer to create the Tokenfactory related mes…
Jan 3, 2024
012ae22
(feat) Added support for missing bank module endpoints
Jan 2, 2024
a9e14d8
(feat) Implemented all TokenFactory query module endpoints
Jan 3, 2024
e94940d
(feat) Added logic in Composer to create the Tokenfactory related mes…
Jan 3, 2024
d7c435d
Merge branch 'feat/add_all_wasm_module_endpoints' of https://github.c…
Jan 3, 2024
8d08a22
(feat) Updated versions of proto files projects dependencies. Added s…
Jan 4, 2024
1e359f3
(fix) Removed support for MsgUpdateParams as requested in the PR review
Jan 4, 2024
2b33a3b
Merge pull request #287 from InjectiveLabs/feat/add_all_wasm_module_e…
aarmoa Jan 5, 2024
28ac2e8
(feat) Updated versions of proto files projects dependencies. Added s…
Jan 4, 2024
ef183bb
Merge branch 'feat/support_msg_execute_contract_compat' of https://gi…
Jan 5, 2024
d6910b6
(fix) Change number in example script
Jan 5, 2024
8e673ba
Merge pull request #288 from InjectiveLabs/feat/support_msg_execute_c…
aarmoa Jan 8, 2024
6fba3c4
(feat) Migrated all proto definitions to injective-core and injective…
Jan 8, 2024
29ca088
(feat) Updated version number and changelog
Jan 8, 2024
6bb0598
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
Jan 8, 2024
a774181
Merge pull request #289 from InjectiveLabs/feat/update_proto_definiti…
aarmoa Jan 8, 2024
f6b1d2e
Merge branch 'master' of https://github.com/InjectiveLabs/sdk-python …
Jan 8, 2024
c0adb1f
Merge pull request #290 from InjectiveLabs/fix/merge_latest_master_ch…
aarmoa Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
240 changes: 240 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
# Changelog

All notable changes to this project will be documented in this file.

## [1.0.1] - 2024-01-08
### Added
- Added low level API components for all modules (chain, exchain and explorer) to make the Python SDK compatible with the TypeScript SDK.
- Added support for all wasm module messages.
- Added support for all token factory module messages.

### Changed
- Updated proto definitions to injective-core v1.12.0 and injective-indexer v1.12.72
- Added new functions in AsyncClient to interact with chain, exchange and explorer using the low level API components
- Marked old function sin AsyncClient as deprecated (the functions will be removed in a future version)
- Updated all API examples to use the new AsyncClient functions

## [1.0] - 2023-11-01
### Added
- Added logic to support use of Client Order ID (CID) new identifier in OrderInfo
- New chain stream support

### Changed
- Remove support for `sentry` nodes in mainnet network. The only supported node option in mainnet is `lb`
- Migrated all proto objects dependency to support chain version 1.22
- Moved changelog from the README.md file to its own CHANGELOG.md file
- Remove `aiocron` dependency. Use plain asyncio tasks to solve the timeout height synchronization
- Updated the gas fee buffer used to calculate fee consumption in all examples
- Refactored logic in AsyncClient to load markets and tokens, to ensure there are no duplicated tokens with the same denom

## [0.9.12]
* Synchronized markets and tokens config files to add KIRA/INJ, NINJA/INJ, KATANA/INJ, BRETT/INJ and nINJ/INJ spot markets

## [0.9.11]
* Synchronized markets and tokens config files to add SEI/USDT and TIA/USDT perpetual markets

## [0.9.10]
* Synchronized markets and tokens config files to add SOL/USDT spot market

## [0.9.9]
* Synchronized markets and tokens config files to add USDY/USDT and WHALE/USDT spot markets

## [0.9.8]
* Synchronized markets and tokens config files to add PYTH/USDT spot market

## [0.9.7]
* Added PYTH/USDT PERP market info in mainnet metadata ini file

## [0.9.6]
* Synchronized denom ini files with Indexer information for mainnet, testnet and devnet to include TALIS/INJ and KUJI/USDT markets

## [0.9.5]
* Updated fetch_metadata script (to synchronize denom ini files) to reuse logic in AsyncClient
* Synchronized denom ini files with Indexer information for mainnet, testnet and devnet

## [0.9.4]
* Added TIA/USDT spot market in mainnet and testnet ini file

## [0.9.3]
* Updated TIA/USDT-30NOV2023 market id in denoms_mainnet.ini file

## [0.9.2]
* Added fix to the grpc import error in Mac with M1 and M2 chips

## [0.9.1]
* Added new spot markets in mainnet ini file: KAVA/USDT, USDTkv/USDT
* Added new derivative markets in mainnet ini file: TIA/USDT-30NOV2023, AXL/USDT, BTC/USDTkv, ETH/USDTkv

## [0.9.0]
* Improvement in broadcaster to initialize the account sequence number and the timeout height only when required
* Replace Pipenv with Poetry
* Add pre-commit validations to the project
* Add a GitHub workflow to run all tests and calculate coverage for each PR


## [0.8.5]
* Added NEOK/USDT and ORAI/USDT spot markets to the mainnet .ini file

## [0.8.4]
* Added methods to SpotMarket, DerivativeMarket and BianaryOptionMarket to translate chain prices and quantities to human-readable format.

## [0.8.3]
* Fix dependency issue in setup.py.

## [0.8.2]
* Add web3 library as a dependency for the project.

## [0.8.1]
* Moved the configuration to use a secure or insecure connection inside the Network class. The AsyncClient's `insecure` parameter is no longer used for anything and will be removed in the future.
* Made the new load balanced bare-metal node the default one for mainnet (it is called `lb`). The legacy one (load balanced k8s node) is called `lb_k8s`

## [0.8]
* Refactor Composer to be created with all the markets and tokens. The Composer now uses the real markets and tokens to convert human-readable values to chain format
* The Composer can still be instantiated without markets and tokens. When markets and tokens are not provided the Composer loads the required information from the Denoms used in previous versions
* Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens
* Examples have been adapted to create Composer instances using the AsyncClient
* Added new nodes (bare-metal load balancing nodes) for mainnet and testnet
* Deprecated the kubernetes load balanced nodes for testnet
* Refactored the cookies management logic into a cookie assistant. Added the required logic to support the new cookies format for bare-metal load balanced nodes
* Removed class Client. The only supported now is the async version called AsyncClient.

## [0.7.1.1]
* Fixed Testnet network URLs

## [0.7.2.1]
* Synchronization of denoms configuration files.

## [0.7.2]
* Added a new gas limit calculation for the TransactionBroadcaster that estimates the value based on the messages in the transaction (without running the transaction simulation).

## [0.7.1.2]
* Add NBLA

## [0.7.1.1]
* Fixed Testnet network URLs

## [0.7.1]
* Include implementation of the TransactionBroadcaster, to simplify the transaction creation and broadcasting process.

## [0.7.0.6]
* ADD SEI/USDT in metadata

## [0.7.0.5]
* Added the required logic in the MsgSubaccountTransfer message to translate amounts and token into the correct amount and token name representation for the chain

## [0.7.0.4]
* Synchronized decimals for ATOM and WETH in Testnet with the configuration provided by the indexer

## [0.7.0.3]
* Add FRCOIN testnet

## [0.7.0.2]
* Removed from AsyncClient all references to the deprecated OrderBook RPC endpoints (replaced them with OrderBookV2)
* Updated all orderbook examples

## [0.7]
* Removed references to pysha3 library (and also eip712-struct that required it) and replaced it with other implementation to allow the project to work with Python 3.11
* Updated sentry nodes LCD URL, for each sentry node to use its own service

## [0.6.5]
* Removed `k8s` from the list of supported mainnet nodes (`lb` should be used instead)

## [0.6.4]
* Change logging logic to use different loggers for each module and class
* Solved issue preventing requesting spot and derivative historical orders for more than one market_id
* Add `pytest` as a development dependency to implement and run unit tests

## [0.6.3.3]
* Update the code to the new structure of transaction responses

## [0.6.3.1]
* Update the code to the new structure of transaction simulation responses

## [0.6.2.7]
* Fix margin calculation in utils

## [0.6.2.1]
* Remove version deps from Pipfile

## [0.6.2.0]
* Add MsgUnderwrite, MsgRequestRedemption in Composer

## [0.6.1.8]
* Add MsgCreateInsuranceFund in Composer
* Re-gen mainnet denoms

## [0.6.1.5]
* Add MsgExecuteContract in Composer

## [0.6.1.4]
* Add wMATIC

## [0.6.1.2]
* Add OrderbookV2 method in async client

## [0.6.1.1]
* Add ARB/USDT

## [0.6.0.9]
* Deprecate K8S and set LB as default
* Proto re-gen

## [0.6.0.8]
* Add USDCfr

## [0.6.0.7]
* Add LDO

## [0.6.0.6]
* Set default testnet endpoints to K8S
* Remove LB config for testnet
* Fix relative imports in composer
* Add AccountPortfolio & StreamAccountPortfolio

## [0.6.0.5]
* Add new testnet endpoints
* Re-gen mainnet denoms

## [0.6.0.4]
* Remove explicit versions from protobuf and grpcio-tools dependencies

## [0.6.0.2]
* Re-gen mainnet denoms

## [0.6.0.0]
* Change default network to LB
* Re-gen mainnet denoms

## [0.5.9.7]
* Re-gen mainnet denoms

## [0.5.9.6]
* Re-gen proto

## [0.5.9.5]
* Add orderbook snaphot methods

## [0.5.9.4]
* Re-gen mainnet denoms

## [0.5.9.4]
* Re-gen mainnet denoms

## [0.5.9.2]
* Fix margin conversion for binary options

## [0.5.9.1]
* Add skip/limit to BinaryOptionsMarketsRequest

## [0.5.9.0]
* Re-gen proto
* Fix MsgRewardsOptOut
* Remove pysha3 dependency

## [0.5.8.8]
* Add grpc_explorer_endpoint in Network
* Add explorer channel and stub

*BREAKING CHANGES*

- Clients using [Custom Network](https://github.com/InjectiveLabs/sdk-python/blob/master/pyinjective/constant.py#L166) must now set grpc_explorer_endpoint during init
58 changes: 43 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
all:

EXCHANGE_PROTO_FILES=$(shell find ../injective-indexer/api/gen/grpc -type f -name '*.proto')
PROTO_DIRS=$(shell find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
gen: gen-client

gen-client: copy-proto
@for dir in $(PROTO_DIRS); do \
gen-client: clone-all copy-proto
@for dir in $(shell find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq); do \
mkdir -p ./pyinjective/$${dir}; \
python3 -m grpc_tools.protoc \
-I proto \
Expand All @@ -14,25 +12,55 @@ gen-client: copy-proto
$$(find ./$${dir} -type f -name '*.proto'); \
done; \
rm -rf proto
$(call clean_repos)
echo "import os\nimport sys\n\nsys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))" > pyinjective/proto/__init__.py

define clean_repos
rm -Rf cosmos-sdk
rm -Rf ibc-go
rm -Rf cometbft
rm -Rf wasmd
rm -Rf injective-core
rm -Rf injective-indexer
endef

clean-all:
$(call clean_repos)

clone-injective-core:
git clone https://github.com/InjectiveLabs/injective-core.git -b v1.12.0 --depth 1 --single-branch

clone-injective-indexer:
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.12.72 --depth 1 --single-branch

clone-cometbft:
git clone https://github.com/InjectiveLabs/cometbft.git -b v0.37.2-inj --depth 1 --single-branch

clone-wasmd:
git clone https://github.com/InjectiveLabs/wasmd.git -b v0.45.0-inj --depth 1 --single-branch

clone-cosmos-sdk:
git clone https://github.com/InjectiveLabs/cosmos-sdk.git -b v0.47.3-inj-9 --depth 1 --single-branch

clone-ibc-go:
git clone https://github.com/InjectiveLabs/ibc-go.git -b v7.2.0-inj --depth 1 --single-branch

clone-all: clone-cosmos-sdk clone-cometbft clone-ibc-go clone-wasmd clone-injective-core clone-injective-indexer

copy-proto:
rm -rf pyinjective/proto
mkdir -p proto/exchange
buf export buf.build/cosmos/cosmos-sdk:v0.47.0 --output=third_party
buf export https://github.com/cosmos/ibc-go.git --exclude-imports --output=third_party
buf export https://github.com/cometbft/cometbft.git --exclude-imports --output=third_party
buf export https://github.com/CosmWasm/wasmd.git --exclude-imports --output=./third_party
buf export https://github.com/cosmos/ics23.git --exclude-imports --output=./third_party

cp -r ../injective-core/proto/injective proto/
cp -r ./third_party/* proto/
buf export ./cosmos-sdk --output=third_party
buf export ./ibc-go --exclude-imports --output=third_party
buf export ./cometbft --exclude-imports --output=third_party
buf export ./wasmd --exclude-imports --output=third_party
buf export https://github.com/cosmos/ics23.git --exclude-imports --output=third_party
cp -r injective-core/proto/injective proto/
cp -r third_party/* proto/

rm -rf ./third_party

@for file in $(EXCHANGE_PROTO_FILES); do \
cp "$${file}" proto/exchange/; \
done
find ./injective-indexer/api/gen/grpc -type f -name "*.proto" -exec cp {} ./proto/exchange/ \;

tests:
poetry run pytest -v
Expand Down
Loading