diff --git a/Makefile b/Makefile index dd336a43..86a0202d 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ cosmos_dir=$(swagger_dir)/cosmos-sdk dnode = ./cmd/dnode dncli =./cmd/dncli -cosmos_version = $(shell awk '/replace github.com\/cosmos\/cosmos-sdk => github.com\/dfinance\/cosmos-sdk/ {print $$NF}' < go.mod) +cosmos_version = dfinance/launchpad all: install install: go.sum install-dnode install-dncli @@ -98,7 +98,6 @@ swagger-ui-build: $(modules_dir)/* echo "package docs\n\nconst Swagger = \`" >> ./cmd/dncli/docs/swagger.go cat ./cmd/dncli/docs/swagger.yaml | sed "s/\`/'/g" >> ./cmd/dncli/docs/swagger.go echo "\`" >> ./cmd/dncli/docs/swagger.go - rm ./cmd/dncli/docs/swagger.yaml ## binaries builds (xgo required: https://github.com/karalabe/xgo) binaries: go.sum diff --git a/cmd/config/restrictions/restrictions.go b/cmd/config/restrictions/restrictions.go index cdf9a9a1..9fa3e533 100644 --- a/cmd/config/restrictions/restrictions.go +++ b/cmd/config/restrictions/restrictions.go @@ -35,7 +35,7 @@ func GetEmptyAppRestriction() AppRestrictions { //GetAppRestrictions returns predefined parameter for remove or restrict standard app parameters. func GetAppRestrictions() AppRestrictions { return AppRestrictions{ - DisabledTxCmd: []string{}, + DisabledTxCmd: []string{}, DisabledQueryCmd: []string{}, MsgDeniedList: map[string][]string{ currencies.ModuleName: { diff --git a/cmd/dncli/docs/swagger.go b/cmd/dncli/docs/swagger.go index b200669d..e2dcdddd 100644 --- a/cmd/dncli/docs/swagger.go +++ b/cmd/dncli/docs/swagger.go @@ -37,7 +37,8 @@ definitions: example: "1" type: string simulate: - description: Estimate gas for a transaction (cannot be used in conjunction with generate_only) + description: Estimate gas for a transaction (cannot be used in conjunction + with generate_only) example: false type: boolean type: object @@ -486,17 +487,20 @@ definitions: example: liqd type: string lp_distr_ratio: - description: Gov voting and distribution ratio between bonding tokens and liquidity tokens (BTokens + LPDistrRatio * LPTokens) + description: Gov voting and distribution ratio between bonding tokens and + liquidity tokens (BTokens + LPDistrRatio * LPTokens) example: "0.123" format: number type: string max_delegations_ratio: - description: Max delegations per validator is limited by (CurrentSelfDelegation * KeyMaxDelegationsRatio) + description: Max delegations per validator is limited by (CurrentSelfDelegation + * KeyMaxDelegationsRatio) example: "0.123" format: number type: string max_entries: - description: Max entries for either unbonding delegation or redelegation (per pair/trio) + description: Max entries for either unbonding delegation or redelegation (per + pair/trio) type: integer max_self_delegation_lvl: description: Max self delegation level for self-delegation increment @@ -512,7 +516,8 @@ definitions: format: integer type: string scheduled_unbond_delay: - description: Time duration of validator.ScheduledToUnbond to be raised up before forced unbonding is done + description: Time duration of validator.ScheduledToUnbond to be raised up + before forced unbonding is done type: string unbonding_time: description: Time duration of unbonding @@ -761,26 +766,6 @@ definitions: voter: type: string type: object - auth.StdFee: - $ref: '#/definitions/types.StdFee' - auth.StdSignature: - $ref: '#/definitions/types.StdSignature' - auth.StdTx: - $ref: '#/definitions/types.StdTx' - bytes.HexBytes: - items: - type: integer - type: array - ccstorage.Currencies: - $ref: '#/definitions/types.Currencies' - ccstorage.Currency: - $ref: '#/definitions/types.Currency' - crypto.Address: - $ref: '#/definitions/bytes.HexBytes' - markets.MarketExtended: - $ref: '#/definitions/types.MarketExtended' - msmodule.MsMsg: - type: object rest.BaseReq: properties: account_number: @@ -924,7 +909,8 @@ definitions: format: bech32/hex type: string move_path: - description: Move formatted path (ModuleName::StructName, where ::StructName is optional) + description: Move formatted path (ModuleName::StructName, where ::StructName + is optional) example: Block::BlockMetadata type: string view_request: @@ -1085,7 +1071,8 @@ definitions: example: "100" type: string quantity: - description: BaseAsset quantity with decimals (1.0 BTC with 8 decimals -> 100000000) + description: BaseAsset quantity with decimals (1.0 BTC with 8 decimals -> + 100000000) example: "10" type: string ttl_in_sec: @@ -1188,14 +1175,6 @@ definitions: $ref: '#/definitions/types.QueryDelegatorTotalRewardsResponse' type: object type: object - rest.QueryDistributionParamsResp: - properties: - height: - type: integer - result: - $ref: '#/definitions/DistributionParams' - type: object - type: object rest.QueryExtendedValidatorResp: properties: height: @@ -1229,12 +1208,12 @@ definitions: $ref: '#/definitions/types.MintInfo' type: object type: object - rest.QueryMinterParamsResp: + rest.QueryParamsResp: properties: height: type: integer result: - $ref: '#/definitions/MintParams' + $ref: '#/definitions/StakingParams' type: object type: object rest.QueryPoolResp: @@ -1254,14 +1233,6 @@ definitions: $ref: '#/definitions/types.RedelegationResponse' type: array type: object - rest.QueryStakingParamsResp: - properties: - height: - type: integer - result: - $ref: '#/definitions/StakingParams' - type: object - type: object rest.QuerySwaggerValidatorDistInfoResp: properties: height: @@ -1489,7 +1460,8 @@ definitions: $ref: '#/definitions/rest.BaseReq' type: object id: - description: Unstake unique ID (could be txHash of transaction in another blockchain) + description: Unstake unique ID (could be txHash of transaction in another + blockchain) type: string staker: description: Staker account (whose balance is increased) @@ -1597,8 +1569,6 @@ definitions: items: type: integer type: array - types.Address: - $ref: '#/definitions/crypto.Address' types.Asset: properties: active: @@ -1713,7 +1683,8 @@ definitions: format: number type: string max_rate: - description: maximum commission rate which validator can ever charge, as a fraction + description: maximum commission rate which validator can ever charge, as a + fraction example: "0.3" format: number type: string @@ -1789,7 +1760,8 @@ definitions: type: object total: $ref: '#/definitions/types.DecCoins' - description: Sum of current period reward amount and stored in rewards bank amount + description: Sum of current period reward amount and stored in rewards bank + amount type: object validator_address: example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h @@ -2081,15 +2053,6 @@ definitions: items: $ref: '#/definitions/types.Order' type: array - types.PartSetHeader: - properties: - hash: - items: - type: integer - type: array - total: - type: integer - type: object types.Pool: properties: bonded_tokens: @@ -2103,7 +2066,8 @@ definitions: format: integer type: string not_bonded_tokens: - description: Bonding tokens which are not bonded to a validators (unbonded or unbonding) + description: Bonding tokens which are not bonded to a validators (unbonded + or unbonding) example: "500" format: integer type: string @@ -2154,7 +2118,8 @@ definitions: type: array total: $ref: '#/definitions/types.DecCoins' - description: All validators rewards accumulated on delegations modification events (shares change, undelegation, redelegation) + description: All validators rewards accumulated on delegations modification + events (shares change, undelegation, redelegation) type: object type: object types.RedelegationEntry: @@ -2438,13 +2403,15 @@ definitions: format: bech32 type: string scheduled_to_unbond: - description: Has the validator been scheduled to force unbond due to low SelfStake amount compared to TotalDelegationsAmount + description: Has the validator been scheduled to force unbond due to low SelfStake + amount compared to TotalDelegationsAmount type: boolean scheduled_unbond_height: description: If ScheduledToUnbond, height at which this schedule started type: integer scheduled_unbond_time: - description: Is ScheduledToUnbond, min time for the validator to begin force unbond + description: Is ScheduledToUnbond, min time for the validator to begin force + unbond type: string status: description: Validator status (bonded/unbonding/unbonded) @@ -2519,13 +2486,15 @@ definitions: description: Rewards unlock time (if locked) type: string scheduled_to_unbond: - description: Has the validator been scheduled to force unbond due to low SelfStake amount compared to TotalDelegationsAmount + description: Has the validator been scheduled to force unbond due to low SelfStake + amount compared to TotalDelegationsAmount type: boolean scheduled_unbond_height: description: If ScheduledToUnbond, height at which this schedule started type: integer scheduled_unbond_time: - description: Is ScheduledToUnbond, min time for the validator to begin force unbond + description: Is ScheduledToUnbond, min time for the validator to begin force + unbond type: string status: description: Validator status (bonded/unbonding/unbonded) @@ -3069,7 +3038,8 @@ paths: get: consumes: - application/json - description: Get the sum of all the rewards earned by delegations by a single delegator + description: Get the sum of all the rewards earned by delegations by a single + delegator operationId: distributionGetDelegatorRewards parameters: - description: Bech32 AccAddress of Delegator @@ -3213,7 +3183,8 @@ paths: get: consumes: - application/json - description: Get the delegations' rewards withdrawal address. This is the address in which the user will receive the reward funds + description: Get the delegations' rewards withdrawal address. This is the address + in which the user will receive the reward funds operationId: distributionGetDelegatorWithdrawalAddr parameters: - description: Bech32 AccAddress of Delegator @@ -3288,7 +3259,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/rest.QueryDistributionParamsResp' + $ref: '#/definitions/rest.QueryParamsResp' "400": description: Returned if the request doesn't have valid query params schema: @@ -3307,7 +3278,8 @@ paths: description: Get the amount held in the specified pool operationId: distributionPool parameters: - - description: 'PoolName: LiquidityProvidersPool, FoundationPool, PublicTreasuryPool, HARP' + - description: 'PoolName: LiquidityProvidersPool, FoundationPool, PublicTreasuryPool, + HARP' in: path name: poolName required: true @@ -3367,7 +3339,8 @@ paths: get: consumes: - application/json - description: Query the extended information from a single validator containing distribution params + description: Query the extended information from a single validator containing + distribution params operationId: distributionValidatorExtended parameters: - description: Bech32 OperatorAddress of validator @@ -3524,10 +3497,12 @@ paths: get: consumes: - application/json - description: Query the extended information from multiple validators containing distribution params + description: Query the extended information from multiple validators containing + distribution params operationId: distributionValidatorsExtended parameters: - - description: The validator bond status. Must be either 'bonded', 'unbonded', or 'unbonding' + - description: The validator bond status. Must be either 'bonded', 'unbonded', + or 'unbonding' in: query name: status type: string @@ -3559,7 +3534,8 @@ paths: - Distribution /gov/parameters/deposit: get: - description: Query governance deposit parameters. The max_deposit_period units are in nanoseconds. + description: Query governance deposit parameters. The max_deposit_period units + are in nanoseconds. produces: - application/json responses: @@ -3614,7 +3590,8 @@ paths: - Governance /gov/parameters/voting: get: - description: Query governance voting parameters. The voting_period units are in nanoseconds. + description: Query governance voting parameters. The voting_period units are + in nanoseconds. produces: - application/json responses: @@ -3648,7 +3625,8 @@ paths: name: depositor required: false type: string - - description: proposal status, valid values can be '"deposit_period"', '"voting_period"', '"passed"', '"rejected"' + - description: proposal status, valid values can be '"deposit_period"', '"voting_period"', + '"passed"', '"rejected"' in: query name: status required: false @@ -3674,7 +3652,8 @@ paths: - application/json description: Send transaction to submit a proposal parameters: - - description: valid value of '"proposal_type"' can be '"text"', '"parameter_change"', '"software_upgrade"' + - description: valid value of '"proposal_type"' can be '"text"', '"parameter_change"', + '"software_upgrade"' in: body name: post_proposal_body required: true @@ -3857,7 +3836,9 @@ paths: - Governance /gov/proposals/{proposalId}/tally: get: - description: Gets a proposal's tally result at the current time. If the proposal is pending deposits (i.e status 'DepositPeriod') it returns an empty tally result. + description: Gets a proposal's tally result at the current time. If the proposal + is pending deposits (i.e status 'DepositPeriod') it returns an empty tally + result. parameters: - description: proposal id in: path @@ -3916,7 +3897,8 @@ paths: required: true type: string x-example: "2" - - description: valid value of '"option"' field can be '"yes"', '"no"', '"no_with_veto"' and '"abstain"' + - description: valid value of '"option"' field can be '"yes"', '"no"', '"no_with_veto"' + and '"abstain"' in: body name: post_vote_body required: true @@ -3984,7 +3966,8 @@ paths: - application/json description: Generate a parameter change proposal transaction parameters: - - description: The parameter change proposal body that contains all parameter changes + - description: The parameter change proposal body that contains all parameter + changes in: body name: post_proposal_body required: true @@ -4178,7 +4161,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/rest.QueryMinterParamsResp' + $ref: '#/definitions/rest.QueryParamsResp' "400": description: Returned if the request doesn't have valid query params schema: @@ -5170,7 +5153,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/rest.QueryStakingParamsResp' + $ref: '#/definitions/rest.QueryParamsResp' "400": description: Returned if the request doesn't have valid query params schema: @@ -5247,10 +5230,12 @@ paths: get: consumes: - application/json - description: Get all validator candidates. By default it returns only the bonded validators + description: Get all validator candidates. By default it returns only the bonded + validators operationId: stakingGetValidators parameters: - - description: The validator bond status. Must be either 'bonded', 'unbonded', or 'unbonding' + - description: The validator bond status. Must be either 'bonded', 'unbonded', + or 'unbonding' in: query name: status type: string @@ -5277,7 +5262,8 @@ paths: description: Returned on server error schema: $ref: '#/definitions/rest.ErrorResponse' - summary: Get all validator candidates. By default it returns only the bonded validators + summary: Get all validator candidates. By default it returns only the bonded + validators tags: - Staking /staking/validators/{validatorAddr}: @@ -5429,7 +5415,10 @@ paths: get: description: Search transactions by events. parameters: - - description: 'transaction events such as ''message.action=send'' which results in the following endpoint: ''GET /txs?message.action=send''. note that each module documents its own events. look for xx_events.md in the corresponding cosmos-sdk/docs/spec directory' + - description: 'transaction events such as ''message.action=send'' which results + in the following endpoint: ''GET /txs?message.action=send''. note that each + module documents its own events. look for xx_events.md in the corresponding + cosmos-sdk/docs/spec directory' in: query name: message.action type: string @@ -5478,7 +5467,9 @@ paths: - application/json description: Broadcast a signed tx to a full node parameters: - - description: The tx must be a signed StdTx. The supported broadcast modes include '"block"'(return after tx commit), '"sync"'(return afer CheckTx) and '"async"'(return right away). + - description: The tx must be a signed StdTx. The supported broadcast modes + include '"block"'(return after tx commit), '"sync"'(return afer CheckTx) + and '"async"'(return right away). in: body name: txBroadcast required: true @@ -5528,7 +5519,8 @@ paths: post: consumes: - application/json - description: Decode a transaction (signed or not) from base64-encoded Amino serialized bytes to JSON + description: Decode a transaction (signed or not) from base64-encoded Amino + serialized bytes to JSON parameters: - description: The tx to decode in: body @@ -5558,7 +5550,8 @@ paths: post: consumes: - application/json - description: Encode a transaction (signed or not) from JSON to base64-encoded Amino serialized bytes + description: Encode a transaction (signed or not) from JSON to base64-encoded + Amino serialized bytes parameters: - description: The tx to encode in: body @@ -5806,7 +5799,8 @@ paths: get: consumes: - application/json - description: Get writeSet data LCS string view for {address}::{moduleName}::{structName} Move path" + description: Get writeSet data LCS string view for {address}::{moduleName}::{structName} + Move path" operationId: lcsView parameters: - description: View request diff --git a/cmd/dncli/docs/swagger.yaml b/cmd/dncli/docs/swagger.yaml new file mode 100644 index 00000000..1bd49651 --- /dev/null +++ b/cmd/dncli/docs/swagger.yaml @@ -0,0 +1,5848 @@ +definitions: + Address: + description: bech32 encoded address + example: cosmos1depk54cuajgkzea6zpgkq36tnjwdzv4afc3d27 + type: string + BaseReq: + properties: + account_number: + example: "0" + type: string + chain_id: + example: Cosmos-Hub + type: string + fees: + items: + $ref: '#/definitions/Coin' + type: array + from: + description: Sender address or Keybase name to generate a transaction + example: cosmos1g9ahr6xhht5rmqven628nklxluzyv8z9jqjcmc + type: string + gas: + example: "200000" + type: string + gas_adjustment: + example: "1.2" + type: string + memo: + example: "Sent via Cosmos Voyager \U0001F680" + type: string + sequence: + example: "1" + type: string + simulate: + description: Estimate gas for a transaction (cannot be used in conjunction + with generate_only) + example: false + type: boolean + type: object + Block: + properties: + evidence: + items: + type: string + type: array + header: + $ref: '#/definitions/BlockHeader' + last_commit: + properties: + block_id: + $ref: '#/definitions/BlockID' + precommits: + items: + properties: + block_id: + $ref: '#/definitions/BlockID' + height: + example: "0" + type: string + round: + example: "0" + type: string + signature: + example: 7uTC74QlknqYWEwg7Vn6M8Om7FuZ0EO4bjvuj6rwH1mTUJrRuMMZvAAqT9VjNgP0RA/TDp6u/92AqrZfXJSpBQ== + type: string + timestamp: + example: "2017-12-30T05:53:09.287+01:00" + type: string + type: + example: 2 + type: number + validator_address: + type: string + validator_index: + example: "0" + type: string + type: object + type: array + type: object + txs: + items: + type: string + type: array + type: object + BlockHeader: + properties: + app_hash: + $ref: '#/definitions/Hash' + chain_id: + example: cosmoshub-2 + type: string + consensus_hash: + $ref: '#/definitions/Hash' + data_hash: + $ref: '#/definitions/Hash' + evidence_hash: + $ref: '#/definitions/Hash' + height: + example: 1 + type: number + last_block_id: + $ref: '#/definitions/BlockID' + last_commit_hash: + $ref: '#/definitions/Hash' + last_results_hash: + $ref: '#/definitions/Hash' + next_validators_hash: + $ref: '#/definitions/Hash' + num_txs: + example: 0 + type: number + proposer_address: + $ref: '#/definitions/Address' + time: + example: "2017-12-30T05:53:09.287+01:00" + type: string + total_txs: + example: 35 + type: number + validators_hash: + $ref: '#/definitions/Hash' + version: + properties: + app: + example: 0 + type: string + block: + example: 10 + type: string + type: object + type: object + BlockID: + properties: + hash: + $ref: '#/definitions/Hash' + parts: + properties: + hash: + $ref: '#/definitions/Hash' + total: + example: 0 + type: number + type: object + type: object + BlockQuery: + properties: + block: + $ref: '#/definitions/Block' + block_meta: + properties: + block_id: + $ref: '#/definitions/BlockID' + header: + $ref: '#/definitions/BlockHeader' + type: object + type: object + BroadcastTxCommitResult: + properties: + check_tx: + $ref: '#/definitions/CheckTxResult' + deliver_tx: + $ref: '#/definitions/DeliverTxResult' + hash: + $ref: '#/definitions/Hash' + height: + type: integer + type: object + CheckTxResult: + example: + code: 0 + data: data + gas_used: 5000 + gas_wanted: 10000 + info: info + log: log + tags: + - "" + - "" + properties: + code: + type: integer + data: + type: string + gas_used: + type: integer + gas_wanted: + type: integer + info: + type: string + log: + type: string + tags: + items: + $ref: '#/definitions/KVPair' + type: array + type: object + Coin: + properties: + amount: + example: "50" + type: string + denom: + example: stake + type: string + type: object + Delegation: + properties: + balance: + $ref: '#/definitions/Coin' + delegator_address: + type: string + shares: + type: string + validator_address: + type: string + type: object + DelegationDelegatorReward: + properties: + reward: + items: + $ref: '#/definitions/Coin' + type: array + validator_address: + $ref: '#/definitions/ValidatorAddress' + type: object + DelegatorTotalRewards: + properties: + rewards: + items: + $ref: '#/definitions/DelegationDelegatorReward' + type: array + total: + items: + $ref: '#/definitions/Coin' + type: array + type: object + DeliverTxResult: + example: + code: 5 + data: data + gas_used: 5000 + gas_wanted: 10000 + info: info + log: log + tags: + - "" + - "" + properties: + code: + type: integer + data: + type: string + gas_used: + type: integer + gas_wanted: + type: integer + info: + type: string + log: + type: string + tags: + items: + $ref: '#/definitions/KVPair' + type: array + type: object + Deposit: + properties: + amount: + items: + $ref: '#/definitions/Coin' + type: array + depositor: + $ref: '#/definitions/Address' + proposal_id: + type: string + type: object + DistributionParams: + properties: + base_proposer_reward: + description: Block proposer base reward ratio + example: "0.123" + format: number + type: string + bonus_proposer_reward: + description: Block proposer bonus reward ratio + example: "0.123" + format: number + type: string + foundation_nominees: + example: + - wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + items: + type: string + type: array + harp_tax: + description: Rewards distribution ratio for HARP + example: "0.123" + format: number + type: string + liquidity_providers_pool_tax: + description: Rewards distribution ratio for LiquidityProvidersPool + example: "0.123" + format: number + type: string + locked_dur: + description: Rewards lock duration + type: string + locked_ratio: + description: Validator distribution power calculation coefficient + example: "0.123" + format: number + type: string + public_treasury_pool_capacity: + description: PublicTreasuryPool max amount limit + example: "100" + format: integer + type: string + public_treasury_pool_tax: + description: Rewards distribution ratio for PublicTreasuryPool + example: "0.123" + format: number + type: string + validators_pool_tax: + description: Rewards distribution ratio for ValidatorsPool + example: "0.123" + format: number + type: string + withdraw_addr_enabled: + type: boolean + type: object + Hash: + example: EE5F3404034C524501629B56E0DDC38FAD651F04 + type: string + KVPair: + properties: + key: + type: string + value: + type: string + type: object + MintParams: + properties: + avg_block_time_window: + description: Avg block time filter window size + type: integer + fee_burning_ratio: + description: '% of fees burned (per block)' + example: "0.123" + format: number + type: string + foundation_allocation_ratio: + description: Extra Foundation pool allocation inflation ratio + example: "0.123" + format: number + type: string + inflation_max: + description: Maximum inflation rate (annual) + example: "0.123" + format: number + type: string + inflation_min: + description: Minimum inflation rate (annual) + example: "0.123" + format: number + type: string + infpwr_bondedlocked_ratio: + description: Bonded, locked shoulders relation for inflation power calculation + example: "0.123" + format: number + type: string + mint_denom: + description: Type of coin to mint + example: stake + type: string + staking_total_supply_shift: + description: BondedRatio denominator (TotalSupply) shift coefficient + example: "100" + format: integer + type: string + type: object + Msg: + type: string + PaginatedQueryTxs: + properties: + count: + example: 1 + type: number + limit: + example: 30 + type: number + page_number: + example: 1 + type: number + page_total: + example: 1 + type: number + total_count: + example: 1 + type: number + txs: + items: + $ref: '#/definitions/TxQuery' + type: array + type: object + ParamChange: + properties: + key: + example: MaxValidators + type: string + subkey: + example: "" + type: string + subspace: + example: staking + type: string + value: + type: object + type: object + Proposer: + properties: + proposal_id: + type: string + proposer: + type: string + type: object + PublicKey: + properties: + type: + type: string + value: + type: string + type: object + Redelegation: + properties: + delegator_address: + type: string + entries: + items: + $ref: '#/definitions/Redelegation' + type: array + validator_dst_address: + type: string + validator_src_address: + type: string + type: object + RedelegationEntry: + properties: + balance: + type: string + completion_time: + type: integer + creation_height: + type: integer + initial_balance: + type: string + shares_dst: + type: string + type: object + SigningInfo: + properties: + index_offset: + type: string + jailed_until: + type: string + missed_blocks_counter: + type: string + start_height: + type: string + type: object + StakingParams: + properties: + bond_denom: + description: Bondable coin denomination + example: stake + type: string + historical_entries: + description: Number of historical entries to persist + type: integer + lp_denom: + description: Liquidity coin denomination + example: liqd + type: string + lp_distr_ratio: + description: Gov voting and distribution ratio between bonding tokens and + liquidity tokens (BTokens + LPDistrRatio * LPTokens) + example: "0.123" + format: number + type: string + max_delegations_ratio: + description: Max delegations per validator is limited by (CurrentSelfDelegation + * KeyMaxDelegationsRatio) + example: "0.123" + format: number + type: string + max_entries: + description: Max entries for either unbonding delegation or redelegation (per + pair/trio) + type: integer + max_self_delegation_lvl: + description: Max self delegation level for self-delegation increment + example: "100" + format: integer + type: string + max_validators: + description: Maximum number of validators (max uint16 = 65535) + type: integer + min_self_delegation_lvl: + description: Min self delegation level for validator creation + example: "100" + format: integer + type: string + scheduled_unbond_delay: + description: Time duration of validator.ScheduledToUnbond to be raised up + before forced unbonding is done + type: string + unbonding_time: + description: Time duration of unbonding + type: string + type: object + StdTx: + properties: + fee: + properties: + amount: + items: + $ref: '#/definitions/Coin' + type: array + gas: + type: string + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/Msg' + type: array + signature: + properties: + account_number: + example: "0" + type: string + pub_key: + properties: + type: + example: tendermint/PubKeySecp256k1 + type: string + value: + example: Avz04VhtKJh8ACCVzlI8aTosGy0ikFXKIVHQ3jKMrosH + type: string + type: object + sequence: + example: "0" + type: string + signature: + example: MEUCIQD02fsDPra8MtbRsyB1w7bqTM55Wu138zQbFcWx4+CFyAIge5WNPfKIuvzBZ69MyqHsqD8S1IwiEp+iUb6VSdtlpgY= + type: string + type: object + type: object + Supply: + properties: + total: + items: + $ref: '#/definitions/Coin' + type: array + type: object + TallyResult: + properties: + abstain: + example: "0.0000000000" + type: string + "false": + example: "0.0000000000" + type: string + no_with_veto: + example: "0.0000000000" + type: string + "true": + example: "0.0000000000" + type: string + type: object + TendermintValidator: + properties: + address: + $ref: '#/definitions/ValidatorAddress' + proposer_priority: + example: "1000" + type: string + pub_key: + example: cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf + type: string + voting_power: + example: "1000" + type: string + type: object + TextProposal: + properties: + description: + type: string + final_tally_result: + $ref: '#/definitions/TallyResult' + proposal_id: + type: integer + proposal_status: + type: string + proposal_type: + type: string + submit_time: + type: string + title: + type: string + total_deposit: + items: + $ref: '#/definitions/Coin' + type: array + voting_start_time: + type: string + type: object + TxQuery: + properties: + hash: + example: D085138D913993919295FF4B0A9107F1F2CDE0D37A87CE0644E217CBF3B49656 + type: string + height: + example: 368 + type: number + result: + properties: + gas_used: + example: "26354" + type: string + gas_wanted: + example: "200000" + type: string + log: + type: string + tags: + items: + $ref: '#/definitions/KVPair' + type: array + type: object + tx: + $ref: '#/definitions/StdTx' + type: object + UnbondingDelegation: + properties: + balance: + type: string + creation_height: + type: integer + delegator_address: + type: string + initial_balance: + type: string + min_time: + type: integer + validator_address: + type: string + type: object + UnbondingDelegationPair: + properties: + delegator_address: + type: string + entries: + items: + $ref: '#/definitions/UnbondingEntries' + type: array + validator_address: + type: string + type: object + UnbondingEntries: + properties: + balance: + type: string + creation_height: + type: string + initial_balance: + type: string + min_time: + type: string + type: object + Validator: + properties: + bond_height: + example: "0" + type: string + bond_intra_tx_counter: + example: 0 + type: integer + commission: + properties: + max_change_rate: + example: "0" + type: string + max_rate: + example: "0" + type: string + rate: + example: "0" + type: string + update_time: + example: "1970-01-01T00:00:00Z" + type: string + type: object + consensus_pubkey: + example: cosmosvalconspub1zcjduepq0vu2zgkgk49efa0nqwzndanq5m4c7pa3u4apz4g2r9gspqg6g9cs3k9cuf + type: string + delegator_shares: + type: string + description: + properties: + details: + type: string + identity: + type: string + moniker: + type: string + security_contact: + type: string + website: + type: string + type: object + jailed: + type: boolean + operator_address: + $ref: '#/definitions/ValidatorAddress' + status: + type: integer + tokens: + type: string + unbonding_height: + example: "0" + type: string + unbonding_time: + example: "1970-01-01T00:00:00Z" + type: string + type: object + ValidatorAddress: + description: bech32 encoded address + example: cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l + type: string + ValidatorDistInfo: + properties: + operator_address: + $ref: '#/definitions/ValidatorAddress' + self_bond_rewards: + items: + $ref: '#/definitions/Coin' + type: array + val_commission: + items: + $ref: '#/definitions/Coin' + type: array + type: object + Vote: + properties: + option: + type: string + proposal_id: + type: string + voter: + type: string + type: object + rest.BaseReq: + properties: + account_number: + type: integer + chain_id: + type: string + fees: + $ref: '#/definitions/types.Coins' + type: object + from: + type: string + gas: + type: string + gas_adjustment: + type: string + gas_prices: + $ref: '#/definitions/types.DecCoins' + type: object + memo: + type: string + sequence: + type: integer + simulate: + type: boolean + type: object + rest.CCRespGetCurrencies: + properties: + height: + type: integer + result: + type: string + type: object + rest.CCRespGetCurrency: + properties: + height: + type: integer + result: + type: string + type: object + rest.CCRespGetIssue: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Issue' + type: object + type: object + rest.CCRespGetWithdraw: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Withdraw' + type: object + type: object + rest.CCRespGetWithdraws: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Withdraws' + type: object + type: object + rest.CCRespStdTx: + properties: + height: + type: integer + result: + type: string + type: object + rest.CompileReq: + properties: + address: + description: Account address + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32/hex + type: string + code: + description: Script source code + type: string + type: object + rest.ConfirmReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + call_id: + description: Confirming CallID + example: "0" + format: string representation for big.Uint + type: string + type: object + rest.DelegateRequest: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + delegator_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + rest.ErrorResponse: + properties: + code: + type: integer + error: + type: string + type: object + rest.ExecuteScriptReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + move_args: + description: Script arguments + example: + - "true" + items: + type: string + type: array + move_code: + description: Compiled Move code + format: HEX encoded byte code + type: string + type: object + rest.LcsViewReq: + properties: + address: + description: Resource address + example: "0x0000000000000000000000000000000000000001" + format: bech32/hex + type: string + move_path: + description: Move formatted path (ModuleName::StructName, where ::StructName + is optional) + example: Block::BlockMetadata + type: string + view_request: + description: LCS view JSON formatted request (refer to docs for specs) + example: '[ { "name": "height", "type": "U64" } ]' + type: string + type: object + rest.LcsViewResp: + properties: + value: + format: JSON + type: string + type: object + rest.MSRespGetCall: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.CallResp' + type: object + type: object + rest.MSRespGetCalls: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.CallsResp' + type: object + type: object + rest.MarketsRespGetMarket: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Market' + type: object + type: object + rest.MarketsRespGetMarkets: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Markets' + type: object + type: object + rest.OracleRespGetAssets: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Assets' + type: object + type: object + rest.OracleRespGetPrice: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.CurrentPrice' + type: object + type: object + rest.OracleRespGetRawPrices: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.PostedPrice' + type: array + type: object + rest.OrdersRespGetOrder: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Order' + type: object + type: object + rest.OrdersRespGetOrders: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Orders' + type: object + type: object + rest.OrdersRespPostOrder: + properties: + type: + type: string + value: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + $ref: '#/definitions/rest.PostOrderMsg' + type: object + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + type: object + rest.OrdersRespRevokeOrder: + properties: + type: + type: string + value: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + $ref: '#/definitions/rest.RevokeOrderMsg' + type: object + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + type: object + rest.PoaRespGetValidators: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.ValidatorsConfirmationsResp' + type: object + type: object + rest.PostOrderMsg: + properties: + type: + type: string + value: + $ref: '#/definitions/types.MsgPostOrder' + type: object + type: object + rest.PostOrderReq: + properties: + asset_code: + description: 'Market assetCode in the following format: {base_denomination_symbol}_{quote_denomination_symbol}' + example: btc_xfi + type: string + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + direction: + description: Order type (ask/bid) + example: ask + type: string + price: + description: QuoteAsset price with decimals (1.0 XFI with 18 decimals -> 1000000000000000000) + example: "100" + type: string + quantity: + description: BaseAsset quantity with decimals (1.0 BTC with 8 decimals -> + 100000000) + example: "10" + type: string + ttl_in_sec: + description: Order TTL [s] + example: "3" + type: string + type: object + rest.PostPriceReq: + properties: + ask_price: + description: AskPrice in sdk.Int format + example: "100" + type: string + asset_code: + description: AssetCode + example: btc_xfi + type: string + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + bid_price: + description: BidPrice in sdk.Int format + example: "99" + type: string + received_at: + description: Timestamp price createdAt + example: "2020-03-27T13:45:15.293426Z" + format: RFC 3339 + type: string + type: object + rest.PublishModuleReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + move_code: + description: Compiled Move code + format: HEX encoded byte code array + items: + type: string + type: array + type: object + rest.QueryAddressResp: + properties: + height: + type: integer + result: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + rest.QueryDecCoinsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.DecCoin' + type: array + type: object + rest.QueryDecResp: + properties: + height: + type: integer + result: + example: "0.123" + format: number + type: string + type: object + rest.QueryDelegationResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Delegation' + type: object + type: object + rest.QueryDelegationRewardsResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.QueryDelegationRewardsResponse' + type: object + type: object + rest.QueryDelegationsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.DelegationResponse' + type: array + type: object + rest.QueryDelegatorRewardsResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.QueryDelegatorTotalRewardsResponse' + type: object + type: object + rest.QueryExtendedValidatorResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.ValidatorResp' + type: object + type: object + rest.QueryExtendedValidatorsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.ValidatorResp' + type: array + type: object + rest.QueryHistoricalInfoResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.HistoricalInfo' + type: object + type: object + rest.QueryMinterExtendedResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.MintInfo' + type: object + type: object + rest.QueryParamsResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/StakingParams' + type: object + type: object + rest.QueryPoolResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Pool' + type: object + type: object + rest.QueryRedelegationsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.RedelegationResponse' + type: array + type: object + rest.QuerySwaggerValidatorDistInfoResp: + properties: + height: + type: integer + result: + properties: + operator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + self_bond_rewards: + $ref: '#/definitions/types.DecCoins' + type: object + validator_commission: + $ref: '#/definitions/types.DecCoins' + type: object + type: object + type: object + rest.QueryUnbondingDelegationResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.UnbondingDelegation' + type: object + type: object + rest.QueryUnbondingDelegationsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.UnbondingDelegation' + type: array + type: object + rest.QueryValidatorResp: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.Validator' + type: object + type: object + rest.QueryValidatorsResp: + properties: + height: + type: integer + result: + items: + $ref: '#/definitions/types.Validator' + type: array + type: object + rest.RedelegateRequest: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + delegator_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_dst_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_src_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + rest.RevokeOrderMsg: + properties: + type: + type: string + value: + $ref: '#/definitions/types.MsgRevokeOrder' + type: object + type: object + rest.RevokeOrderReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + order_id: + example: "100" + type: string + type: object + rest.RevokeReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + call_id: + description: Confirming CallID + example: "0" + format: string representation for big.Uint + type: string + type: object + rest.SubmitIssueReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + coin: + $ref: '#/definitions/types.Coin' + description: Target currency issue coin + type: object + id: + description: Issue unique ID (could be txHash of transaction in another blockchain) + type: string + payee: + description: Payee account (whose balance is increased) + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32/hex + type: string + type: object + rest.TxBeginRedelegate: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.MsgBeginRedelegate' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + rest.TxFundPublicTreasuryPool: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.MsgFundPublicTreasuryPool' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + rest.TxSetWithdrawAddress: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.MsgSetWithdrawAddress' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + rest.TxUndelegate: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.MsgUndelegate' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + rest.TxWithdrawDelegatorReward: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.MsgWithdrawDelegatorReward' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + rest.UndelegateRequest: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + delegator_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_address: + description: in bech32 + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + rest.UnstakeReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + id: + description: Unstake unique ID (could be txHash of transaction in another + blockchain) + type: string + staker: + description: Staker account (whose balance is increased) + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32/hex + type: string + type: object + rest.VmData: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.ValueResp' + type: object + type: object + rest.VmRespCompile: + properties: + height: + type: integer + result: + $ref: '#/definitions/vm_client.CompiledItems' + type: object + type: object + rest.VmRespLcsView: + properties: + height: + type: integer + result: + $ref: '#/definitions/rest.LcsViewResp' + type: object + type: object + rest.VmRespStdTx: + properties: + height: + type: integer + result: + type: string + type: object + rest.VmTxStatus: + properties: + height: + type: integer + result: + $ref: '#/definitions/types.TxVMStatus' + type: object + type: object + rest.WithdrawReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + coin: + $ref: '#/definitions/types.Coin' + description: Target currency withdraw coin + type: object + pegzone_chain_id: + description: 'Second blockchain: ID' + type: string + pegzone_payee: + description: 'Second blockchain: payee account (whose balance is increased)' + type: string + type: object + rest.fundPublicTreasuryPoolReq: + properties: + amount: + $ref: '#/definitions/types.Coins' + type: object + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + type: object + rest.setWithdrawalAddrReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + withdraw_address: + $ref: '#/definitions/types.AccAddress' + type: object + type: object + rest.withdrawRewardsReq: + properties: + base_req: + $ref: '#/definitions/rest.BaseReq' + type: object + type: object + types.ABCIMessageLog: + properties: + events: + $ref: '#/definitions/types.StringEvents' + description: |- + Events contains a slice of Event objects that were emitted during some + execution. + type: object + log: + type: string + msg_index: + type: integer + type: object + types.ABCIMessageLogs: + items: + $ref: '#/definitions/types.ABCIMessageLog' + type: array + types.AccAddress: + items: + type: integer + type: array + types.Asset: + properties: + active: + description: Not used ATM + type: boolean + asset_code: + description: Asset code + example: btc_xfi + type: string + oracles: + $ref: '#/definitions/types.Oracles' + description: List of registered RawPrice sources + type: object + type: object + types.Assets: + items: + $ref: '#/definitions/types.Asset' + type: array + types.Attribute: + properties: + key: + type: string + value: + type: string + type: object + types.Call: + properties: + approved: + description: 'Call state: approved to execute' + type: boolean + creator: + description: Call creator address + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + error: + description: Call fail reason + type: string + executed: + description: 'Call state: executed' + type: boolean + failed: + description: 'Call state: execution failed' + type: boolean + height: + description: BlockHeight when call was submitted + example: 1 + type: integer + id: + description: Call ID + example: "0" + format: string representation for big.Uint + type: string + msg_data: + description: 'Message: data' + type: string + msg_route: + description: 'Message: route' + example: oracle + type: string + msg_type: + description: 'Message: type' + example: add_asset + type: string + rejected: + description: 'Call state: rejected' + type: boolean + unique_id: + description: Call unique ID (ID and UniqueID both identifies call) + example: issue1 + type: string + type: object + types.CallResp: + properties: + call: + $ref: '#/definitions/types.Call' + description: Call info + type: object + votes: + description: Voted accounts addresses + items: + type: string + type: array + type: object + types.CallsResp: + items: + $ref: '#/definitions/types.CallResp' + type: array + types.Coin: + properties: + amount: + description: |- + To allow the use of unsigned integers (see: #1273) a larger refactor will + need to be made. So we use signed integers for now with safety measures in + place preventing negative values being used. + example: "100" + format: number + type: string + denom: + example: stake + type: string + type: object + types.Coins: + items: + $ref: '#/definitions/types.Coin' + type: array + types.Commission: + properties: + max_change_rate: + description: maximum daily increase of the validator commission, as a fraction + example: "0.5" + format: number + type: string + max_rate: + description: maximum commission rate which validator can ever charge, as a + fraction + example: "0.3" + format: number + type: string + rate: + description: the commission rate charged to delegators, as a fraction + example: "0.1" + format: number + type: string + update_time: + description: the last time the commission rate was changed + type: string + type: object + types.CurrentPrice: + properties: + ask_price: + description: AskPrice + example: "1000" + type: string + asset_code: + description: Asset code + example: btc_xfi + type: string + bid_price: + description: BidPrice + example: "1000" + type: string + received_at: + description: UNIX Timestamp price createdAt [sec] + example: "2020-03-27T13:45:15.293426Z" + format: RFC 3339 + type: string + type: object + types.Dec: + type: object + types.DecCoin: + properties: + amount: + example: "100" + format: number + type: string + denom: + example: stake + type: string + type: object + types.DecCoins: + items: + $ref: '#/definitions/types.DecCoin' + type: array + types.Delegation: + properties: + bonding_shares: + example: "0.1" + format: number + type: string + delegator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + lp_shares: + example: "0.5" + format: number + type: string + validator_address: + example: walletval13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.DelegationDelegatorReward: + properties: + current: + $ref: '#/definitions/types.DecCoins' + description: Current period reward amount + type: object + total: + $ref: '#/definitions/types.DecCoins' + description: Sum of current period reward amount and stored in rewards bank + amount + type: object + validator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.DelegationResponse: + properties: + bonding_balance: + type: string + bonding_shares: + example: "0.1" + format: number + type: string + delegator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + lp_balance: + type: string + lp_shares: + example: "0.5" + format: number + type: string + validator_address: + example: walletval13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.Description: + properties: + details: + description: optional details + type: string + identity: + description: optional identity signature (ex. UPort or Keybase) + type: string + moniker: + description: name + type: string + security_contact: + description: optional security contact info + type: string + website: + description: optional website link + type: string + type: object + types.HistoricalInfo: + properties: + header: + type: string + valset: + items: + $ref: '#/definitions/types.Validator' + type: array + type: object + types.Int: + type: object + types.Issue: + properties: + coin: + description: Issuing coin + example: 100xfi + type: string + payee: + description: Target account for increasing coin balance + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.Market: + properties: + base_asset_denom: + description: Base asset denomination (for ex. btc) + example: btc + type: string + id: + description: Market unique ID + example: "0" + format: string representation for big.Uint + type: string + quote_asset_denom: + description: Quote asset denomination (for ex. xfi) + example: xfi + type: string + type: object + types.Markets: + items: + $ref: '#/definitions/types.Market' + type: array + types.MintInfo: + properties: + annual_provision_foundation: + $ref: '#/definitions/types.Dec' + type: object + annual_provision_main: + $ref: '#/definitions/types.Dec' + type: object + blocks_per_year_estimation: + type: integer + bonded_ratio: + $ref: '#/definitions/types.Dec' + type: object + foundation_allocation_ratio: + $ref: '#/definitions/types.Dec' + type: object + inflation_foundation: + $ref: '#/definitions/types.Dec' + type: object + inflation_main: + $ref: '#/definitions/types.Dec' + type: object + infpwr_bondedlocked_ratio: + $ref: '#/definitions/types.Dec' + type: object + locked_ratio: + $ref: '#/definitions/types.Dec' + type: object + max_inflation: + $ref: '#/definitions/types.Dec' + type: object + min_inflation: + $ref: '#/definitions/types.Dec' + type: object + next_annual_update: + type: string + staking_total_supply_shift: + $ref: '#/definitions/types.Int' + type: object + type: object + types.Msg: + type: object + types.MsgBeginRedelegate: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + delegator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_dst_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_src_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.MsgDelegate: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + delegator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.MsgFundPublicTreasuryPool: + properties: + amount: + $ref: '#/definitions/types.Coins' + type: object + depositor: + $ref: '#/definitions/types.AccAddress' + type: object + type: object + types.MsgPostOrder: + properties: + asset_code: + type: string + direction: + type: string + owner: + $ref: '#/definitions/types.AccAddress' + type: object + price: + $ref: '#/definitions/types.Uint' + type: object + quantity: + $ref: '#/definitions/types.Uint' + type: object + ttl_in_sec: + type: integer + type: object + types.MsgRevokeOrder: + properties: + order_id: + example: "0" + format: string representation for big.Uint + type: string + owner: + $ref: '#/definitions/types.AccAddress' + type: object + type: object + types.MsgSetWithdrawAddress: + properties: + delegator_address: + $ref: '#/definitions/types.AccAddress' + type: object + withdraw_address: + $ref: '#/definitions/types.AccAddress' + type: object + type: object + types.MsgUndelegate: + properties: + amount: + $ref: '#/definitions/types.Coin' + type: object + delegator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_address: + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.MsgWithdrawDelegatorReward: + properties: + delegator_address: + $ref: '#/definitions/types.AccAddress' + type: object + validator_address: + $ref: '#/definitions/types.ValAddress' + type: object + type: object + types.Oracle: + properties: + address: + description: Address + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.Oracles: + items: + $ref: '#/definitions/types.Oracle' + type: array + types.Order: + properties: + created_at: + description: Created timestamp + example: "2020-03-27T13:45:15.293426Z" + format: RFC 3339 + type: string + direction: + description: Order type (bid/ask) + example: bid + type: string + id: + description: Order unique ID + example: "0" + format: string representation for big.Uint + type: string + market: + description: Market order belong to + type: string + owner: + description: Order owner account address + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + price: + description: Order target price (in quote asset denom) + example: "100" + type: string + quantity: + description: Order target quantity + example: "50" + type: string + ttl_dur: + description: TimeToLive order auto-cancel period + example: 60 + type: integer + updated_at: + description: Updated timestamp + example: "2020-03-27T13:45:15.293426Z" + format: RFC 3339 + type: string + type: object + types.Orders: + items: + $ref: '#/definitions/types.Order' + type: array + types.Pool: + properties: + bonded_tokens: + description: Bonding tokens which are currently bonded to a validators + example: "50000" + format: integer + type: string + liquidity_tokens: + description: Liquidity tokens which are currently bonded to a validators + example: "10000" + format: integer + type: string + not_bonded_tokens: + description: Bonding tokens which are not bonded to a validators (unbonded + or unbonding) + example: "500" + format: integer + type: string + type: object + types.PostedPrice: + properties: + ask_price: + description: AskPrice + example: "1000" + type: string + asset_code: + description: Asset code + example: btc_xfi + type: string + bid_price: + description: BidPrice + example: "1000" + type: string + oracle_address: + description: Source oracle address + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + type: string + received_at: + description: UNIX Timestamp price receivedAt [sec] + example: "2020-03-27T13:45:15.293426Z" + format: RFC 3339 + type: string + type: object + types.QueryDelegationRewardsResponse: + properties: + reward: + $ref: '#/definitions/types.DelegationDelegatorReward' + description: Current rewards for a specific validator + type: object + type: object + types.QueryDelegatorTotalRewardsResponse: + properties: + rewards: + description: Current rewards for all delegated validators + items: + $ref: '#/definitions/types.DelegationDelegatorReward' + type: array + total: + $ref: '#/definitions/types.DecCoins' + description: All validators rewards accumulated on delegations modification + events (shares change, undelegation, redelegation) + type: object + type: object + types.RedelegationEntry: + properties: + completion_time: + description: Time at which the redelegation will complete + type: string + creation_height: + description: Height at which the redelegation took place + type: integer + initial_balance: + description: Initial balance when redelegation started + example: "100" + format: integer + type: string + op_type: + description: Operation type + example: bonding + type: string + shares_dst: + description: Amount of destination-validator shares created by redelegation + example: "0.1" + format: number + type: string + type: object + types.RedelegationEntryResponse: + properties: + balance: + format: integer + type: string + completion_time: + description: Time at which the redelegation will complete + type: string + creation_height: + description: Height at which the redelegation took place + type: integer + initial_balance: + description: Initial balance when redelegation started + example: "100" + format: integer + type: string + op_type: + description: Operation type + example: bonding + type: string + shares_dst: + description: Amount of destination-validator shares created by redelegation + example: "0.1" + format: number + type: string + type: object + types.RedelegationResponse: + properties: + delegator_address: + description: delegator + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + entries: + items: + $ref: '#/definitions/types.RedelegationEntryResponse' + type: array + validator_dst_address: + description: validator redelegation destination operator addr + example: walletval13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + validator_src_address: + description: validator redelegation source operator addr + example: walletval13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.SearchTxsResult: + properties: + count: + description: Count of txs in current page + type: integer + limit: + description: Max count txs per page + type: integer + page_number: + description: Index of current page, start from 1 + type: integer + page_total: + description: Count of total pages + type: integer + total_count: + description: Count of all txs + type: integer + txs: + description: List of txs in current page + items: + $ref: '#/definitions/types.TxResponse' + type: array + type: object + types.StdFee: + properties: + amount: + $ref: '#/definitions/types.Coins' + type: object + gas: + type: integer + type: object + types.StdSignature: + properties: + signature: + items: + type: integer + type: array + type: object + types.StdTx: + properties: + fee: + $ref: '#/definitions/types.StdFee' + type: object + memo: + type: string + msg: + items: + $ref: '#/definitions/types.Msg' + type: array + signatures: + items: + $ref: '#/definitions/types.StdSignature' + type: array + type: object + types.StringEvent: + properties: + attributes: + items: + $ref: '#/definitions/types.Attribute' + type: array + type: + type: string + type: object + types.StringEvents: + items: + $ref: '#/definitions/types.StringEvent' + type: array + types.Tx: + type: object + types.TxResponse: + properties: + code: + type: integer + codespace: + type: string + data: + type: string + gas_used: + type: integer + gas_wanted: + type: integer + height: + type: integer + info: + type: string + logs: + $ref: '#/definitions/types.ABCIMessageLogs' + type: object + raw_log: + type: string + timestamp: + type: string + tx: + $ref: '#/definitions/types.Tx' + type: object + txhash: + type: string + type: object + types.TxVMStatus: + properties: + hash: + type: string + vm_status: + $ref: '#/definitions/types.VMStatuses' + type: object + type: object + types.Uint: + type: object + types.UnbondingDelegation: + properties: + delegator_address: + description: delegator + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + entries: + description: unbonding delegation entries + items: + $ref: '#/definitions/types.UnbondingDelegationEntry' + type: array + validator_address: + description: validator unbonding from operator addr + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + type: object + types.UnbondingDelegationEntry: + properties: + balance: + description: Tokens to receive at completion + example: "1000" + format: integer + type: string + completion_time: + description: Time at which the unbonding delegation will complete + type: string + creation_height: + description: Height which the unbonding took place + type: integer + initial_balance: + description: Tokens initially scheduled to receive at completion + example: "1000" + format: integer + type: string + op_type: + description: Operation type + example: bonding + type: string + type: object + types.VMStatus: + properties: + major_code: + description: Major code + type: string + message: + description: Message + type: string + status: + description: 'Status of error: error/discard' + type: string + str_code: + description: Detailed explanation of code + type: string + sub_code: + description: Sub code + type: string + type: object + types.VMStatuses: + items: + $ref: '#/definitions/types.VMStatus' + type: array + types.ValAddress: + items: + type: integer + type: array + types.Validator: + properties: + bonding: + $ref: '#/definitions/types.ValidatorTokens' + description: Delegated bonding tokens (incl. self-delegation) + type: object + commission: + $ref: '#/definitions/types.Commission' + description: Commission parameters + type: object + consensus_pubkey: + description: Consensus public key of the validator; bech encoded in JSON + type: string + description: + $ref: '#/definitions/types.Description' + description: Description terms for the validator + type: object + jailed: + description: Has the validator been jailed from bonded status? + type: boolean + lp: + $ref: '#/definitions/types.ValidatorTokens' + description: Delegated liquidity tokens + type: object + min_self_delegation: + description: Validator's self declared minimum self delegation + example: "1000" + format: integer + type: string + operator_address: + description: Address of the validator's operator; bech encoded in JSON + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + scheduled_to_unbond: + description: Has the validator been scheduled to force unbond due to low SelfStake + amount compared to TotalDelegationsAmount + type: boolean + scheduled_unbond_height: + description: If ScheduledToUnbond, height at which this schedule started + type: integer + scheduled_unbond_time: + description: Is ScheduledToUnbond, min time for the validator to begin force + unbond + type: string + status: + description: Validator status (bonded/unbonding/unbonded) + example: bonded + type: string + unbonding_height: + description: If unbonding, height at which this validator has begun unbonding + type: integer + unbonding_time: + description: If unbonding, min time for the validator to complete unbonding + type: string + type: object + types.ValidatorResp: + properties: + bonding_delegator_shares: + description: 'Bondable tokens: total shares issued to a validator''s delegators' + example: "0.123" + format: number + type: string + bonding_distribution_power: + description: Bonding tokens rewards distribution power + type: integer + bonding_tokens: + description: 'Bondable tokens: delegated tokens (incl. self-delegation)' + example: "100" + format: integer + type: string + commission: + description: Commission parameters + type: string + consensus_pubkey: + description: Consensus public key of the validator; bech encoded in JSON + type: string + description: + description: Description terms for the validator + type: string + jailed: + description: Has the validator been jailed from bonded status? + type: boolean + lp_delegator_shares: + description: 'Liquidity tokens: total shares issued to a validator''s delegators' + example: "0.123" + format: number + type: string + lp_distribution_power: + description: LP tokens rewards distribution power + type: integer + lp_tokens: + description: 'Liquidity tokens: delegated tokens' + example: "100" + format: integer + type: string + max_bonding_delegations_lvl: + description: Max bonding delegations level + example: "1000" + format: integer + type: string + min_self_delegation: + description: Validator's self declared minimum self delegation + example: "1000" + format: integer + type: string + operator_address: + description: Address of the validator's operator; bech encoded in JSON + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + rewards_locked: + description: Rewards locked flag + type: boolean + rewards_unlock_time: + description: Rewards unlock time (if locked) + type: string + scheduled_to_unbond: + description: Has the validator been scheduled to force unbond due to low SelfStake + amount compared to TotalDelegationsAmount + type: boolean + scheduled_unbond_height: + description: If ScheduledToUnbond, height at which this schedule started + type: integer + scheduled_unbond_time: + description: Is ScheduledToUnbond, min time for the validator to begin force + unbond + type: string + status: + description: Validator status (bonded/unbonding/unbonded) + example: bonded + type: string + unbonding_height: + description: If unbonding, height at which this validator has begun unbonding + type: integer + unbonding_time: + description: If unbonding, min time for the validator to complete unbonding + type: string + type: object + types.ValidatorTokens: + properties: + delegator_shares: + description: Total shares issued to a validator's delegators + example: "0.123" + format: number + type: string + tokens: + description: Delegated tokens (incl. self-delegation for bonding tokens) + example: "100" + format: integer + type: string + type: object + types.Validators: + items: + $ref: '#/definitions/types.Validator' + type: array + types.ValidatorsConfirmationsResp: + properties: + confirmations: + description: Minimum number of confirmations needed to approve Call + example: 3 + type: integer + validators: + $ref: '#/definitions/types.Validators' + description: Registered validators list + type: object + type: object + types.ValueResp: + properties: + value: + format: HEX string + type: string + type: object + types.Withdraw: + properties: + coin: + description: Target currency coin + example: 100xfi + type: string + id: + description: Withdraw unique ID + example: "0" + format: string representation for big.Uint + type: string + pegzone_chain_id: + description: 'Second blockchain: ID' + example: testnet + type: string + pegzone_spender: + description: 'Second blockchain: spender account' + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + spender: + description: Target account for reducing coin balance + example: wallet13jyjuz3kkdvqw8u4qfkwd94emdl3vx394kn07h + format: bech32 + type: string + timestamp: + description: Tx UNIX time [s] + example: 1585295757 + format: seconds + type: integer + tx_hash: + description: Tx hash + example: fd82ce32835dfd7042808eaf6ff09cece952b9da20460fa462420a93607fa96f + type: string + type: object + types.Withdraws: + items: + $ref: '#/definitions/types.Withdraw' + type: array + vm_client.CompiledItem: + properties: + code: + type: string + code_type: + type: string + methods: + items: + $ref: '#/definitions/vm_client.ModuleMethod' + type: array + name: + type: string + types: + items: + $ref: '#/definitions/vm_client.ModuleType' + type: array + type: object + vm_client.CompiledItems: + items: + $ref: '#/definitions/vm_client.CompiledItem' + type: array + vm_client.ModuleMethod: + properties: + arguments: + items: + type: string + type: array + name: + type: string + native: + type: boolean + public: + type: boolean + returns: + items: + type: string + type: array + type_parameters: + items: + type: string + type: array + type: object + vm_client.ModuleType: + properties: + name: + type: string + properties: + items: + $ref: '#/definitions/vm_client.ModuleTypeField' + type: array + resource: + type: boolean + type_parameters: + items: + type: string + type: array + type: object + vm_client.ModuleTypeField: + properties: + name: + type: string + type: + type: string + type: object +host: stargate.cosmos.network +info: + contact: {} + description: A REST interface for state queries, transaction generation and broadcasting. + license: {} + title: Gaia-Lite for Cosmos + version: "3.0" +paths: + /auth/accounts/{address}: + get: + parameters: + - description: Account address + in: path + name: address + required: true + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + produces: + - application/json + responses: + "200": + description: Account information on the blockchain + schema: + properties: + type: + type: string + value: + properties: + account_number: + type: string + address: + type: string + coins: + items: + $ref: '#/definitions/Coin' + type: array + public_key: + $ref: '#/definitions/PublicKey' + sequence: + type: string + type: object + type: object + "500": + description: Server internel error + summary: Get the account information on blockchain + tags: + - Auth + /bank/accounts/{address}/transfers: + post: + consumes: + - application/json + parameters: + - description: Account address in bech32 format + in: path + name: address + required: true + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + - description: The sender and tx information + in: body + name: account + required: true + schema: + properties: + amount: + items: + $ref: '#/definitions/Coin' + type: array + base_req: + $ref: '#/definitions/BaseReq' + type: object + produces: + - application/json + responses: + "202": + description: Tx was succesfully generated + schema: + $ref: '#/definitions/StdTx' + "400": + description: Invalid request + "500": + description: Server internal error + summary: Send coins from one account to another + tags: + - Bank + /bank/balances/{address}: + get: + parameters: + - description: Account address in bech32 format + in: path + name: address + required: true + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + produces: + - application/json + responses: + "200": + description: Account balances + schema: + items: + $ref: '#/definitions/Coin' + type: array + "500": + description: Server internal error + summary: Get the account balances + tags: + - Bank + /blocks/{height}: + get: + parameters: + - description: Block height + in: path + name: height + required: true + type: number + x-example: 1 + produces: + - application/json + responses: + "200": + description: The block at a specific height + schema: + $ref: '#/definitions/BlockQuery' + "400": + description: Invalid height + "404": + description: Request block height doesn't + "500": + description: Server internal error + summary: Get a block at a certain height + tags: + - Tendermint RPC + /blocks/latest: + get: + produces: + - application/json + responses: + "200": + description: The latest block + schema: + $ref: '#/definitions/BlockQuery' + "500": + description: Server internal error + summary: Get the latest block + tags: + - Tendermint RPC + /currencies: + get: + consumes: + - application/json + operationId: currenciesGetCurrencies + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespGetCurrencies' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get all registered currencies + tags: + - Currencies + /currencies/currency/{denom}: + get: + consumes: + - application/json + description: Get currency by denom + operationId: currenciesGetCurrency + parameters: + - description: currency denomination symbol + in: path + name: denom + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespGetCurrency' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get currency + tags: + - Currencies + /currencies/issue: + put: + consumes: + - application/json + description: Get submit new issue multi signature message stdTx object + operationId: currenciesSubmitUnstake + parameters: + - description: Submit issue request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.SubmitIssueReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Submit issue + tags: + - Currencies + /currencies/issue/{issueID}: + get: + consumes: + - application/json + description: Get currency issue by issueID + operationId: currenciesGetIssue + parameters: + - description: issueID + in: path + name: issueID + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespGetIssue' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get currency issue + tags: + - Currencies + /currencies/unstake: + put: + consumes: + - application/json + description: Get new unstake multi signature message stdTx object + operationId: currenciesSubmitIssue + parameters: + - description: Submit unstake request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.UnstakeReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Unstake tx + tags: + - Currencies + /currencies/withdraw: + put: + consumes: + - application/json + description: Get withdraw currency coins from account balance stdTx object + operationId: currenciesWithdraw + parameters: + - description: Withdraw request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.WithdrawReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Withdraw currency + tags: + - Currencies + /currencies/withdraw/{withdrawID}: + get: + consumes: + - application/json + description: Get currency withdraw by withdrawID + operationId: currenciesGetWithdraw + parameters: + - description: withdrawID + in: path + name: withdrawID + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespGetWithdraw' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get currency withdraw + tags: + - Currencies + /currencies/withdraws: + get: + consumes: + - application/json + description: Get array of Withdraw objects with pagination + operationId: currenciesGetWithdraws + parameters: + - description: 'page number (first page: 1)' + in: query + name: page + type: integer + - description: 'items per page (default: 100)' + in: query + name: limit + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespGetWithdraws' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get currency withdraws + tags: + - Currencies + /distribution/community_pool: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/Coin' + type: array + "500": + description: Internal Server Error + summary: Community pool parameters + tags: + - Distribution + /distribution/delegators/{delegatorAddr}/rewards: + get: + consumes: + - application/json + description: Get the sum of all the rewards earned by delegations by a single + delegator + operationId: distributionGetDelegatorRewards + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDelegatorRewardsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the total rewards balance from all delegations + tags: + - Distribution + post: + consumes: + - application/json + description: Withdraw all the delegator's delegation rewards + operationId: distributionPostWithdrawDelegatorRewards + parameters: + - description: WithdrawRewardsReq request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.withdrawRewardsReq' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxWithdrawDelegatorReward' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Withdraw all the delegator's delegation rewards + tags: + - Distribution + /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}: + get: + consumes: + - application/json + description: Query a single delegation reward by a delegator + operationId: distributionGetDelegationRewards + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDelegationRewardsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query a delegation reward + tags: + - Distribution + post: + consumes: + - application/json + description: Withdraw a delegator's delegation reward from a single validator + operationId: distributionPostWithdrawDelegationRewards + parameters: + - description: WithdrawRewardsReq request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.withdrawRewardsReq' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxWithdrawDelegatorReward' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Withdraw a delegation reward + tags: + - Distribution + /distribution/delegators/{delegatorAddr}/withdraw_address: + get: + consumes: + - application/json + description: Get the delegations' rewards withdrawal address. This is the address + in which the user will receive the reward funds + operationId: distributionGetDelegatorWithdrawalAddr + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryAddressResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the rewards withdrawal address + tags: + - Distribution + post: + consumes: + - application/json + description: Withdraw a delegator's delegation reward from a single validator + operationId: distributionPostSetDelegatorWithdrawalAddr + parameters: + - description: SetWithdrawalAddrReq request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.setWithdrawalAddrReq' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxSetWithdrawAddress' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Withdraw a delegation reward + tags: + - Distribution + /distribution/parameters: + get: + consumes: + - application/json + description: Fee distribution parameters + operationId: distributionGetParams + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryParamsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Fee distribution parameters + tags: + - Distribution + /distribution/pool/{poolName}: + get: + consumes: + - application/json + description: Get the amount held in the specified pool + operationId: distributionPool + parameters: + - description: 'PoolName: LiquidityProvidersPool, FoundationPool, PublicTreasuryPool, + HARP' + in: path + name: poolName + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDecCoinsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the amount held in the specified pool + tags: + - Distribution + /distribution/public_treasury_pool: + post: + consumes: + - application/json + description: Fund the public treasury pool + operationId: distributionPostFundPublicTreasuryPool + parameters: + - description: FundPublicTreasuryPoolReq request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.fundPublicTreasuryPoolReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxFundPublicTreasuryPool' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Fund the public treasury pool + tags: + - Distribution + /distribution/validator_extended/{validatorAddr}: + get: + consumes: + - application/json + description: Query the extended information from a single validator containing + distribution params + operationId: distributionValidatorExtended + parameters: + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryExtendedValidatorResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query the extended information from a single validator + tags: + - Distribution + /distribution/validators/{validatorAddr}: + get: + consumes: + - application/json + description: Query the distribution information of a single validator + operationId: distributionGetValidatorInfo + parameters: + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QuerySwaggerValidatorDistInfoResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Validator distribution information + tags: + - Distribution + /distribution/validators/{validatorAddr}/outstanding_rewards: + get: + consumes: + - application/json + description: Fee distribution outstanding rewards of a single validator + operationId: distributionOutstandingRewards + parameters: + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDecCoinsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Fee distribution outstanding rewards of a single validator + tags: + - Distribution + /distribution/validators/{validatorAddr}/rewards: + get: + consumes: + - application/json + description: Query the commission and self-delegation rewards of validator + operationId: distributionGetValidatorRewards + parameters: + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDecCoinsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Commission and self-delegation rewards of a single validator + tags: + - Distribution + post: + consumes: + - application/json + description: Withdraw the validator's self-delegation and commissions rewards + operationId: distributionPostWithdrawValidatorRewards + parameters: + - description: WithdrawRewardsReq request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.withdrawRewardsReq' + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/types.StdTx' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Withdraw the validator's rewards + tags: + - Distribution + /distribution/validators_extended: + get: + consumes: + - application/json + description: Query the extended information from multiple validators containing + distribution params + operationId: distributionValidatorsExtended + parameters: + - description: The validator bond status. Must be either 'bonded', 'unbonded', + or 'unbonding' + in: query + name: status + type: string + - description: The page number + in: query + name: page + type: string + - description: The maximum number of items per page + in: query + name: limit + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryExtendedValidatorsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query the extended information from multiple validators + tags: + - Distribution + /gov/parameters/deposit: + get: + description: Query governance deposit parameters. The max_deposit_period units + are in nanoseconds. + produces: + - application/json + responses: + "200": + description: OK + schema: + properties: + max_deposit_period: + example: "86400000000000" + type: string + min_deposit: + items: + $ref: '#/definitions/Coin' + type: array + type: object + "400": + description: is not a valid query request path + "404": + description: Found no deposit parameters + "500": + description: Internal Server Error + summary: Query governance deposit parameters + tags: + - Governance + /gov/parameters/tallying: + get: + description: Query governance tally parameters + produces: + - application/json + responses: + "200": + description: OK + schema: + properties: + governance_penalty: + example: "0.0100000000" + type: string + threshold: + example: "0.5000000000" + type: string + veto: + example: "0.3340000000" + type: string + "400": + description: is not a valid query request path + "404": + description: Found no tally parameters + "500": + description: Internal Server Error + summary: Query governance tally parameters + tags: + - Governance + /gov/parameters/voting: + get: + description: Query governance voting parameters. The voting_period units are + in nanoseconds. + produces: + - application/json + responses: + "200": + description: OK + schema: + properties: + voting_period: + example: "86400000000000" + type: string + "400": + description: is not a valid query request path + "404": + description: Found no voting parameters + "500": + description: Internal Server Error + summary: Query governance voting parameters + tags: + - Governance + /gov/proposals: + get: + description: Query proposals information with parameters + parameters: + - description: voter address + in: query + name: voter + required: false + type: string + - description: depositor address + in: query + name: depositor + required: false + type: string + - description: proposal status, valid values can be `"deposit_period"`, `"voting_period"`, + `"passed"`, `"rejected"` + in: query + name: status + required: false + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/TextProposal' + type: array + "400": + description: Invalid query parameters + "500": + description: Internal Server Error + summary: Query proposals + tags: + - Governance + post: + consumes: + - application/json + description: Send transaction to submit a proposal + parameters: + - description: valid value of `"proposal_type"` can be `"text"`, `"parameter_change"`, + `"software_upgrade"` + in: body + name: post_proposal_body + required: true + schema: + properties: + base_req: + $ref: '#/definitions/BaseReq' + description: + type: string + initial_deposit: + items: + $ref: '#/definitions/Coin' + type: array + proposal_type: + example: text + type: string + proposer: + $ref: '#/definitions/Address' + title: + type: string + type: object + produces: + - application/json + responses: + "200": + description: Tx was succesfully generated + schema: + $ref: '#/definitions/StdTx' + "400": + description: Invalid proposal body + "500": + description: Internal Server Error + summary: Submit a proposal + tags: + - Governance + /gov/proposals/{proposalId}: + get: + description: Query a proposal by id + parameters: + - in: path + name: proposalId + required: true + type: string + x-example: "2" + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/TextProposal' + "400": + description: Invalid proposal id + "500": + description: Internal Server Error + summary: Query a proposal + tags: + - Governance + /gov/proposals/{proposalId}/deposits: + get: + description: Query deposits by proposalId + parameters: + - in: path + name: proposalId + required: true + type: string + x-example: "2" + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/Deposit' + type: array + "400": + description: Invalid proposal id + "500": + description: Internal Server Error + summary: Query deposits + tags: + - Governance + post: + consumes: + - application/json + description: Send transaction to deposit tokens to a proposal + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + - description: "" + in: body + name: post_deposit_body + required: true + schema: + properties: + amount: + items: + $ref: '#/definitions/Coin' + type: array + base_req: + $ref: '#/definitions/BaseReq' + depositor: + $ref: '#/definitions/Address' + type: object + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/BroadcastTxCommitResult' + "400": + description: Invalid proposal id or deposit body + "401": + description: Key password is wrong + "500": + description: Internal Server Error + summary: Deposit tokens to a proposal + tags: + - Governance + /gov/proposals/{proposalId}/deposits/{depositor}: + get: + description: Query deposit by proposalId and depositor address + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + - description: Bech32 depositor address + in: path + name: depositor + required: true + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Deposit' + "400": + description: Invalid proposal id or depositor address + "404": + description: Found no deposit + "500": + description: Internal Server Error + summary: Query deposit + tags: + - Governance + /gov/proposals/{proposalId}/proposer: + get: + description: Query for the proposer for a proposal + parameters: + - in: path + name: proposalId + required: true + type: string + x-example: "2" + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Proposer' + "400": + description: Invalid proposal ID + "500": + description: Internal Server Error + summary: Query proposer + tags: + - Governance + /gov/proposals/{proposalId}/tally: + get: + description: Gets a proposal's tally result at the current time. If the proposal + is pending deposits (i.e status 'DepositPeriod') it returns an empty tally + result. + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/TallyResult' + "400": + description: Invalid proposal id + "500": + description: Internal Server Error + summary: Get a proposal's tally result at the current time + tags: + - Governance + /gov/proposals/{proposalId}/votes: + get: + description: Query voters information by proposalId + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/Vote' + type: array + "400": + description: Invalid proposal id + "500": + description: Internal Server Error + summary: Query voters + tags: + - Governance + post: + consumes: + - application/json + description: Send transaction to vote a proposal + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + - description: valid value of `"option"` field can be `"yes"`, `"no"`, `"no_with_veto"` + and `"abstain"` + in: body + name: post_vote_body + required: true + schema: + properties: + base_req: + $ref: '#/definitions/BaseReq' + option: + example: "yes" + type: string + voter: + $ref: '#/definitions/Address' + type: object + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/BroadcastTxCommitResult' + "400": + description: Invalid proposal id or vote body + "401": + description: Key password is wrong + "500": + description: Internal Server Error + summary: Vote a proposal + tags: + - Governance + /gov/proposals/{proposalId}/votes/{voter}: + get: + description: Query vote information by proposal Id and voter address + parameters: + - description: proposal id + in: path + name: proposalId + required: true + type: string + x-example: "2" + - description: Bech32 voter address + in: path + name: voter + required: true + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Vote' + "400": + description: Invalid proposal id or voter address + "404": + description: Found no vote + "500": + description: Internal Server Error + summary: Query vote + tags: + - Governance + /gov/proposals/param_change: + post: + consumes: + - application/json + description: Generate a parameter change proposal transaction + parameters: + - description: The parameter change proposal body that contains all parameter + changes + in: body + name: post_proposal_body + required: true + schema: + properties: + base_req: + $ref: '#/definitions/BaseReq' + changes: + items: + $ref: '#/definitions/ParamChange' + type: array + deposit: + items: + $ref: '#/definitions/Coin' + type: array + description: + type: string + x-example: Update max validators + proposer: + $ref: '#/definitions/Address' + title: + type: string + x-example: Param Change + type: object + produces: + - application/json + responses: + "200": + description: The transaction was succesfully generated + schema: + $ref: '#/definitions/StdTx' + "400": + description: Invalid proposal body + "500": + description: Internal Server Error + summary: Generate a parameter change proposal transaction + tags: + - Governance + /markets: + get: + consumes: + - application/json + description: Get array of Market objects with pagination and filters + operationId: marketsGetMarketsWithParams + parameters: + - description: 'page number (first page: 1)' + in: query + name: page + type: integer + - description: 'items per page (default: 100)' + in: query + name: limit + type: integer + - description: BaseAsset denom filter + in: query + name: baseAssetDenom + type: string + - description: QuoteAsset denom filter + in: query + name: quoteAssetDenom + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.MarketsRespGetMarkets' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get markets + tags: + - Markets + /markets/{marketID}: + get: + consumes: + - application/json + description: Get Market object by marketID + operationId: marketsGetMarket + parameters: + - description: marketID + in: path + name: marketID + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.MarketsRespGetMarket' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get market + tags: + - Markets + /minting/annual-provisions: + get: + consumes: + - application/json + description: Current minting annual provisions value + operationId: mintingGetAnnualProvisions + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDecResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Current minting annual provisions value + tags: + - Mint + /minting/inflation: + get: + consumes: + - application/json + description: Current minting inflation value + operationId: mintingGetInflation + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDecResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Current minting inflation value + tags: + - Mint + /minting/minter-extended: + get: + consumes: + - application/json + description: Current minting extended state + operationId: mintingGetExtendedState + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryMinterExtendedResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Current minting extended state + tags: + - Mint + /minting/parameters: + get: + consumes: + - application/json + description: Minting module parameters + operationId: mintingGetParams + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryParamsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Minting module parameters + tags: + - Mint + /multisig/call/{callID}: + get: + consumes: + - application/json + description: Get call object by it's ID + operationId: multisigGetCall + parameters: + - description: callID + in: path + name: callID + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.MSRespGetCall' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get call + tags: + - Multisig + /multisig/calls: + get: + consumes: + - application/json + description: Get active call objects + operationId: multisigGetCalls + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.MSRespGetCalls' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get active calls + tags: + - Multisig + /multisig/confirm: + put: + consumes: + - application/json + description: Get confirm multi signature call by PoA validator stdTx object + operationId: multisigConfirm + parameters: + - description: Confirm request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.ConfirmReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Confirm call + tags: + - Multisig + /multisig/revoke: + put: + consumes: + - application/json + description: Get revoke multi signature call vote by PoA validator stdTx object + operationId: multisigRevoke + parameters: + - description: Revoke request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.RevokeReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.CCRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Revoke call + tags: + - Multisig + /multisig/unique/{uniqueID}: + get: + consumes: + - application/json + description: Get call object by it's uniqueID + operationId: multisigGetUniqueCall + parameters: + - description: call uniqueID + in: path + name: uniqueID + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.MSRespGetCall' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get call + tags: + - Multisig + /node_info: + get: + description: Information about the connected node + produces: + - application/json + responses: + "200": + description: Node status + schema: + properties: + application_version: + properties: + build_tags: + type: string + client_name: + type: string + commit: + type: string + go: + type: string + name: + type: string + server_name: + type: string + version: + type: string + node_info: + properties: + channels: + type: string + id: + type: string + listen_addr: + example: 192.168.56.1:26656 + type: string + moniker: + example: validator-name + type: string + network: + example: gaia-2 + type: string + other: + description: more information on versions + properties: + rpc_address: + example: tcp://0.0.0.0:26657 + type: string + tx_index: + example: true + type: string + type: object + protocol_version: + properties: + app: + example: 0 + type: string + block: + example: 10 + type: string + p2p: + example: 7 + type: string + version: + description: Tendermint version + example: 0.15.0 + type: string + type: object + "500": + description: Failed to query node status + summary: The properties of the connected node + tags: + - Tendermint RPC + /oracle/assets: + get: + consumes: + - application/json + description: Get asset objects + operationId: oracleGetAssets + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OracleRespGetAssets' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "404": + description: Returned if requested data wasn't found + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get assets + tags: + - Oracle + /oracle/currentprice/{assetCode}: + get: + consumes: + - application/json + description: Get current Price by assetCode + operationId: oracleGetCurrentPrice + parameters: + - description: asset code + in: path + name: assetCode + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OracleRespGetPrice' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "404": + description: Returned if requested data wasn't found + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get current Price + tags: + - Oracle + /oracle/rawprices: + put: + consumes: + - application/json + description: Send asset rawPrice signed Tx + operationId: oraclePostPrice + parameters: + - description: PostPrice request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.PostPriceReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OracleRespGetAssets' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Post asset rawPrice + tags: + - Oracle + /oracle/rawprices/{assetCode}/{blockHeight}: + get: + consumes: + - application/json + description: Get rawPrice objects by assetCode and blockHeight + operationId: oracleGetRawPrices + parameters: + - description: asset code + in: path + name: assetCode + required: true + type: string + - description: block height rawPrices relates to + in: path + name: blockHeight + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OracleRespGetRawPrices' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "404": + description: Returned if requested data wasn't found + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get rawPrices + tags: + - Oracle + /orders: + get: + consumes: + - application/json + description: Get array of Order objects with pagination and filters + operationId: ordersGetOrdersWithParams + parameters: + - description: 'page number (first page: 1)' + in: query + name: page + type: integer + - description: 'items per page (default: 100)' + in: query + name: limit + type: integer + - description: owner filter + in: query + name: owner + type: string + - description: direction filter (bid/ask) + in: query + name: direction + type: string + - description: marketID filter (bid/ask) + in: query + name: marketID + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OrdersRespGetOrders' + "400": + description: Returned if the request doesn't have valid query/path params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get orders + tags: + - Orders + /orders/{orderID}: + get: + consumes: + - application/json + description: Get Order object by orderID + operationId: ordersGetOrder + parameters: + - description: orderID + in: path + name: orderID + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OrdersRespGetOrder' + "400": + description: Returned if the request doesn't have valid query/path params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get order + tags: + - Orders + /orders/post: + put: + consumes: + - application/json + description: Post new order + operationId: ordersPostOrder + parameters: + - description: PostOrder request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.PostOrderReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OrdersRespPostOrder' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Post new order + tags: + - Orders + /orders/revoke: + put: + consumes: + - application/json + description: Revoke order + operationId: ordersRevokeOrder + parameters: + - description: RevokeOrder request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.RevokeOrderReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.OrdersRespRevokeOrder' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Revoke order + tags: + - Orders + /poa/validators: + get: + consumes: + - application/json + description: Get validator objects and required confirmations count + operationId: poaValidators + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.PoaRespGetValidators' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get validators + tags: + - PoA + /slashing/parameters: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + properties: + double_sign_unbond_duration: + type: string + downtime_unbond_duration: + type: string + max_evidence_age: + type: string + min_signed_per_window: + type: string + signed_blocks_window: + type: string + slash_fraction_double_sign: + type: string + slash_fraction_downtime: + type: string + type: object + "500": + description: Internal Server Error + summary: Get the current slashing parameters + tags: + - Slashing + /slashing/signing_infos: + get: + description: Get sign info of all validators + parameters: + - description: Page number + in: query + name: page + required: true + type: integer + x-example: 1 + - description: Maximum number of items per page + in: query + name: limit + required: true + type: integer + x-example: 5 + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/SigningInfo' + type: array + "400": + description: Invalid validator public key for one of the validators + "500": + description: Internal Server Error + summary: Get sign info of given all validators + tags: + - Slashing + /slashing/validators/{validatorAddr}/unjail: + post: + consumes: + - application/json + description: Send transaction to unjail a jailed validator + parameters: + - description: Bech32 validator address + in: path + name: validatorAddr + required: true + type: string + x-example: cosmosvaloper16xyempempp92x9hyzz9wrgf94r6j9h5f2w4n2l + - description: "" + in: body + name: UnjailBody + required: true + schema: + properties: + base_req: + $ref: '#/definitions/StdTx' + type: object + produces: + - application/json + responses: + "200": + description: Tx was succesfully generated + schema: + $ref: '#/definitions/BroadcastTxCommitResult' + "400": + description: Invalid validator address or base_req + "500": + description: Internal Server Error + summary: Unjail a jailed validator + tags: + - Slashing + /staking/delegators/{delegatorAddr}/delegations: + get: + consumes: + - application/json + description: Get all delegations from a delegator + operationId: stakingGetDelegatorDelegations + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDelegationsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get all delegations from a delegator + tags: + - Staking + post: + consumes: + - application/json + description: Submit delegation + operationId: stakingPostDelegatorDelegations + parameters: + - description: DelegateRequest request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.DelegateRequest' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/types.MsgDelegate' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Submit delegation + tags: + - Staking + /staking/delegators/{delegatorAddr}/delegations/{validatorAddr}: + get: + consumes: + - application/json + description: Query the current delegation between a delegator and a validator + operationId: stakingGetDelegaton + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDelegationResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query the current delegation between a delegator and a validator + tags: + - Staking + /staking/delegators/{delegatorAddr}/redelegations: + post: + consumes: + - application/json + description: Submit a redelegation + operationId: stakingPostRedelegations + parameters: + - description: RedelegateRequest request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.RedelegateRequest' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxBeginRedelegate' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Submit a redelegation + tags: + - Staking + /staking/delegators/{delegatorAddr}/txs: + get: + consumes: + - application/json + description: Query all staking txs (msgs) from a delegator + operationId: stakingGetDelegatorTxs + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: 'Unbonding types via space: bond unbond redelegate' + in: query + name: type + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/types.SearchTxsResult' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query all staking txs (msgs) from a delegator + tags: + - Staking + /staking/delegators/{delegatorAddr}/unbonding_delegations: + get: + consumes: + - application/json + description: Get all unbonding delegations from a delegator + operationId: stakingGetDelegatorUnbondingDelegations + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryUnbondingDelegationsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get all unbonding delegations from a delegator + tags: + - Staking + post: + consumes: + - application/json + description: Submit an unbonding delegation + operationId: stakingPostUnbondingDelegations + parameters: + - description: RedelegateRequest request with signed transaction + in: body + name: postRequest + required: true + schema: + $ref: '#/definitions/rest.UndelegateRequest' + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/rest.TxUndelegate' + type: array + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Submit an unbonding delegation + tags: + - Staking + /staking/delegators/{delegatorAddr}/unbonding_delegations/{validatorAddr}: + get: + consumes: + - application/json + description: Query all unbonding delegations between a delegator and a validator + operationId: stakingGetUnbondingDelegation + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: Bech32 OperatorAddress of validator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryUnbondingDelegationResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query all unbonding delegations between a delegator and a validator + tags: + - Staking + /staking/delegators/{delegatorAddr}/validators: + get: + consumes: + - application/json + description: Query all validators that a delegator is bonded to + operationId: stakingGetDelegatorValidators + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryValidatorsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query all validators that a delegator is bonded to + tags: + - Staking + /staking/delegators/{delegatorAddr}/validators/{validatorAddr}: + get: + consumes: + - application/json + description: Query a validator that a delegator is bonded to + operationId: stakingGetDelegatorValidator + parameters: + - description: Bech32 AccAddress of Delegator + in: path + name: delegatorAddr + required: true + type: string + - description: Bech32 ValAddress of Delegator + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryValidatorResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query a validator that a delegator is bonded to + tags: + - Staking + /staking/historical_info/{height}: + get: + consumes: + - application/json + description: Query historical info at a given height + operationId: stakingGetHistoricalInfo + parameters: + - description: block height + in: path + name: height + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryHistoricalInfoResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query historical info at a given height + tags: + - Staking + /staking/parameters: + get: + consumes: + - application/json + description: Get the current staking parameter values + operationId: stakingGetParams + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryParamsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the current staking parameter values + tags: + - Staking + /staking/pool: + get: + consumes: + - application/json + description: Get the current state of the staking pool + operationId: stakingGetPool + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryPoolResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the current state of the staking pool + tags: + - Staking + /staking/redelegations: + get: + consumes: + - application/json + description: Get all redelegations (filter by query params) + operationId: stakingGetRedelegations + parameters: + - description: Bech32 AccAddress of Delegator + in: query + name: delegator + type: string + - description: Bech32 AccAddress of SrcValidator + in: query + name: validator_from + type: string + - description: Bech32 AccAddress of DstValidator + in: query + name: validator_to + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryRedelegationsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get all redelegations (filter by query params) + tags: + - Staking + /staking/validators: + get: + consumes: + - application/json + description: Get all validator candidates. By default it returns only the bonded + validators + operationId: stakingGetValidators + parameters: + - description: The validator bond status. Must be either 'bonded', 'unbonded', + or 'unbonding' + in: query + name: status + type: string + - description: The page number + in: query + name: page + type: string + - description: The maximum number of items per page + in: query + name: limit + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryValidatorsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get all validator candidates. By default it returns only the bonded + validators + tags: + - Staking + /staking/validators/{validatorAddr}: + get: + consumes: + - application/json + description: Query the information from a single validator + operationId: stakingGetValidator + parameters: + - description: Bech32 ValAddress + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryValidatorResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Query the information from a single validator + tags: + - Staking + /staking/validators/{validatorAddr}/delegations: + get: + consumes: + - application/json + description: Get the current delegations for the validator + operationId: stakingGetValidatorDelegations + parameters: + - description: Bech32 ValAddress + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryDelegationsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the current delegations for the validator + tags: + - Staking + /staking/validators/{validatorAddr}/unbonding_delegations: + get: + consumes: + - application/json + description: Get the current unbonding information for the validator + operationId: stakingGetValidatorUnbondingDelegation + parameters: + - description: Bech32 ValAddress + in: path + name: validatorAddr + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.QueryUnbondingDelegationsResp' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get the current unbonding information for the validator + tags: + - Staking + /supply/total: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Supply' + "500": + description: Internal Server Error + summary: Total supply of coins in the chain + tags: + - Supply + /supply/total/{denomination}: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + type: string + "400": + description: Invalid coin denomination + "500": + description: Internal Server Error + summary: Total supply of a single coin denomination + tags: + - Supply + parameters: + - description: Coin denomination + in: path + name: denomination + required: true + type: string + x-example: uatom + /syncing: + get: + description: Get if the node is currently syning with other nodes + produces: + - application/json + responses: + "200": + description: Node syncing status + schema: + properties: + syncing: + type: boolean + type: object + "500": + description: Server internal error + summary: Syncing state of node + tags: + - Tendermint RPC + /txs: + get: + description: Search transactions by events. + parameters: + - description: 'transaction events such as ''message.action=send'' which results + in the following endpoint: ''GET /txs?message.action=send''. note that each + module documents its own events. look for xx_events.md in the corresponding + cosmos-sdk/docs/spec directory' + in: query + name: message.action + type: string + x-example: send + - description: 'transaction tags with sender: ''GET /txs?message.action=send&message.sender=cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv''' + in: query + name: message.sender + type: string + x-example: cosmos16xyempempp92x9hyzz9wrgf94r6j9h5f06pxxv + - description: Page number + in: query + name: page + type: integer + x-example: 1 + - description: Maximum number of items per page + in: query + name: limit + type: integer + x-example: 1 + - description: transactions on blocks with height greater or equal this value + in: query + name: tx.minheight + type: integer + x-example: 25 + - description: transactions on blocks with height less than or equal this value + in: query + name: tx.maxheight + type: integer + x-example: 800000 + produces: + - application/json + responses: + "200": + description: All txs matching the provided events + schema: + $ref: '#/definitions/PaginatedQueryTxs' + "400": + description: Invalid search events + "500": + description: Internal Server Error + summary: Search transactions + tags: + - Transactions + post: + consumes: + - application/json + description: Broadcast a signed tx to a full node + parameters: + - description: The tx must be a signed StdTx. The supported broadcast modes + include `"block"`(return after tx commit), `"sync"`(return afer CheckTx) + and `"async"`(return right away). + in: body + name: txBroadcast + required: true + schema: + properties: + mode: + example: block + type: string + tx: + $ref: '#/definitions/StdTx' + type: object + produces: + - application/json + responses: + "200": + description: Tx broadcasting result + schema: + $ref: '#/definitions/BroadcastTxCommitResult' + "500": + description: Internal Server Error + summary: Broadcast a signed tx + tags: + - Transactions + /txs/{hash}: + get: + description: Retrieve a transaction using its hash. + parameters: + - description: Tx hash + in: path + name: hash + required: true + type: string + x-example: BCBE20E8D46758B96AE5883B792858296AC06E51435490FBDCAE25A72B3CC76B + produces: + - application/json + responses: + "200": + description: Tx with the provided hash + schema: + $ref: '#/definitions/TxQuery' + "500": + description: Internal Server Error + summary: Get a Tx by hash + tags: + - Transactions + /txs/decode: + post: + consumes: + - application/json + description: Decode a transaction (signed or not) from base64-encoded Amino + serialized bytes to JSON + parameters: + - description: The tx to decode + in: body + name: tx + required: true + schema: + properties: + tx: + example: SvBiXe4KPqijYZoKFFHEzJ8c2HPAfv2EFUcIhx0yPagwEhTy0vPA+GGhCEslKXa4Af0uB+mfShoMCgVzdGFrZRIDMTAwEgQQwJoM + type: string + type: object + produces: + - application/json + responses: + "200": + description: The tx was successfully decoded + schema: + $ref: '#/definitions/StdTx' + "400": + description: The tx was malformated + "500": + description: Server internal error + summary: Decode a transaction from the Amino wire format + tags: + - Transactions + /txs/encode: + post: + consumes: + - application/json + description: Encode a transaction (signed or not) from JSON to base64-encoded + Amino serialized bytes + parameters: + - description: The tx to encode + in: body + name: tx + required: true + schema: + properties: + tx: + $ref: '#/definitions/StdTx' + type: object + produces: + - application/json + responses: + "200": + description: The tx was successfully decoded and re-encoded + schema: + properties: + tx: + example: The base64-encoded Amino-serialized bytes for the tx + type: string + type: object + "400": + description: The tx was malformated + "500": + description: Server internal error + summary: Encode a transaction to the Amino wire format + tags: + - Transactions + /validatorsets/{height}: + get: + parameters: + - description: Block height + in: path + name: height + required: true + type: number + x-example: 1 + produces: + - application/json + responses: + "200": + description: The validator set at a specific block height + schema: + properties: + block_height: + type: string + validators: + items: + $ref: '#/definitions/TendermintValidator' + type: array + type: object + "400": + description: Invalid height + "404": + description: Block at height not available + "500": + description: Server internal error + summary: Get a validator set a certain height + tags: + - Tendermint RPC + /validatorsets/latest: + get: + produces: + - application/json + responses: + "200": + description: The validator set at the latest block height + schema: + properties: + block_height: + type: string + validators: + items: + $ref: '#/definitions/TendermintValidator' + type: array + type: object + "500": + description: Server internal error + summary: Get the latest validator set + tags: + - Tendermint RPC + /vm/compile: + post: + consumes: + - application/json + description: Compile script / module code using VM and return byteCode + operationId: vmCompile + parameters: + - description: Code with metadata + in: body + name: getRequest + required: true + schema: + $ref: '#/definitions/rest.CompileReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmRespCompile' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get compiled byteCode + tags: + - VM + /vm/data/{accountAddr}/{vmPath}: + get: + consumes: + - application/json + description: Get writeSet data from VM by accountAddr and path + operationId: vmGetData + parameters: + - description: account address (Libra HEX Bech32) + in: path + name: accountAddr + required: true + type: string + - description: VM path (HEX string) + in: path + name: vmPath + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmData' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get writeSet data from VM + tags: + - VM + /vm/execute: + put: + consumes: + - application/json + description: Get execute Move script stdTx object + operationId: vmExecuteScript + parameters: + - description: Execute request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.ExecuteScriptReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Execute Move script + tags: + - VM + /vm/publish: + put: + consumes: + - application/json + description: Get publish Move module stdTx object + operationId: vmDeployModule + parameters: + - description: Publish request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.PublishModuleReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmRespStdTx' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Publish Move module + tags: + - VM + /vm/tx/{txHash}: + get: + consumes: + - application/json + description: Get TX VM execution status by hash + operationId: vmTxStatus + parameters: + - description: transaction hash + in: path + name: txHash + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmTxStatus' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "404": + description: Returned if the requested data wasn't found + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get TX VM execution status + tags: + - VM + /vm/view: + get: + consumes: + - application/json + description: Get writeSet data LCS string view for {address}::{moduleName}::{structName} + Move path" + operationId: lcsView + parameters: + - description: View request + in: body + name: request + required: true + schema: + $ref: '#/definitions/rest.LcsViewReq' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/rest.VmRespLcsView' + "400": + description: Returned if the request doesn't have valid query params + schema: + $ref: '#/definitions/rest.ErrorResponse' + "500": + description: Returned on server error + schema: + $ref: '#/definitions/rest.ErrorResponse' + summary: Get writeSet data from VM LCS string view + tags: + - VM +schemes: +- https +securityDefinitions: + kms: + type: basic +swagger: "2.0" +tags: +- description: Search, encode, or broadcast transactions. + name: Transactions +- description: Tendermint APIs, such as query blocks, transactions and validatorset + name: Tendermint RPC +- description: Authenticate accounts + name: Auth +- description: Create and broadcast transactions + name: Bank +- description: Stake module APIs + name: Staking +- description: Governance module APIs + name: Governance +- description: Slashing module APIs + name: Slashing +- description: Fee distribution module APIs + name: Distribution +- description: Supply module APIs + name: Supply +- name: version +- description: Minting module APIs + name: Mint +- description: Query app version + name: Misc diff --git a/cmd/dncli/main.go b/cmd/dncli/main.go index 3bf751f6..3c0a1e53 100644 --- a/cmd/dncli/main.go +++ b/cmd/dncli/main.go @@ -26,7 +26,6 @@ import ( "github.com/dfinance/dnode/cmd/config/genesis/defaults" "github.com/dfinance/dnode/cmd/config/restrictions" "github.com/dfinance/dnode/helpers/logger" - "github.com/dfinance/dnode/helpers/swagger" vmauthCli "github.com/dfinance/dnode/x/vmauth/client/cli" ) @@ -92,7 +91,6 @@ func registerRoutes(rs *lcd.RestServer) { client.RegisterRoutes(rs.CliCtx, rs.Mux) authrest.RegisterTxRoutes(rs.CliCtx, rs.Mux) app.ModuleBasics.RegisterRESTRoutes(rs.CliCtx, rs.Mux) - swagger.RegisterRESTRoute(rs.Mux) } // Add query subcommands to CLI. diff --git a/go.mod b/go.mod index 5e05bf0e..8d341175 100644 --- a/go.mod +++ b/go.mod @@ -10,36 +10,32 @@ replace github.com/cosmos/cosmos-sdk => github.com/dfinance/cosmos-sdk v0.39.2-0 // Fix of OS X hostmachine test runs // Source: https://github.com/ory/dockertest/issues/208 -replace ( - github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 - golang.org/x/sys => golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6 -) +replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 require ( github.com/99designs/keyring v1.1.6 github.com/OneOfOne/xxhash v1.2.7 github.com/atlassian/go-sentry-api v0.0.0-20200117001222-a9ccec16c98b - github.com/containerd/containerd v1.3.3 // indirect - github.com/containerd/continuity v0.0.0-20200228182428-0f16d7a0959c // indirect github.com/cosmos/cosmos-sdk v0.0.1 - github.com/dfinance/dvm-proto/go v0.0.0-20201101152441-59dc05d5febd + github.com/dfinance/dvm-proto/go v0.0.0-20201007122036-27be7297df4e github.com/dfinance/glav v0.0.0-20200814081332-c4701f6c12a6 github.com/dfinance/lcs v0.1.7-big - github.com/fsouza/go-dockerclient v1.6.3 + github.com/fsouza/go-dockerclient v1.6.6-0.20200910033347-214a51d9a1e5 + github.com/g3co/go-swagger-merger v0.0.0-20200916115803-70f050d0cb09 // indirect github.com/getsentry/sentry-go v0.5.1 github.com/ghodss/yaml v1.0.0 - github.com/go-openapi/spec v0.19.9 // indirect - github.com/go-openapi/swag v0.19.9 // indirect + github.com/go-openapi/spec v0.20.3 // indirect + github.com/go-openapi/swag v0.19.15 // indirect github.com/gogo/protobuf v1.3.1 github.com/gorilla/handlers v1.4.2 - github.com/gorilla/mux v1.7.4 + github.com/gorilla/mux v1.8.0 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect - github.com/mailru/easyjson v0.7.6 // indirect - github.com/morikuni/aec v1.0.0 // indirect + github.com/mailru/easyjson v0.7.7 // indirect github.com/olekukonko/tablewriter v0.0.4 github.com/pelletier/go-toml v1.6.0 github.com/pkg/errors v0.9.1 github.com/rakyll/statik v0.1.7 // indirect + github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/shopspring/decimal v1.2.0 github.com/spf13/afero v1.2.2 // indirect github.com/spf13/cobra v1.0.0 @@ -51,7 +47,11 @@ require ( github.com/tendermint/go-amino v0.15.1 github.com/tendermint/tendermint v0.33.7 github.com/tendermint/tm-db v0.5.1 - golang.org/x/tools v0.0.0-20201013053347-2db1cd791039 // indirect + github.com/urfave/cli/v2 v2.3.0 // indirect + golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect + golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 // indirect + golang.org/x/text v0.3.6 // indirect + golang.org/x/tools v0.1.0 // indirect google.golang.org/grpc v1.30.0 google.golang.org/protobuf v1.24.0 // indirect k8s.io/apimachinery v0.18.6 // indirect diff --git a/go.sum b/go.sum index 94f04ca5..9a6957e8 100644 --- a/go.sum +++ b/go.sum @@ -25,7 +25,6 @@ github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 h1:ygIc8M6tr github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= github.com/Microsoft/go-winio v0.4.15-0.20200113171025-3fe6c5262873 h1:93nQ7k53GjoMQ07HVP8g6Zj1fQZDDj7Xy2VkNNtvX8o= github.com/Microsoft/go-winio v0.4.15-0.20200113171025-3fe6c5262873/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/hcsshim v0.8.7-0.20191101173118-65519b62243c/go.mod h1:7xhjOwRV2+0HXGmM0jxaEu+ZiXJFoVZOTfL/dmqbrD8= github.com/Microsoft/hcsshim v0.8.9 h1:VrfodqvztU8YSOvygU+DN1BGaSGxmrNfqOv5oOuX2Bk= github.com/Microsoft/hcsshim v0.8.9/go.mod h1:5692vkUqntj1idxauYlpoINNKeqCiG6Sg38RRsjT5y8= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= @@ -78,7 +77,6 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/blang/semver v3.1.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d h1:xG8Pj6Y6J760xwETNmMzmlt38QSwz0BLp1cZ09g27uw= github.com/btcsuite/btcd v0.0.0-20190115013929-ed77733ec07d/go.mod h1:d3C0AkH6BRcvO8T0UEPu53cnw4IbV63x1bEjildYhO0= github.com/btcsuite/btcd v0.20.1-beta h1:Ik4hyJqN8Jfyv3S4AGBOmyouMsYE3EdYODkMbQjwPGw= @@ -111,17 +109,11 @@ github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f/go.mod h1:OApqhQ4XNSNC13gXIwDjhOQxjWa/NxkwZXJ1EvqT0ko= github.com/containerd/console v0.0.0-20180822173158-c12b1e7919c1/go.mod h1:Tj/on1eG8kiEhd0+fhSDzsPAFESxzBBvdyEgyryXffw= -github.com/containerd/containerd v1.3.0-beta.2.0.20190828155532-0293cbd26c69/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= github.com/containerd/containerd v1.3.2/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.3.3 h1:LoIzb5y9x5l8VKAlyrbusNPXqBY0+kviRloxFUMFwKc= -github.com/containerd/containerd v1.3.3/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= github.com/containerd/containerd v1.3.4 h1:3o0smo5SKY7H6AJCmJhsnCjR2/V2T8VmiHt7seN2/kI= github.com/containerd/containerd v1.3.4/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc h1:TP+534wVlf61smEIq1nwLLAjQVEK2EADoW3CX9AuT+8= github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y= -github.com/containerd/continuity v0.0.0-20200228182428-0f16d7a0959c h1:8ahmSVELW1wghbjerVAyuEYD5+Dio66RYvSS0iGfL1M= -github.com/containerd/continuity v0.0.0-20200228182428-0f16d7a0959c/go.mod h1:Dq467ZllaHgAtVp4p1xUQWBrFXR9s/wyoTpG8zOJGkY= github.com/containerd/continuity v0.0.0-20200413184840-d3ef23f19fbb h1:nXPkFq8X1a9ycY3GYQpFNxHh3j2JgY7zDZfq2EXMIzk= github.com/containerd/continuity v0.0.0-20200413184840-d3ef23f19fbb/go.mod h1:Dq467ZllaHgAtVp4p1xUQWBrFXR9s/wyoTpG8zOJGkY= github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448/go.mod h1:ODA38xgv3Kuk8dQz2ZQXpnv/UZZUHUCL7pnLehbXgQI= @@ -159,13 +151,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dfinance/cosmos-sdk v0.39.2-0.20201105102202-5a9fad60516a h1:/v2aW2n3kPyaJK1TMa2SZjkVT1Rjw3dt10oqYmcJsVw= github.com/dfinance/cosmos-sdk v0.39.2-0.20201105102202-5a9fad60516a/go.mod h1:+zeUMEhc/yfg1ChQxSI7T/J+siRbfecjZhRUolRX0oM= -github.com/dfinance/dvm-proto v0.1.0 h1:hnZ78SK8F5ogWTCxa9IBufi7ot8SjiOKn8Uu94mGyE4= -github.com/dfinance/dvm-proto/go v0.0.0-20200819065410-6b70956c85de h1:PZfrjeOs9epAU0n+FpX/JAr/e+5m5/GdfUsgtO8gCOY= -github.com/dfinance/dvm-proto/go v0.0.0-20200819065410-6b70956c85de/go.mod h1:Vt1T0G56AYXbsduNKzSkq1RDTNa8PFraSqB9DaTCV0U= github.com/dfinance/dvm-proto/go v0.0.0-20201007122036-27be7297df4e h1:PT57lhHduRU0zBUO1zPHlXj48rpocTRclcAx0HLwLfQ= github.com/dfinance/dvm-proto/go v0.0.0-20201007122036-27be7297df4e/go.mod h1:Vt1T0G56AYXbsduNKzSkq1RDTNa8PFraSqB9DaTCV0U= -github.com/dfinance/dvm-proto/go v0.0.0-20201101152441-59dc05d5febd h1:I3aV8r4i+9x8Tvrf6lqFwZbFwSxbZtMNVTaCfmcpGy4= -github.com/dfinance/dvm-proto/go v0.0.0-20201101152441-59dc05d5febd/go.mod h1:Vt1T0G56AYXbsduNKzSkq1RDTNa8PFraSqB9DaTCV0U= github.com/dfinance/glav v0.0.0-20200814081332-c4701f6c12a6 h1:fZIYncA5BRad0+YnP88cfBfo0ZPgxPSVeuh/jvoGrLc= github.com/dfinance/glav v0.0.0-20200814081332-c4701f6c12a6/go.mod h1:/0gr38+QzVxCNSNKc/WjGKtdTfV8NtMagCNO0/VjOQU= github.com/dfinance/lcs v0.1.7-big h1:z+Pvxcxvr6lKSy1vjYJtM5MnCTQ7DBjPitTywoWO9X0= @@ -176,8 +163,6 @@ github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUn github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug= github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23 h1:oqgGT9O61YAYvI41EBsLePOr+LE6roB0xY4gpkZuFSE= -github.com/docker/docker v1.4.2-0.20191101170500-ac7306503d23/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker v17.12.0-ce-rc1.0.20200505174321-1655290016ac+incompatible h1:ZxJX4ZSNg1LORBsStUojbrLfkrE3Ut122XhzyZnN110= github.com/docker/docker v17.12.0-ce-rc1.0.20200505174321-1655290016ac+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= @@ -222,10 +207,10 @@ github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVB github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsouza/go-dockerclient v1.6.3 h1:VS/I3mxieZVIeaWXd57JKvSjheELafUJYtblGg75RIQ= -github.com/fsouza/go-dockerclient v1.6.3/go.mod h1:OiSy/IhZIF+zheikZkXK7LVpGzxWchJPJKGWhBqOK4M= github.com/fsouza/go-dockerclient v1.6.6-0.20200910033347-214a51d9a1e5 h1:povIUEJkhqfRW9IFv1kilK2EOwhLy3Vf9iUJ2cPI508= github.com/fsouza/go-dockerclient v1.6.6-0.20200910033347-214a51d9a1e5/go.mod h1:3/oRIWoe7uT6bwtAayj/EmJmepBjeL4pYvt7ZxC7Rnk= +github.com/g3co/go-swagger-merger v0.0.0-20200916115803-70f050d0cb09 h1:hivvvYOTeYy+Dm9nLesXatmELP5Q/4v8vyPrkZfjQs8= +github.com/g3co/go-swagger-merger v0.0.0-20200916115803-70f050d0cb09/go.mod h1:jvC3b+YoOx9/SJYqqo1pN1vJ31StlOCugGCyO3EW9XA= github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= github.com/getsentry/sentry-go v0.4.0/go.mod h1:xkGcb82SipKQloDNa5b7hTV4VdEyc2bhwd1/UczP52k= @@ -264,6 +249,8 @@ github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwds github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= github.com/go-openapi/jsonreference v0.19.0 h1:BqWKpV1dFd+AuiKlgtddwVIFQsuMpxfBDBHGfM2yNpk= @@ -271,23 +258,24 @@ github.com/go-openapi/jsonreference v0.19.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3Hfo github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.4 h1:3Vw+rh13uq2JFNxgnMTGE1rnoieU9FmyE1gvnyylsYg= -github.com/go-openapi/jsonreference v0.19.4/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= +github.com/go-openapi/jsonreference v0.19.5 h1:1WJP/wi4OjB4iV8KVbH73rQaoialJrqv8gitZLxGLtM= +github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= github.com/go-openapi/spec v0.19.0 h1:A4SZ6IWh3lnjH0rG0Z5lkxazMGBECtrZcbyYQi+64k4= github.com/go-openapi/spec v0.19.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= github.com/go-openapi/spec v0.19.4 h1:ixzUSnHTd6hCemgtAJgluaTSGYpLNpJY4mA2DIkdOAo= github.com/go-openapi/spec v0.19.4/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.9 h1:9z9cbFuZJ7AcvOHKIY+f6Aevb4vObNDkTEyoMfO7rAc= -github.com/go-openapi/spec v0.19.9/go.mod h1:vqK/dIdLGCosfvYsQV3WfC7N3TiZSnGY2RZKoFK7X28= +github.com/go-openapi/spec v0.20.3 h1:uH9RQ6vdyPSs2pSy9fL8QPspDF2AMIMPtmK5coSSjtQ= +github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= github.com/go-openapi/swag v0.17.0 h1:iqrgMg7Q7SvtbWLlltPrkMs0UBJI6oTSs79JFRUi880= github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= +github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= +github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -389,12 +377,10 @@ github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uM github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v0.0.0-20161216184304-ed905158d874/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= @@ -475,6 +461,7 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs= @@ -492,8 +479,9 @@ github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -541,7 +529,6 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLD github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= @@ -561,6 +548,7 @@ github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7 github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= @@ -594,7 +582,6 @@ github.com/opencontainers/runc v0.0.0-20190115041553-12f6a991201f/go.mod h1:qT5X github.com/opencontainers/runc v0.1.1 h1:GlxAyO6x8rfZYN9Tt0Kti5a/cP41iuiO2yYT0IJGY8Y= github.com/opencontainers/runc v0.1.1/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U= github.com/opencontainers/runtime-spec v0.1.2-0.20190507144316-5b71a03e2700/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= @@ -658,7 +645,6 @@ github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084 h1:sofwID9zm4tzrgykg80hfFph1mryUeLRsUfoocVVmRY= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= @@ -676,6 +662,8 @@ github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNue github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= @@ -757,7 +745,6 @@ github.com/swaggo/swag v1.6.3 h1:N+uVPGP4H2hXoss2pt5dctoSUPKKRInr6qcTMOm0usI= github.com/swaggo/swag v1.6.3/go.mod h1:wcc83tB4Mb2aNiL/HP4MFeQdpHUrca+Rp/DRNgWAUio= github.com/swaggo/swag v1.6.7 h1:e8GC2xDllJZr3omJkm9YfmK0Y56+rMO3cg0JBKNz09s= github.com/swaggo/swag v1.6.7/go.mod h1:xDhTyuFIujYiN3DKWC/H/83xcfHp+UE/IzWWampG7Zc= -github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/syndtr/goleveldb v1.0.1-0.20190923125748-758128399b1d h1:gZZadD8H+fF+n9CmNhYL1Y0dJB+kLOmKd7FbPJLeGHs= github.com/syndtr/goleveldb v1.0.1-0.20190923125748-758128399b1d/go.mod h1:9OrXJhf154huy1nPWmuSrkgjPUtUNhA+Zmy+6AESzuA= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= @@ -792,6 +779,8 @@ github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli/v2 v2.1.1 h1:Qt8FeAtxE/vfdrLmR3rxR6JRE0RoVmbXu8+6kZtYU4k= github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= +github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= +github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= @@ -801,7 +790,6 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f/go.mod h1:5yf86TLmAcydyeJq5YvxkGPE2fm/u4myDekKRoLuqhs= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= @@ -840,7 +828,6 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200406173513-056763e48d71/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200429183012-4b2356b1ed79/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= @@ -885,10 +872,12 @@ golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201020065357-d65d470038a5 h1:KrxvpY64uUzANd9wKWr6ZAsufiii93XnvXaeikyCJ2g= golang.org/x/net v0.0.0-20201020065357-d65d470038a5/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -899,10 +888,51 @@ golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6 h1:DvY3Zkh7KabQE/kfzMvYvKirSiguP9Q/veMtkYyf0o8= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44 h1:Bli41pIlzTzf3KEY06n+xnzK/BESIg2ze4Pgfh/aI8c= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 h1:F5Gozwx4I1xtr/sr/8CFbb57iKi3297KFs0QDbGN60A= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -910,6 +940,9 @@ golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -938,8 +971,8 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114 h1:DnSr2mCsxyCE6ZgIkmcWUQY2R5cH/6wL7eIxEmQOMSE= golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20201013053347-2db1cd791039 h1:kLBxO4OPBgPwjg8Vvu+/0DCHIfDwYIGNFcD66NU9kpo= -golang.org/x/tools v0.0.0-20201013053347-2db1cd791039/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= +golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= @@ -965,7 +998,6 @@ google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZi google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.1 h1:q4XQuHFC6I28BKZpo6IYyb3mNO+l7lSOxRuYTCiDfXk= @@ -997,6 +1029,7 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= @@ -1017,6 +1050,7 @@ gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bl gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -1024,8 +1058,12 @@ gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= gotest.tools/v3 v3.0.2 h1:kG1BFyqVHuQoVQiR1bWGnfz/fmHvvuiSPIV7rvl360E= diff --git a/helpers/grpc_conn.go b/helpers/grpc_conn.go index cf309484..b17bbb2d 100644 --- a/helpers/grpc_conn.go +++ b/helpers/grpc_conn.go @@ -76,14 +76,14 @@ func GetGRpcClientConnection(addr string, keepAlivePeriod time.Duration) (*grpc. kpParams := keepalive.ClientParameters{ Time: keepAlivePeriod, // send pings every 1 second if there is no activity Timeout: keepAlivePeriod, // wait 1 second for ping ack before considering the connection dead - PermitWithoutStream: true, // send pings even without active streams + PermitWithoutStream: true, // send pings even without active streams } dialOptions = append(dialOptions, grpc.WithKeepaliveParams(kpParams)) } // Bypass Rust h2 library UDS limitations: uri validation failure causing PROTOCOL_ERROR gRPC error - dialAddress := address + dialAddress := address if schema == "unix" { dialAddress = "127.0.0.1" // faking filePath with valid URL } diff --git a/helpers/logger/logger.go b/helpers/logger/logger.go index 7984aaa6..f3eea4ea 100644 --- a/helpers/logger/logger.go +++ b/helpers/logger/logger.go @@ -23,7 +23,6 @@ func (l *DNLogger) Error(msg string, keyvals ...interface{}) { sentryCaptureMessage(msg, keyvals...) } - // Method overwrite func (l *DNLogger) With(keyvals ...interface{}) log.Logger { return &DNLogger{ diff --git a/helpers/perms/module.go b/helpers/perms/module.go index d91a5754..29c641d8 100644 --- a/helpers/perms/module.go +++ b/helpers/perms/module.go @@ -97,7 +97,7 @@ func (m *ModulePermissions) AutoCheck(expectedPerm Permission) { return } - if err := m.Check(caller.Module, expectedPerm); err != nil { + if err := m.Check(caller.Module, expectedPerm); err != nil { panic(err) } } diff --git a/helpers/tests/binary/binary.go b/helpers/tests/binary/binary.go index f7eaaeaf..3792701d 100644 --- a/helpers/tests/binary/binary.go +++ b/helpers/tests/binary/binary.go @@ -20,10 +20,10 @@ const ( type BinaryCmdOption func(*BinaryCmd) error type BinaryCmd struct { - cmd string - proc *tests.Process - args []string - printLogs bool + cmd string + proc *tests.Process + args []string + printLogs bool } func (c *BinaryCmd) String() string { @@ -32,7 +32,7 @@ func (c *BinaryCmd) String() string { func NewBinaryCmd(cmd string, options ...BinaryCmdOption) (*BinaryCmd, error) { c := &BinaryCmd{ - cmd: cmd, + cmd: cmd, } for _, option := range options { diff --git a/helpers/tests/sb-trading-app/bot/bot_logic.go b/helpers/tests/sb-trading-app/bot/bot_logic.go index a84d40dd..923c588b 100644 --- a/helpers/tests/sb-trading-app/bot/bot_logic.go +++ b/helpers/tests/sb-trading-app/bot/bot_logic.go @@ -59,11 +59,11 @@ func (b *Bot) onMarketPriceChangeMarketMaking() { if sellOrdersCount == 0 && buyOrdersCount == 0 { b.logger.Info(fmt.Sprintf("market making on %q: [%s:%s]: skipped", lowerPriceDec, upperPriceDec, "marketPrice change")) } else { - b.logger.Info(fmt.Sprintf("market making on %q: [%s:%s]: Sells / Buys: %d / %d", "marketPrice change", lowerPriceDec, upperPriceDec, sellOrdersCount, buyOrdersCount)) + b.logger.Info(fmt.Sprintf("market making on %q: [%s:%s]: Sells / Buys: %d / %d", "marketPrice change", lowerPriceDec, upperPriceDec, sellOrdersCount, buyOrdersCount)) } } -func (b *Bot) newBalanceBasedOrder() (posted bool, retDirection string){ +func (b *Bot) newBalanceBasedOrder() (posted bool, retDirection string) { var direction orders.Direction defer func() { diff --git a/helpers/tests/sb-trading-app/bot/bot_utils.go b/helpers/tests/sb-trading-app/bot/bot_utils.go index 76faa960..24ad9cd6 100644 --- a/helpers/tests/sb-trading-app/bot/bot_utils.go +++ b/helpers/tests/sb-trading-app/bot/bot_utils.go @@ -22,8 +22,8 @@ func (b *Bot) dampPriceDown(price, randomBase sdk.Uint) sdk.Uint { return price.Sub(b.percentOfPrice(randomBase, b.randomDampingPercent())) } -func(b *Bot) dampPriceRandom(price, randomBase sdk.Uint) sdk.Uint { - if rand.Uint64() % 2 == 0 { +func (b *Bot) dampPriceRandom(price, randomBase sdk.Uint) sdk.Uint { + if rand.Uint64()%2 == 0 { return b.dampPriceUp(price, randomBase) } diff --git a/helpers/tests/sb-trading-app/watcher/watcher_logic.go b/helpers/tests/sb-trading-app/watcher/watcher_logic.go index a449cc0d..0e62a36f 100644 --- a/helpers/tests/sb-trading-app/watcher/watcher_logic.go +++ b/helpers/tests/sb-trading-app/watcher/watcher_logic.go @@ -40,7 +40,7 @@ func (w *Watcher) Work() { w.history.ResetCurItem() case <-botAddTicker.C: if botsDiff := w.cfg.MaxBots - w.curBots; botsDiff > 0 { - w.logger.Info(fmt.Sprintf("adding client: %d left", botsDiff - 1)) + w.logger.Info(fmt.Sprintf("adding client: %d left", botsDiff-1)) for _, m := range w.marketStates { w.wg.Add(1) go m.bots[w.curBots].Start(w.wg, w.stopCh) diff --git a/helpers/tests/simulator/inflation_test.go b/helpers/tests/simulator/inflation_test.go index e1e91fd3..fa2ee489 100644 --- a/helpers/tests/simulator/inflation_test.go +++ b/helpers/tests/simulator/inflation_test.go @@ -187,7 +187,7 @@ func simulate(t *testing.T, profile SimProfile) { func TestSimInflation(t *testing.T) { profile := SimProfile{ ID: "low_staking", - SimDuration: 3*Month, + SimDuration: 3 * Month, BlockTimeMin: 300 * time.Second, BlockTimeMax: 305 * time.Second, // diff --git a/x/ccstorage/internal/types/res_balance_test.go b/x/ccstorage/internal/types/res_balance_test.go index 347390fc..cda63e67 100644 --- a/x/ccstorage/internal/types/res_balance_test.go +++ b/x/ccstorage/internal/types/res_balance_test.go @@ -79,12 +79,12 @@ func TestCCS_Balances(t *testing.T) { Balance{ Denom: "testa", AccessPath: nil, - Resource: ResBalance{ Value: sdk.NewIntFromUint64(1).BigInt()}, + Resource: ResBalance{Value: sdk.NewIntFromUint64(1).BigInt()}, }, Balance{ Denom: "testb", AccessPath: nil, - Resource: ResBalance{ Value: sdk.NewIntFromUint64(2).BigInt()}, + Resource: ResBalance{Value: sdk.NewIntFromUint64(2).BigInt()}, }, } diff --git a/x/core/ante.go b/x/core/ante.go index 55282590..61f91c67 100644 --- a/x/core/ante.go +++ b/x/core/ante.go @@ -18,13 +18,13 @@ func NewAnteHandler(ak vmauth.Keeper, supplyKeeper types.SupplyKeeper, sigGasCon ante.NewSetUpContextDecorator(), ante.NewMempoolFeeDecorator(), ante.NewValidateBasicDecorator(), - ante.NewValidateMemoDecorator(ak.AccountKeeper), // as is: only uses ak.GetParams() - NewConsumeGasForTxSizeDecorator(ak), // copy: uses ak.GetAccount() - NewSetPubKeyDecorator(ak), // copy: uses ak.GetAccount() - ante.NewValidateSigCountDecorator(ak.AccountKeeper), // as is: only uses ak.GetParams() - NewDeductFeeDecorator(ak, supplyKeeper), // copy: uses ak.GetAccount() - NewSigGasConsumeDecorator(ak, sigGasConsumer), // copy: uses ak.GetAccount() - NewSigVerificationDecorator(ak), // copy: uses ak.GetAccount() - NewIncrementSequenceDecorator(ak), // copy: uses ak.GetAccount(), ak.SetAccount() + ante.NewValidateMemoDecorator(ak.AccountKeeper), // as is: only uses ak.GetParams() + NewConsumeGasForTxSizeDecorator(ak), // copy: uses ak.GetAccount() + NewSetPubKeyDecorator(ak), // copy: uses ak.GetAccount() + ante.NewValidateSigCountDecorator(ak.AccountKeeper), // as is: only uses ak.GetParams() + NewDeductFeeDecorator(ak, supplyKeeper), // copy: uses ak.GetAccount() + NewSigGasConsumeDecorator(ak, sigGasConsumer), // copy: uses ak.GetAccount() + NewSigVerificationDecorator(ak), // copy: uses ak.GetAccount() + NewIncrementSequenceDecorator(ak), // copy: uses ak.GetAccount(), ak.SetAccount() ) } diff --git a/x/core/msmodule/manager.go b/x/core/msmodule/manager.go index 691ef054..730d975c 100644 --- a/x/core/msmodule/manager.go +++ b/x/core/msmodule/manager.go @@ -58,7 +58,7 @@ func (m *MsManager) RegisterMsRoutes(router MsRouter) { // RegisterInvariants registers all module routes and module querier routes. // {blackList} allows to skip invariants register for specific module names. -func (m *MsManager) RegisterInvariants(ir sdk.InvariantRegistry, blackList... string) { +func (m *MsManager) RegisterInvariants(ir sdk.InvariantRegistry, blackList ...string) { for _, module := range m.Modules { blackListed := false for _, disabledModuleName := range blackList { diff --git a/x/genaccounts/internal/types/genesis_account.go b/x/genaccounts/internal/types/genesis_account.go index 01f9a25f..07481105 100644 --- a/x/genaccounts/internal/types/genesis_account.go +++ b/x/genaccounts/internal/types/genesis_account.go @@ -65,4 +65,4 @@ func (ga GenesisAccounts) Contains(addr sdk.AccAddress) bool { } return false -} \ No newline at end of file +} diff --git a/x/multisig/client/cli/tx.go b/x/multisig/client/cli/tx.go index 7f979e0c..ed7fd683 100644 --- a/x/multisig/client/cli/tx.go +++ b/x/multisig/client/cli/tx.go @@ -15,10 +15,10 @@ import ( // PostConfirmCall returns tx command which confirms an existing call. func PostConfirmCall(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ - Use: "confirm-call [callID]", - Short: "Confirm call by multi signature", + Use: "confirm-call [callID]", + Short: "Confirm call by multi signature", Example: "confirm-call 100", - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { cliCtx, txBuilder := helpers.GetTxCmdCtx(cdc, cmd.InOrStdin()) @@ -51,10 +51,10 @@ func PostConfirmCall(cdc *codec.Codec) *cobra.Command { // PostRevokeConfirm returns tx command which revokes an existing call's vote. func PostRevokeConfirm(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ - Use: "revoke-confirm [callID]", - Short: "Revoke confirmation for call by ID", + Use: "revoke-confirm [callID]", + Short: "Revoke confirmation for call by ID", Example: "revoke-confirm 100", - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { cliCtx, txBuilder := helpers.GetTxCmdCtx(cdc, cmd.InOrStdin()) diff --git a/x/oracle/internal/types/msg_add_asset.go b/x/oracle/internal/types/msg_add_asset.go index 0c5e9e16..f20de5ab 100644 --- a/x/oracle/internal/types/msg_add_asset.go +++ b/x/oracle/internal/types/msg_add_asset.go @@ -42,7 +42,7 @@ func (msg MsgAddAsset) GetSigners() []sdk.AccAddress { } // NewMsgAddAsset creates a new AddAsset message. -func NewMsgAddAsset(nominee sdk.AccAddress, asset Asset, ) MsgAddAsset { +func NewMsgAddAsset(nominee sdk.AccAddress, asset Asset) MsgAddAsset { return MsgAddAsset{ Asset: asset, Nominee: nominee, diff --git a/x/oracle/internal/types/msg_add_oracle.go b/x/oracle/internal/types/msg_add_oracle.go index 7dd114f9..20278889 100644 --- a/x/oracle/internal/types/msg_add_oracle.go +++ b/x/oracle/internal/types/msg_add_oracle.go @@ -51,7 +51,7 @@ func (msg MsgAddOracle) GetSigners() []sdk.AccAddress { } // MsgAddOracle creates a new AddOracle message. -func NewMsgAddOracle(nominee sdk.AccAddress, assetCode dnTypes.AssetCode, oracle sdk.AccAddress, ) MsgAddOracle { +func NewMsgAddOracle(nominee sdk.AccAddress, assetCode dnTypes.AssetCode, oracle sdk.AccAddress) MsgAddOracle { return MsgAddOracle{ Oracle: oracle, AssetCode: assetCode, diff --git a/x/oracle/internal/types/msg_set_asset.go b/x/oracle/internal/types/msg_set_asset.go index bc3e5de6..9e6a5460 100644 --- a/x/oracle/internal/types/msg_set_asset.go +++ b/x/oracle/internal/types/msg_set_asset.go @@ -42,7 +42,7 @@ func (msg MsgSetAsset) GetSigners() []sdk.AccAddress { } // NewMsgSetAsset creates a new SetAsset message. -func NewMsgSetAsset(nominee sdk.AccAddress, asset Asset, ) MsgSetAsset { +func NewMsgSetAsset(nominee sdk.AccAddress, asset Asset) MsgSetAsset { return MsgSetAsset{ Asset: asset, Nominee: nominee, diff --git a/x/oracle/internal/types/msg_set_oracles.go b/x/oracle/internal/types/msg_set_oracles.go index c61f204d..8b81eed4 100644 --- a/x/oracle/internal/types/msg_set_oracles.go +++ b/x/oracle/internal/types/msg_set_oracles.go @@ -50,7 +50,7 @@ func (msg MsgSetOracles) GetSigners() []sdk.AccAddress { } // MsgAddOracle creates a new SetOracle message. -func NewMsgSetOracles(nominee sdk.AccAddress, assetCode dnTypes.AssetCode, oracles Oracles, ) MsgSetOracles { +func NewMsgSetOracles(nominee sdk.AccAddress, assetCode dnTypes.AssetCode, oracles Oracles) MsgSetOracles { return MsgSetOracles{ Oracles: oracles, AssetCode: assetCode, diff --git a/x/oracle/internal/types/oracle.go b/x/oracle/internal/types/oracle.go index 27239c61..44b89bb0 100644 --- a/x/oracle/internal/types/oracle.go +++ b/x/oracle/internal/types/oracle.go @@ -33,7 +33,7 @@ func (list Oracles) String() string { strBuilder.WriteString("Oracles:\n") for i, oracle := range list { strBuilder.WriteString(oracle.String()) - if i < len(list) - 1 { + if i < len(list)-1 { strBuilder.WriteString("\n") } } diff --git a/x/orderbook/internal/keeper/history_test.go b/x/orderbook/internal/keeper/history_test.go index 18e0920e..d3238e09 100644 --- a/x/orderbook/internal/keeper/history_test.go +++ b/x/orderbook/internal/keeper/history_test.go @@ -44,7 +44,7 @@ func TestOBKeeper_History_StoreIO(t *testing.T) { // add history items for i, inputItem := range inputItems { - blockHeight := int64(i)+1 + blockHeight := int64(i) + 1 input.keeper.SetHistoryItem(input.ctx, inputItem) require.True(t, input.keeper.HasHistoryItem(input.ctx, marketID, blockHeight)) diff --git a/x/orderbook/internal/keeper/order_sorter.go b/x/orderbook/internal/keeper/order_sorter.go index 053ae402..aad55f8a 100644 --- a/x/orderbook/internal/keeper/order_sorter.go +++ b/x/orderbook/internal/keeper/order_sorter.go @@ -47,4 +47,3 @@ func (s ByPriceAscIDAsc) Less(i, j int) bool { func (s ByPriceAscIDAsc) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - diff --git a/x/orders/internal/keeper/order.go b/x/orders/internal/keeper/order.go index c790b792..f6cc1888 100644 --- a/x/orders/internal/keeper/order.go +++ b/x/orders/internal/keeper/order.go @@ -111,7 +111,6 @@ func (k Keeper) GetReverseIterator(ctx sdk.Context) sdk.Iterator { return sdk.KVStoreReversePrefixIterator(store, types.OrderKeyPrefix) } - // set creates / overwrites order object. func (k Keeper) set(ctx sdk.Context, order types.Order) { store := ctx.KVStore(k.storeKey) diff --git a/x/orders/internal/types/keys.go b/x/orders/internal/types/keys.go index d0bc7a53..ad5a83fd 100644 --- a/x/orders/internal/types/keys.go +++ b/x/orders/internal/types/keys.go @@ -10,7 +10,7 @@ import ( // Storage keys. var ( - KeyDelimiter = []byte(":") + KeyDelimiter = []byte(":") OrderKeyPrefix = []byte("order") LastOrderIDKey = []byte("last_order_id") ) diff --git a/x/orders/internal/types/querier.go b/x/orders/internal/types/querier.go index f46ee4f9..fc009ba9 100644 --- a/x/orders/internal/types/querier.go +++ b/x/orders/internal/types/querier.go @@ -19,7 +19,7 @@ type OrderReq struct { // Client request for markets. type OrdersReq struct { // Page number - Page sdk.Uint `json:"page" yaml:"page"` + Page sdk.Uint `json:"page" yaml:"page"` // Items per page Limit sdk.Uint `json:"limit" yaml:"limit"` // Owner filter diff --git a/x/poa/internal/types/validator.go b/x/poa/internal/types/validator.go index 73bce415..39466bb8 100644 --- a/x/poa/internal/types/validator.go +++ b/x/poa/internal/types/validator.go @@ -58,7 +58,7 @@ func (list Validators) String() string { strBuilder := strings.Builder{} for i, v := range list { strBuilder.WriteString(fmt.Sprintf("[%d] %s", i, v.String())) - if i < len(list) - 1 { + if i < len(list)-1 { strBuilder.WriteString("\n") } }