Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testdev #226

Closed
wants to merge 451 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
451 commits
Select commit Hold shift + click to select a range
a377b57
error codes fixed
vishnukumavat May 30, 2022
5a695fa
changing proto fields
May 30, 2022
d7fb65d
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
May 30, 2022
ab688db
updating internal rewards logic
May 30, 2022
2771b14
refactor rewards.go
dheerajkd30 May 30, 2022
21977d4
Merge branch 'testdev' of github.com:comdex-official/comdex into exch…
vishnukumavat May 30, 2022
7886296
method call parameter fix
vishnukumavat May 30, 2022
6ebdd38
auction modified, asset check corrected
May 30, 2022
7701e55
pulled changes
May 30, 2022
a79d687
asset corrected
May 30, 2022
5e9e06d
added feegrant module and ibc client update in gov module
dheerajkd30 May 30, 2022
c7dce4b
Changed parameters in transactions for cli
karthik340 May 30, 2022
79c6f97
keys byte codes fixed
vishnukumavat May 30, 2022
2838a37
Merge branch 'testdev' of github.com:comdex-official/comdex into exch…
vishnukumavat May 30, 2022
675ed01
auction fix
karthik340 May 30, 2022
4150a92
Merge branch 'testdev' of github.com:comdex-official/comdex into exch…
vishnukumavat May 30, 2022
d39537d
Merge pull request #158 from comdex-official/exchange_merge
dheerajkd30 May 30, 2022
b5f2836
refactor collector fn
May 30, 2022
ab5e888
Error handling in mint token
dheerajkd30 May 30, 2022
c1a5007
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
dheerajkd30 May 30, 2022
018f635
wasm msg -WIP
May 31, 2022
6832a24
wasm query updated
May 31, 2022
9bdf515
amino codec changes for vault
dheerajkd30 May 31, 2022
01e0aab
Merge pull request #159 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
809ce95
update vault codec msg name
dheerajkd30 May 31, 2022
96ff5a1
Merge pull request #160 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
6242e03
Modules amino codec changes
dheerajkd30 May 31, 2022
4baf9ed
update and refactor proto
dheerajkd30 May 31, 2022
35e6e23
Merge pull request #161 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
a55bfe9
re generate vault msg.pb
dheerajkd30 May 31, 2022
e9f8672
Merge pull request #162 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
67d9342
lcoker module register changes
dheerajkd30 May 31, 2022
08335f5
Merge pull request #163 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
daf9b1f
update locker codec
dheerajkd30 May 31, 2022
f95b84e
Merge pull request #164 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
deb61cb
spell check
dheerajkd30 May 31, 2022
99edbc0
Merge pull request #165 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
f1a5e00
update locker cli
dheerajkd30 May 31, 2022
19b889d
Merge pull request #166 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
d4208c5
update vault tx proto
dheerajkd30 May 31, 2022
ba58fbb
Merge pull request #167 from comdex-official/vault-codec
dheerajkd30 May 31, 2022
5943878
udate vault proto msg and msg_server
dheerajkd30 May 31, 2022
8179b3e
protos corrected
May 31, 2022
3e039cf
Uupdate protoc codec, msg , query and servers
dheerajkd30 May 31, 2022
be77525
Merge pull request #168 from comdex-official/testdevproto
dheerajkd30 May 31, 2022
ccfd4e5
proto changes
May 31, 2022
945c541
nullable added
May 31, 2022
bb8b1e8
nullable added
May 31, 2022
6039791
nullable added
May 31, 2022
8a10df7
nullable added
May 31, 2022
667d0e0
nullable added
May 31, 2022
2354f4c
Merge pull request #169 from comdex-official/testdevproto
dheerajkd30 May 31, 2022
1c6de2b
pointers removed
May 31, 2022
9cf4361
Merge pull request #170 from comdex-official/testdevproto
dheerajkd30 May 31, 2022
516b687
query and msg function added
May 31, 2022
40dbb5d
create dutch auction and dutch bid tested
karthik340 May 31, 2022
c9a32c4
msg and query bindings
May 31, 2022
d2708b8
msg binding completed
May 31, 2022
aa722a0
updated wasm.go & app.go
May 31, 2022
a36f10b
updated query plugins
May 31, 2022
f3c3c0c
updating json name
May 31, 2022
bc7ad39
swap fee collector address added for every pools
vishnukumavat May 31, 2022
e382a0d
refactor query-plugin
May 31, 2022
6abfdeb
collector checks added
May 31, 2022
2ef1a92
swap fee accumulator added
vishnukumavat Jun 1, 2022
4f50009
Binding fix
Subham2804 Jun 1, 2022
4f59b10
updating tokenmint bugs
Jun 1, 2022
f78b0a3
Merge pull request #171 from comdex-official/totestdev
pratikasr Jun 1, 2022
f0aa250
update lsr added
Jun 1, 2022
72c5115
update lsr added
Jun 1, 2022
f9807ee
locker changes, collector update
Jun 1, 2022
7d034e4
updated with new wasm queries and msg
Jun 1, 2022
1b98e70
Merge branch 'testdev-wasm' of https://github.com/comdex-official/com…
Jun 1, 2022
2993b5e
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
Jun 1, 2022
69b2cba
Merge pull request #172 from comdex-official/testdev-wasm
dheerajkd30 Jun 1, 2022
fb23c6d
collector lsr update func added
Jun 1, 2022
e9cb2ee
lock-duration flag removed
vishnukumavat Jun 1, 2022
6e9a9f3
func updated
Jun 1, 2022
063e949
updating UpdateLsrInCollectorLookupTable Query & Msg
Jun 1, 2022
0203c37
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
Jun 1, 2022
e223fb4
Merge branch 'testdev-wasm' of https://github.com/comdex-official/com…
Jun 1, 2022
71e3473
refactor
Jun 1, 2022
67d8ee2
denom changed from assetid
Jun 1, 2022
c76c4d3
pulled changes
Jun 1, 2022
639558b
Merge pull request #173 from comdex-official/testdev-wasm
pratikasr Jun 1, 2022
010e41d
Refactor tokenmint module
dheerajkd30 Jun 1, 2022
832d48a
minor refactor
Jun 1, 2022
9dcca8e
update and refactor locker module
dheerajkd30 Jun 1, 2022
5ec981e
locker,vault query added
Jun 1, 2022
ac995b8
naming changed
Jun 1, 2022
eec5328
Merge pull request #174 from comdex-official/testdev-wasm
dheerajkd30 Jun 1, 2022
38437c6
fixed bugs in liquidation and auctions
karthik340 Jun 1, 2022
6c8f3e7
pagination added -vault info by user
Jun 1, 2022
49e7703
collector proto,auction and query changes
dheerajkd30 Jun 1, 2022
6591413
msg.proto => tx.proto file rename
vishnukumavat Jun 1, 2022
2103146
Merge pull request #175 from comdex-official/file_rename
dheerajkd30 Jun 1, 2022
39ad71b
locker changes
Jun 1, 2022
593b067
update proto for locker
dheerajkd30 Jun 1, 2022
8677679
Merge pull request #176 from comdex-official/testdev-wasm
dheerajkd30 Jun 1, 2022
f806dd0
update locker proto , query server and query changes
dheerajkd30 Jun 1, 2022
7967404
Merge pull request #177 from comdex-official/locker-query-changes
dheerajkd30 Jun 1, 2022
3ab1824
Merge branch 'testdev' of github.com:comdex-official/comdex into swap…
vishnukumavat Jun 1, 2022
8748aea
wasm fix
Jun 1, 2022
14a3378
args changed
Jun 1, 2022
68ccfd2
swap fee into distribution coin converter added
vishnukumavat Jun 1, 2022
1dde0aa
logger added on error in swap fee converter
vishnukumavat Jun 1, 2022
8e0e0cd
adding safeLiquidationFactor
Jun 2, 2022
53cb0fa
total tvl added
Jun 2, 2022
ca79114
name changed
Jun 2, 2022
380c146
Merge pull request #178 from comdex-official/testdev-wasm
dheerajkd30 Jun 2, 2022
d058522
pagination added
Jun 2, 2022
4b03cf4
Merge pull request #179 from comdex-official/testdev-wasm
dheerajkd30 Jun 2, 2022
6502689
admin removed
Jun 2, 2022
8e9c53c
Merge pull request #180 from comdex-official/testdev-wasm
dheerajkd30 Jun 2, 2022
327252a
swap fee gauge creation and distribution
vishnukumavat Jun 2, 2022
68072dc
refactor liquidation module
dheerajkd30 Jun 2, 2022
453ce1b
swap fee burning mechanism added
vishnukumavat Jun 2, 2022
7b60331
Merge branch 'testdev' of github.com:comdex-official/comdex into swap…
vishnukumavat Jun 2, 2022
8aa903c
Merge pull request #181 from comdex-official/swapfee_int
dheerajkd30 Jun 2, 2022
c2a2c4e
fixed bugs in auction and liqudation
karthik340 Jun 2, 2022
0e80d47
auction fix
karthik340 Jun 2, 2022
7909ad5
Merge branch 'dutch-tests' of https://github.com/comdex-official/comd…
karthik340 Jun 2, 2022
ef6d198
adding error handling for auction
karthik340 Jun 2, 2022
0031eeb
add changes
karthik340 Jun 2, 2022
f0da38e
Merge pull request #182 from comdex-official/dutch-tests
dheerajkd30 Jun 2, 2022
109d264
Update README.md
dhogaivannan Jun 3, 2022
63680dd
checks for market price added in liquidation,auction
Jun 3, 2022
d658108
Merge pull request #184 from comdex-official/devtestnew
dheerajkd30 Jun 3, 2022
b0abe1c
Merge branch 'comdex-official:development' into development
dhogaivannan Jun 3, 2022
303dd8e
fix spacing build.yml
dhogaivannan Jun 3, 2022
0a382bf
fix spacing build.yml
dhogaivannan Jun 3, 2022
1325da5
Merge pull request #185 from dhogaivannan/development
dhogaivannan Jun 3, 2022
e1ab097
update set up script
dheerajkd30 Jun 3, 2022
6a1fa95
Merge pull request #183 from comdex-official/dhogaivannan-patch-1
dheerajkd30 Jun 3, 2022
9aa91ae
added error handling in starting dutch auction
karthik340 Jun 3, 2022
7f611da
Merge pull request #186 from comdex-official/dutch_tests_1
dheerajkd30 Jun 3, 2022
e4c7590
auction, liquidation check added
Jun 3, 2022
e7845b9
auction, liquidation check added
Jun 3, 2022
312b68e
print removed
Jun 3, 2022
4a6eb6b
Merge pull request #187 from comdex-official/devtestnew
dheerajkd30 Jun 3, 2022
8584a72
fixed bug in starting surplus and debt auction function
karthik340 Jun 3, 2022
6000900
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 3, 2022
0afb488
uncommented token burn in dutch auction
karthik340 Jun 3, 2022
fb3c1d2
Removing unused code
karthik340 Jun 3, 2022
55227a1
Merge pull request #188 from comdex-official/dutch_tests_1
dheerajkd30 Jun 3, 2022
ea4e9b3
prices integration in liquidity and rewards module added
vishnukumavat Jun 4, 2022
65a96c3
Merge pull request #190 from comdex-official/prices_integration
dheerajkd30 Jun 4, 2022
531713a
user vault info query modified
Jun 4, 2022
18bbea6
my position data added
Jun 4, 2022
c8b6eef
Merge pull request #191 from comdex-official/devtestquery
dheerajkd30 Jun 4, 2022
a424be2
adding Amt in logic in unliquidate Vaults
Jun 4, 2022
55553b0
Merge pull request #193 from comdex-official/testdev_refactor
dheerajkd30 Jun 4, 2022
811bcaf
updated msg bindings & vault refactor
Jun 4, 2022
bc88b67
Merge pull request #194 from comdex-official/testdev_refactor
dheerajkd30 Jun 4, 2022
f6e7d68
1. Added protocol loss handling
karthik340 Jun 4, 2022
b280482
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 4, 2022
c88dbf0
upgrade handler for testnet release added
vishnukumavat Jun 4, 2022
c5b2b1e
updating tokenmint bugs
Jun 4, 2022
c00fa98
vault query, collector restructure
Jun 5, 2022
0f3b89b
Merge pull request #196 from comdex-official/devtestquery
dheerajkd30 Jun 5, 2022
7a3e68f
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 5, 2022
2e8708a
go.mod updated
vishnukumavat Jun 5, 2022
9d16ccf
lsr update fix
Jun 5, 2022
fd9cfc4
Merge pull request #197 from comdex-official/testwasmfix
dheerajkd30 Jun 5, 2022
100d463
updated bindings for liquidation & rewards
Jun 5, 2022
695eefc
Merge pull request #198 from comdex-official/testdev_bindings
dheerajkd30 Jun 5, 2022
db4c90e
updating message_plugins
Jun 5, 2022
882c128
Merge pull request #199 from comdex-official/testdev_bindings
dheerajkd30 Jun 5, 2022
11bf6cf
updating vault
Jun 5, 2022
d8eaa5b
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
Jun 5, 2022
0facbcf
updating vault bugs
Jun 5, 2022
f4a5ced
updating locker bugs
Jun 5, 2022
1cbda7c
updating locker historical user data
Jun 5, 2022
16cd890
Merge pull request #201 from comdex-official/totestdev
dheerajkd30 Jun 5, 2022
2c55bcf
locker, vault, collector, wasm bug fix
Jun 5, 2022
eab3902
print removed
Jun 5, 2022
ba40915
print removed
Jun 5, 2022
bdc32da
Merge pull request #202 from comdex-official/testwasmfix
dheerajkd30 Jun 6, 2022
fefbce1
1.Fixed bugs in liquidation and auction
karthik340 Jun 6, 2022
cbd689b
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 6, 2022
eb62bde
fixed calculation of inflow and outflow token in surplus and debt auc…
karthik340 Jun 6, 2022
9df248b
Removed unused code
karthik340 Jun 6, 2022
45c4640
changed default param in auction
karthik340 Jun 6, 2022
14aa963
Merge pull request #203 from comdex-official/dutch_tests_1
dheerajkd30 Jun 6, 2022
fab9ad4
rewards updated, vault user end error fixed
Jun 6, 2022
a25f575
pulled changes
Jun 6, 2022
b01ad0e
Merge pull request #204 from comdex-official/testwasmfix
dheerajkd30 Jun 6, 2022
9c2e2c6
panic issue solved
Jun 6, 2022
c12eb42
Merge pull request #205 from comdex-official/testwasmfix
dheerajkd30 Jun 6, 2022
bdf7c83
bug fixes, field added in pair vault
Jun 7, 2022
b112f4e
Merge pull request #206 from comdex-official/testwasmfix
dheerajkd30 Jun 7, 2022
3009fca
stable mint bug fix
Jun 7, 2022
0874a66
Merge pull request #207 from comdex-official/testwasmfix
dheerajkd30 Jun 7, 2022
c68a00c
Modified chost/dust feature in dutch auction
karthik340 Jun 7, 2022
0a767c4
modify gov proposal to add extended proposal from json file
dheerajkd30 Jun 7, 2022
552f131
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 7, 2022
fd7de61
Merge pull request #208 from comdex-official/gov-extended
dheerajkd30 Jun 7, 2022
aafb20f
update txf
dheerajkd30 Jun 7, 2022
6c714b0
update flags for gov
dheerajkd30 Jun 7, 2022
cefb379
revert proposal thru file changes
dheerajkd30 Jun 7, 2022
fb4f862
Added fetching dust from extended pair vault
karthik340 Jun 7, 2022
3b8b300
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 7, 2022
c57d755
Removed unused code
karthik340 Jun 7, 2022
b74f901
Merge pull request #209 from comdex-official/dutch_tests_1
dheerajkd30 Jun 7, 2022
4bbb94a
update gov proposal to pass thru json file
dheerajkd30 Jun 7, 2022
235296d
Merge pull request #210 from comdex-official/gov-refactor
cgsingh33 Jun 7, 2022
a99231b
update add asset mapping proposal thru json
dheerajkd30 Jun 7, 2022
901b9bb
Merge pull request #211 from comdex-official/gov-refactor
dheerajkd30 Jun 7, 2022
9e3cd77
update white list pairs gov txs thru json file
dheerajkd30 Jun 7, 2022
ad23dd6
Merge branch 'testdev' of github.com:comdex-official/comdex into upgr…
vishnukumavat Jun 7, 2022
3fa0045
go.mod updated
vishnukumavat Jun 7, 2022
2c56809
liquidity, vault and asset module name updated to avoid upgrade confl…
vishnukumavat Jun 7, 2022
90bc0c3
typos fixed
vishnukumavat Jun 7, 2022
7ffa096
refactoring ext rewards for vault
Subham2804 Jun 8, 2022
681be65
Merge pull request #212 from comdex-official/testdev_extRewards
pratikasr Jun 8, 2022
fb091e9
Merge pull request #195 from comdex-official/upgrade_handel
dheerajkd30 Jun 8, 2022
2026aae
adding auction bindings
Jun 8, 2022
e0f3bb2
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
Jun 8, 2022
82c215c
Merge pull request #213 from comdex-official/testdev_auction_bindings
dheerajkd30 Jun 8, 2022
177c9eb
Added conversion of usd to uusd feature when price received from fron…
karthik340 Jun 8, 2022
b15be6d
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 8, 2022
0463fa5
Merge pull request #214 from comdex-official/dutch_tests_1
dheerajkd30 Jun 8, 2022
16b508b
testdev locker refactor
Jun 8, 2022
ce46a1b
Merge pull request #215 from comdex-official/testdev_locker_refactor
dheerajkd30 Jun 8, 2022
bdb9be9
1 . Integrate auction params to auction module.
karthik340 Jun 8, 2022
7e8993b
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 8, 2022
a6b44e8
Merge pull request #216 from comdex-official/dutch_tests_1
pratikasr Jun 8, 2022
12bbd20
update read.md
dheerajkd30 Jun 9, 2022
51ee13e
Update README.md
dheerajkd30 Jun 9, 2022
aa93a9b
update the upgrade name
dheerajkd30 Jun 9, 2022
8ad80ef
collector check added
Jun 9, 2022
4c6ea59
Merge pull request #217 from comdex-official/testbugfix
pratikasr Jun 9, 2022
81ac451
minor fix
Jun 9, 2022
cd49369
Merge pull request #218 from comdex-official/testbugfix
pratikasr Jun 9, 2022
13b4ea4
auction check added in collector
Jun 9, 2022
25b62ee
Merge pull request #219 from comdex-official/testbugfix
pratikasr Jun 9, 2022
5aceb4d
1.Removed params in auction
karthik340 Jun 9, 2022
a1a6fd9
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 9, 2022
f56dc48
Merge pull request #220 from comdex-official/dutch_tests_1
dheerajkd30 Jun 9, 2022
c663981
Improved naming convention in auctionParamsRequest
karthik340 Jun 9, 2022
67e2563
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
karthik340 Jun 9, 2022
3c3ec0e
Merge pull request #221 from comdex-official/dutch_tests_1
dheerajkd30 Jun 9, 2022
60cb050
hard coded price removed
Jun 9, 2022
bb8f3a9
Merge pull request #222 from comdex-official/testbugfix
dheerajkd30 Jun 9, 2022
ffdceb5
update makefile, refactor cmd dir, remove lend and liquidity changes …
dheerajkd30 Jun 9, 2022
4d3789a
update upgrade height and proto-gen.sh
dheerajkd30 Jun 9, 2022
d6d5be6
Merge pull request #223 from comdex-official/update-release
dheerajkd30 Jun 9, 2022
b4866ac
resolve merge conflict
dheerajkd30 Jun 9, 2022
aaa0b59
Merge branch 'testdev' of https://github.com/comdex-official/comdex i…
dheerajkd30 Jun 9, 2022
640c025
update cosmwam proposal configs
dheerajkd30 Jun 9, 2022
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
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
29 changes: 15 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ on:
push:
branches:
- development
- feature/dev
release:
types: [created]
jobs:
sonar:
name: Sonarqube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
build:
sonar:
name: Sonarqube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

build:
name: Build
runs-on: ubuntu-latest
steps:
Expand All @@ -38,4 +39,4 @@ jobs:
run: make verify

- name: Build Release
run: make build
run: make build
24 changes: 24 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint
on:
pull_request:
push:
branches:
- master
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERN: |
.go
.mod
.sum
- uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
args: -e SA1019 --timeout 10m
github-token: ${{ secrets.GITHUB_TOKEN }}
if: "env.GIT_DIFF != ''"
Empty file modified .golangci.yml
100755 → 100644
Empty file.
12 changes: 6 additions & 6 deletions .scripts/proto-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ for directory in ${directories}; do
for file in ${files}; do
protoc \
--proto_path="proto" \
--proto_path="vendor/github.com/cosmos/cosmos-sdk/proto" \
--proto_path="vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \
--proto_path="vendor/github.com/cosmos/ibc-go/v2/proto" \
--proto_path="github.com/cosmos/cosmos-sdk/proto" \
--proto_path="github.com/cosmos/cosmos-sdk/third_party/proto" \
--proto_path="github.com/cosmos/ibc-go/v3/proto" \
--gocosmos_out="plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:${GOPATH}/src" \
"${file}"

protoc \
--proto_path="proto" \
--proto_path="vendor/github.com/cosmos/cosmos-sdk/proto" \
--proto_path="vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \
--proto_path="vendor/github.com/cosmos/ibc-go/v2/proto" \
--proto_path="github.com/cosmos/cosmos-sdk/proto" \
--proto_path="github.com/cosmos/cosmos-sdk/third_party/proto" \
--proto_path="github.com/cosmos/ibc-go/v3/proto" \
--grpc-gateway_out="logtostderr=true:${GOPATH}/src" \
"${file}"
done
Expand Down
47 changes: 41 additions & 6 deletions .scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,49 @@
make all
make install

rm -rf ~/.comdex

mkdir ~/.comdex

comdex init --chain-id test test
comdex keys add test --recover<<<"y
comdex keys add test --recover --keyring-backend test<<<"y
wage thunder live sense resemble foil apple course spin horse glass mansion midnight laundry acoustic rhythm loan scale talent push green direct brick please"
comdex add-genesis-account test 100000000000000stake
comdex gentx test 1000000000stake --chain-id test
comdex add-genesis-account test 100000000000000stake --keyring-backend test
comdex gentx test 1000000000stake --chain-id test --keyring-backend test
comdex collect-gentxs
# Make sure to add the admin account address in params after running this script and before starting the chain.
# use this account to generate assets and asset pairs
comdex start

comdex tx gov submit-proposal add-app-mapping composite com 10000 1000000 --title "Adding New Assets" --description "adding cmdx and atom" --deposit 1000000000stake --from test --chain-id test --keyring-backend test --gas auto -y

comdex tx gov vote 1 --from test --chain-id test --keyring-backend test --gas auto -y

# wait for proposal to pass
comdex tx gov submit-proposal add-assets CMDX,OSMO,ATOM,CMST,HARBOR ucmdx,uosmo,uatom,ucmst,uharbor 1000000,1000000,1000000,1000000,1000000 1,1,1,1,0 --title "Adding New Assets" --description "adding cmdx and atom" --deposit 1000000000stake --from test --chain-id test --keyring-backend test --gas auto -y

comdex tx gov vote 2 --from test --chain-id test --keyring-backend test --gas auto -y

# wait for proposal to pass
comdex tx gov submit-proposal add-pairs 1,1,1,1 2,3,4,5 --title "Adding New Assets" --description "adding cmdx and atom" --deposit 1000000000stake --from test --chain-id test --keyring-backend test --gas auto -y

comdex tx gov vote 3 --from test --chain-id test --keyring-backend test --gas auto -y

# wait for proposal to pass
comdex tx gov submit-proposal add-pairs-vault 1 1 1.4 0.1 0.01 0.0013 0.01 1 1000000 10000 0 1.5 CMDX-A 0 1 --title addAsset --description addingAsset --from test --deposit 10000000stake --chain-id test --keyring-backend test -y

comdex tx gov vote 4 --from test --chain-id test --keyring-backend test --gas auto -y

# wait for proposal to pass
comdex tx gov submit-proposal add-asset-mapping 1 1 10000 1 comdex1pkkayn066msg6kn33wnl5srhdt3tnu2v9jjqu0 --title "Adding New Assets" --description "adding cmdx and atom" --deposit 1000000000stake --from test --chain-id test --keyring-backend test --gas auto

comdex tx gov vote 5 --from test --chain-id test --keyring-backend test --gas auto -y

# wait for proposal to pass
comdex tx liquidation whitelist-app-id 1 --from test --chain-id test --keyring-backend test -y

# create vault
comdex tx locker whitelist-asset-locker 0 1 --from test --chain-id test --keyring-backend test -y

# whitelist asset locker
comdex tx vault create 1 1 5000 10000 --from test --chain-id test --keyring-backend test -y

#mint cmst
comdex tx tokenmint tokenmint 1 1 --from test --chain-id test --keyring-backend test -y
157 changes: 83 additions & 74 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,87 +1,96 @@
PACKAGES := $(shell go list ./...)
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
COMMIT := $(shell git log -1 --format='%H')
TENDERMINT_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
#!/usr/bin/make -f

BUILD_TAGS := $(strip netgo,ledger)
LD_FLAGS := -s -w \
-X github.com/cosmos/cosmos-sdk/version.Name=comdex \
-X github.com/cosmos/cosmos-sdk/version.AppName=comdex \
-X github.com/cosmos/cosmos-sdk/version.Version=${VERSION} \
-X github.com/cosmos/cosmos-sdk/version.Commit=${COMMIT} \
-X github.com/cosmos/cosmos-sdk/version.BuildTags=${BUILD_TAGS} \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TENDERMINT_VERSION)
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
COMMIT := $(shell git log -1 --format='%H')

BUILD_FLAGS += -ldflags "${LD_FLAGS}" -tags "${BUILD_TAGS}"
# don't override user values
ifeq (,$(VERSION))
VERSION := $(shell git describe --tags)
# if VERSION is empty, then populate it with branch's name and raw commit hash
ifeq (,$(VERSION))
VERSION := $(BRANCH)-$(COMMIT)
endif
endif

GOBIN = $(shell go env GOPATH)/bin
GOARCH = $(shell go env GOARCH)
GOOS = $(shell go env GOOS)
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
LEDGER_ENABLED ?= true
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::') # grab everything after the space in "github.com/tendermint/tendermint v0.34.7"
BUILDDIR ?= $(CURDIR)/build

export GO111MODULE = on

# process build tags

build_tags = netgo
ifeq ($(LEDGER_ENABLED),true)
ifeq ($(OS),Windows_NT)
GCCEXE = $(shell where gcc.exe 2> NUL)
ifeq ($(GCCEXE),)
$(error gcc.exe not installed for ledger support, please install or set LEDGER_ENABLED=false)
else
build_tags += ledger
endif
else
UNAME_S = $(shell uname -s)
ifeq ($(UNAME_S),OpenBSD)
$(warning OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988))
else
GCC = $(shell command -v gcc 2> /dev/null)
ifeq ($(GCC),)
$(error gcc not installed for ledger support, please install or set LEDGER_ENABLED=false)
else
build_tags += ledger
endif
endif
endif
endif

.PHONY: benchmark
benchmark:
@go test -mod=readonly -v -bench ${PACKAGES}
ifeq (cleveldb,$(findstring cleveldb,$(COMDEX_BUILD_OPTIONS)))
build_tags += gcc cleveldb
endif
build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))

.PHONY: all install build verify
whitespace :=
whitespace += $(whitespace)
comma := ,
build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

.PHONY: clean
clean:
rm -rf ./bin ./vendor
# process linker flags

all: verify build
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=comdex \
-X github.com/cosmos/cosmos-sdk/version.AppName=comdex \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION)

install: mod-vendor
ifeq (${OS},Windows_NT)
go build -mod=readonly ${BUILD_FLAGS} -o ${GOBIN}/comdex.exe ./node
else
go build -mod=readonly ${BUILD_FLAGS} -o ${GOBIN}/comdex ./node
ifeq (cleveldb,$(findstring cleveldb,$(COMDEX_BUILD_OPTIONS)))
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
endif

build:
ifeq (${OS},Windows_NT)
go build ${BUILD_FLAGS} -o build/${GOOS}/${GOARCH}/comdex.exe ./node
else
go build ${BUILD_FLAGS} -o build/${GOOS}/${GOARCH}/comdex ./node
ifeq ($(LINK_STATICALLY),true)
ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
endif
ifeq (,$(findstring nostrip,$(COMDEX_BUILD_OPTIONS)))
ldflags += -w -s
endif
ldflags += $(LDFLAGS)
ldflags := $(strip $(ldflags))

release: build
mkdir -p release
ifeq (${OS},Windows_NT)
tar -czvf release/comdex-${GOOS}-${GOARCH}.tar.gz --directory=build/${GOOS}/${GOARCH} comdex.exe
else
tar -czvf release/comdex-${GOOS}-${GOARCH}.tar.gz --directory=build/${GOOS}/${GOARCH} comdex
BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
# check for nostrip option
ifeq (,$(findstring nostrip,$(COMDEX_BUILD_OPTIONS)))
BUILD_FLAGS += -trimpath
endif

.PHONY: go-lint
go-lint:
@golangci-lint run --fix

.PHONY: mod-vendor
mod-vendor: tools
@go mod vendor
@modvendor -copy="**/*.proto" -include=github.com/cosmos/cosmos-sdk/proto,github.com/cosmos/cosmos-sdk/third_party/proto,github.com/cosmos/ibc-go/v2/proto

.PHONY: proto-gen
proto-gen:
@.scripts/proto-gen.sh

.PHONY: proto-lint
proto-lint:
@find proto -name *.proto -exec clang-format-12 -i {} \;

.PHONY: test
test:
@go test -mod=readonly -timeout 15m -v ${PACKAGES}

.PHONT: test-coverage
test-coverage:
@go test -mod=readonly -timeout 15m -v -covermode=atomic -coverprofile=coverage.txt ${PACKAGES}

.PHONY: tools
tools:
@go install github.com/bufbuild/buf/cmd/[email protected]
@go install github.com/golangci/golangci-lint/cmd/[email protected]
@go install github.com/goware/[email protected]
@go install github.com/grpc-ecosystem/grpc-gateway/[email protected]
@go get gopkg.in/go-playground/[email protected]
@go get gopkg.in/go-playground/[email protected]
#$(info $$BUILD_FLAGS is [$(BUILD_FLAGS)])


all: install

install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/comdex

build:
go build $(BUILD_FLAGS) -o bin/comdex ./cmd/comdex
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
<h4> An ecosystem of solutions built with an aim of bridging DeFi & CeFi </h4>
</div>

Comdex is a decentralized synthetics protocol built on Cosmos.
Users can collateralize their holdings from the Cosmos ecosystem to take exposure to a range of synthetic assets.
Comdex builds solutions to democratize finance by giving investors exposure to a large range of asset classes.
A DeFi infrastructure layer for the Cosmos ecosystem
A layer-1 infrastructure for seamless deployment of DeFi applications in the Cosmos ecosystem, powering DeFi in the multi-chain future.

Plug & play customizable Comdex modules to deliver bleeding edge dApps

## Docs

We will be soon releasing out documentations.
checkout the documents here [docs.comdex.one](https://docs.comdex.one).

If you have technical questions or concerns, ask a developer or community member in the [Comdex discord](https://discord.com/invite/7vjPvWKKMT).

Expand All @@ -33,18 +34,18 @@ make install

## Testnet

To verify latest testnet and main net version check
[Version](https://github.com/comdex-official/networks/blob/main/README.md)

For further information on joining the testnet, head over to the
[Comdex Networks TestNet](https://github.com/comdex-official/networks/tree/main/testnet).

The explorer for this chain is hosted [TestNet Explorer](https://comets-test.comdex.one/)

Latest testnet version - [0.1.0](https://github.com/comdex-official/comdex/releases/tag/v0.1.0)

## MainNet
For further information on joining the mainnet, head over to the
[Comdex Networks MainNet](https://github.com/comdex-official/networks/tree/main/mainnet).

Latest Mainnet verion - [0.1.1](https://github.com/comdex-official/comdex/releases/tag/v0.1.1)

## Mainet Explorers
The explorer for this chain is hosted
Expand Down
Loading