Commit c330402
feat: Oracle module (SMA, WMA, EMA) (#883)
* WIP: update few changes in app.go
* WIP: fixed app package changes and working on cmd
* wip: upgrade resource module
* fix typo
* fix
* update test setup
* change types
* wip
* WIP: fix few more issues
* add migrations
* remove validate basic
* fix remaining issues and add upgrade handler
* fix
* fix test setup
* fix
* feat!: upgrade did module to v0.50.x (#878)
* wip
* wip
* wip
* wip
* feat(params): add migrator support to did module
* feat: add autocli support
* wip
* fix
* wip
* chore: remove comment
* chore: add migrate
* chore: add migration in module.go
* feat: add SetParams function
* go.mod
* fix typo
* update test_helper
* fix
* setconfig
* fix icq issue
* fix proto annotations
* feat: change functions
* chore: fix param_change_proposal tests
* chore: remove comment
* fix keeper tests
* feat: implement customgetsigner
* wip
* chore: added query params func and updated the params key
* add custom signers
* fix key
* fix
* chore: add params to autocli
* add params
* fix autocli
* update go version
* fix typo
* fix
* Tidy dependencies
* fix
* update golangci-lint and math version
* fix errors
* fix lint and errors
* update golangci lint version in gha
* fix tests setup
* fix almost failing unit tests
* fix lint and other changes
* revert integration test changes
* WIP: fee abs tests fix
* add resource params query and fix fee abs test
* fix few integration tests and update swagger
* fixed insufficient funds test issue
* WIP: fix query proposal test and address comments
* fix faiing integration test
* fix unit test
* integrate oracle module
* WIP: setup v4 upgrade tests
* fix upgrade migrations issues
* wip
* wip
* wip
* wip
* fix post upgrade tests and wip integration tests after upgrade
* add usdtusdc currencypair
* fix genesis test
* fix type tests
* implement mocks for price feeder
* update tests
* implement txn tests
* fix proto imports
* fix go.mod
* wip
* run docker nodes with price feeder
* Regenerate Pulsar API
* Modified to compliant x/oracle Proto
* Removed unused Protobuf imports on cheqd-specific modules
* Added Protobuf wellknowntypes
* fix oracle tx tests
* fix: lint fix
* fix: fix lint
* wip
* wip
* wip
* wip
* fix: oracle param_test
* wip
* wip
* fix: app_test.go
* wip
* wip
* update testdata
* wip
* fix: fix lint
* wip
* wip
* fix: lint fix
* fix: updated cosmos-sdk
* wip
* enable vote extensions in upgradehandler
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix: lint fix
* feat: support oracle with osmosis-icq provider (#899)
* update oracle params
* update params and end blocker
* updare params and cheqd price calculation
* update feeabs tests
* WIP: fix tests
* update oracle params
* fix sh lint
* fix tests
* add twap rate check test
* fix sh lint
* `gofumpt-ed`
---------
Co-authored-by: Tasos Derisiotis <50984242+Eengineer1@users.noreply.github.com>
* chore: add oracle tests
* wip
* wip
* fix: fix tests
* refactor: replace hardcoded "usd" strings with UsdDenom constant
* chore: implement custom wma cli
* wip
* review changes
* Note correction
* restore optimistic execution
* remove test handler
* wip
* fix: fix lint
* wip
* wip
* wip
* wip
* fix: cli_diddoc_pricing_negative and cli_diddoc_test
* wip: adding usdscaling
* fix: fix lint
* wip: add autocli for oracle module
* wip: add optional field in autocli for exchange-rates
* add oracle module in minor upgrade and add tests
* revert back oracle autocli
* wip: add fixed fee scenario
* fix: lint fix
* wip: update migrations
* fix: fix lint
* fix: update expected module version map
* wip: add usd ranging in migration
* fix: fix lint
* wip: fix tests
* wip: change usd range in migration
* wip: testing
* wip: testing
* wip: testing
* wip
* wip
* wip: comment the lower fee test cases
* wip
* Regenerate API
* chore: add feegrant deduct logic in the post handler
* Remove redundant
* feat: update fee-abstraction module to latest version in go.mod
* Fix export of address variables in cheqd-init.sh
* fix: lint issues
* wip: use maxAmount as the fee
* wip: correct syntax for fee
* chore: increase the difference value and use the minAmount for updateDidDoc
* fix: fix lint
* fix: use MinAmount in updateDidDoc
* chore: add moving average tests
* chore: use WMA instead of EMA
* fix: fix unit tests
* wip: uncomment the lower fee code
* wip: reduce the fee amount in cli_diddoc_pricinng_negative and resource
* wip: update cli_diddoc_pricing_negative_test
* chore: use updated tags for feeabs and price-feeder
* wip
* wip: use latest cheqd-usd price
* wip:change fee
* wip: fee change
* wip: lower fees
* wip:fix in defi_test
* wip: add param_change_propsal
* fix: fix lint
* remove comments
* wip
* wip: add missing return statement
* wip: move constants to util
* chore: remove the burn custom cli command
* chore: remove the usd default value in the did params
* fix: fix lint
* fix: update update_param_test
* feat: add DefaultUSDParams for both did and resource
* fix: fix lint
* update test workflow
* revert: revert the test workflow
* fix: update tests
* fix: fix lint
* remove update_params_test.go
* feat: add query to convert usd to ncheq using moving average
* Corrected typo
* chore: add slashingEnabled param
* update price-feeder config
* chore: update godoc
* wip: testing mockprovider
* fix: lint fix
* fix tests
* chore: add icq fallback
* chore: add the icqprice check in the upgradeHandler and make averaging window as param
* chore: update deps
* chore: update anteHandler
* Resolved remaining conflicts
* Resolved conflicts
* Resolved error check
* Explicit registration of intefaces
* Explicit upgrade name and scope
* Revert v4 seclusion to original upgrade name
* Scope to v4-minor followed by v4-feature
* Add v4.1 upgrade integration test and workflow steps
Introduces pre-upgrade integration tests for v4.1, supporting scripts and environment files, and updates the CI workflow to run and report these tests. Also adjusts upgrade scripts and test logic to support sequential upgrades and corrects proposal IDs for v4.2.
---------
Co-authored-by: akhilkumarpilli <akhilkumar7947@gmail.com>
Co-authored-by: PrathyushaLakkireddy <prathyusha@vitwit.com>
Co-authored-by: Tasos Derisiotis <50984242+Eengineer1@users.noreply.github.com>
Co-authored-by: Eengineer1 <tasosderiziotis@gmail.com>
Co-authored-by: Akhil Kumar P <36399231+akhilkumarpilli@users.noreply.github.com>1 parent 0bf5f4b commit c330402
File tree
238 files changed
+88100
-2170
lines changed- .github/workflows
- ante
- api/cheqd
- did/v2
- oracle/v2
- resource/v2
- app
- client/docs
- statik
- testsuite
- upgrades/v4
- cmd/cheqd-noded/cmd
- docker
- localnet
- post
- pricefeeder
- proto/cheqd
- did/v2
- oracle/v2
- resource/v2
- tests
- fee-abs
- cheqd
- osmosis
- integration
- cli
- helpers
- mock-price-feed
- mocks
- testdata
- upgrade
- integration
- scripts
- v2
- v3
- v4
- cli
- generated
- post/query - module-version-map
- proposal
- existing
- expected
- scripts
- util
- checkers
- cli
- coin
- decmath
- genmap
- metrics
- reward
- sim
- x
- did
- client/cli
- keeper
- migrations
- v5
- v6
- tests/setup
- types
- oracle
- abci
- client
- cli
- tests
- keeper
- simulations
- types
- resource
- keeper
- migration
- v4
- v5
- tests/setup
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
238 files changed
+88100
-2170
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
238 | 280 | | |
239 | 281 | | |
240 | 282 | | |
241 | | - | |
| 283 | + | |
242 | 284 | | |
243 | | - | |
| 285 | + | |
244 | 286 | | |
245 | 287 | | |
246 | 288 | | |
247 | | - | |
| 289 | + | |
248 | 290 | | |
249 | 291 | | |
250 | 292 | | |
| |||
266 | 308 | | |
267 | 309 | | |
268 | 310 | | |
269 | | - | |
| 311 | + | |
270 | 312 | | |
271 | 313 | | |
272 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments