-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add balance fetcher test * chore: improve test * chore: add nop logger and use it in tests * chore: add commission fetcher test * chore: test init with multiple chains * chore: add rewards fetcher test * chore: pass config.Chains only to fetchers * chore: add self delegation fetcher test * chore: add delegations fetcher test * chore: add unbonds fetcher test * chore: add staking params fetcher test * chore: add slashing params fetcher test * chore: add consumers to staking params * chore: add validators fetcher test * chore: add soft opt-out threshold fetcher test * chore: add node info fetcher test * chore: do not init consumers on delegations fetcher * chore: add signing info fetcher * chore: add consumer validators fetcher * chore: add consumer info fetcher * chore: add price fetcher test, removed dex screener * chore: probably fixed go.mod thing * chore: some more tests
- Loading branch information
1 parent
ca3df04
commit 0485a96
Showing
63 changed files
with
4,595 additions
and
2,240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"consumer_address":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"consumer_address":"cosmosvalcons1w426hkttrwrve9mj77ld67lzgx5u9m8pyplqg2"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"balances": [ | ||
{ | ||
"denom": "uatom", | ||
"amount": "596250" | ||
} | ||
], | ||
"pagination": { | ||
"next_key": null, | ||
"total": "1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"cosmos":{"usd":6.71}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"commission": { | ||
"commission": [ | ||
{ | ||
"denom": "uatom", | ||
"amount": "35387184.119122794099577747" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"chains": [ | ||
{ | ||
"chain_id": "neutron-1", | ||
"client_id": "07-tendermint-1119", | ||
"top_N": 95, | ||
"min_power_in_top_N": "287843", | ||
"validators_power_cap": 0, | ||
"validator_set_cap": 0, | ||
"allowlist": [], | ||
"denylist": [] | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"delegation_responses": [ | ||
{ | ||
"delegation": { | ||
"delegator_address": "cosmos1qqqrukxs0rfmk43wpr8j79r407mj8cylpf8ux0", | ||
"validator_address": "cosmosvaloper1xqz9pemz5e5zycaa89kys5aw6m8rhgsvw4328e", | ||
"shares": "51000000.000000000000000000" | ||
}, | ||
"balance": { | ||
"denom": "uatom", | ||
"amount": "51000000" | ||
} | ||
} | ||
], | ||
"pagination": { | ||
"next_key": "FABpS2OZU5S9Lm9OifjQ+7igOjicFDAEUOdipmgiY705bEhTrtbOO6IM", | ||
"total": "1729" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"code":12, | ||
"message":"Not Implemented", | ||
"details":[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package assets | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestGetPanicOrFailPanic(t *testing.T) { | ||
t.Parallel() | ||
|
||
defer func() { | ||
if r := recover(); r == nil { | ||
require.Fail(t, "Expected to have a panic here!") | ||
} | ||
}() | ||
|
||
GetBytesOrPanic("not-existing") | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rewards": [ | ||
{ | ||
"denom": "uatom", | ||
"amount": "690574.020284639200000000" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"delegation_response": { | ||
"delegation": { | ||
"delegator_address": "cosmos1xqz9pemz5e5zycaa89kys5aw6m8rhgsvtp9lt2", | ||
"validator_address": "cosmosvaloper1xqz9pemz5e5zycaa89kys5aw6m8rhgsvw4328e", | ||
"shares": "200000000.000000000000000000" | ||
}, | ||
"balance": { | ||
"denom": "uatom", | ||
"amount": "200000000" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"val_signing_info":{"address":"cosmosvalcons1rt4g447zhv6jcqwdl447y88guwm0eevnrelgzc","start_height":"14778937","index_offset":"5662147","jailed_until":"1970-01-01T00:00:00Z","tombstoned":false,"missed_blocks_counter":"8"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"params": { | ||
"signed_blocks_window": "10000", | ||
"min_signed_per_window": "0.050000000000000000", | ||
"downtime_jail_duration": "600s", | ||
"slash_fraction_double_sign": "0.050000000000000000", | ||
"slash_fraction_downtime": "0.000100000000000000" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"param":{"subspace":"ccvconsumer","key":"SoftOptOutThreshold","value":"\"test\""}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"param":{"subspace":"ccvconsumer","key":"SoftOptOutThreshold","value":"\"0.05\""}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"params": { | ||
"unbonding_time": "1814400s", | ||
"max_validators": 180, | ||
"max_entries": 7, | ||
"historical_entries": 10000, | ||
"bond_denom": "uatom", | ||
"min_commission_rate": "0.050000000000000000", | ||
"validator_bond_factor": "250.000000000000000000", | ||
"global_liquid_staking_cap": "0.250000000000000000", | ||
"validator_liquid_staking_cap": "1.000000000000000000" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"unbonding_responses": [ | ||
{ | ||
"delegator_address": "cosmos1zse8yqt0h9v67jw2e4h0wttwcuvtg3wvn699ax", | ||
"validator_address": "cosmosvaloper1xqz9pemz5e5zycaa89kys5aw6m8rhgsvw4328e", | ||
"entries": [ | ||
{ | ||
"creation_height": "20753212", | ||
"completion_time": "2024-06-27T21:21:52.380941282Z", | ||
"initial_balance": "44670000", | ||
"balance": "44670000", | ||
"unbonding_id": "731559", | ||
"unbonding_on_hold_ref_count": "1" | ||
} | ||
] | ||
} | ||
], | ||
"pagination": { | ||
"next_key": "FBd69Kj/w6D0COaUv3igceWwNCRf", | ||
"total": "14" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.